?? vfsview.h
字號:
/* * HT Editor * vfsview.h * * Copyright (C) 1999-2003 Stefan Weyergraf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#ifndef __VFSVIEW_H__#define __VFSVIEW_H__#include "htdialog.h"#include "vfs.h"/* * class VfsListbox */struct vfs_extra { pstat_t stat; char *name;};#define VFSV_FORMAT_MAX_COLS 64#define VFSV_FORMAT_PROPERTIES 22#define VfsListboxData ht_itext_listbox_dataclass VfsListbox: public ht_itext_listbox {protected: Container *vfs_list; Vfs *cvfs; char cdir[VFS_DIR_MAX+1]; char cproto[VFS_PROTO_MAX+1]; /**/ int dfmt_cols; int dfmt_props; int dfmt_prop2colidx[VFSV_FORMAT_MAX_COLS]; int dfmt_prop[VFSV_FORMAT_MAX_COLS]; int dfmt_quickfind; /**/ ht_text *show_pos; virtual void freeExtraData(void *extra_data); void renderEntry(char *buf, int bufsize, int dfmt, const char *filename, pstat_t stat); void reread(); void setDisplayFormat(char *fmt); virtual bool selectEntry(void *entry); char * translateProp(char *fmt, int *type);public: void init(Bounds *b, Container *vfs_list, ht_text *show_pos); virtual void done(); /* overwritten */ virtual void config_changed(); virtual int cursorAdjust(); virtual void handlemsg(htmsg *msg); virtual void * quickfind(const char *s); virtual char * quickfindCompletition(const char *s); virtual void update(); /* new */ int changeURL(const char *url); int changeDir(const char *dir); const char * getCurDir(); const char * getCurProto(); Vfs * getCurVfs();};/* * class VfsListbox2 */class VfsListbox2: public VfsListbox {public:/**/ virtual bool selectEntry(void *entry);};#endif /* __VFSVIEW_H__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -