Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

VfsListbox Class Reference

#include <vfsview.h>

Inheritance diagram for VfsListbox:

ht_itext_listbox ht_text_listbox ht_listbox ht_view Object FileBrowserVfsListbox VfsListbox2 List of all members.

Public Member Functions

void init (bounds *b, ht_list *vfs_list, ht_text *show_pos)
virtual void done ()
virtual void config_changed ()
virtual int cursorAdjust ()
virtual void handlemsg (htmsg *msg)
virtual void * quickfind (char *s)
virtual char * quickfindCompletition (char *s)
virtual void update ()
int changeURL (const char *url)
int changeDir (const char *dir)
const char * getCurDir ()
const char * getCurProto ()
VfsgetCurVfs ()

Protected Member Functions

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)

Protected Attributes

ht_listvfs_list
Vfscvfs
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_textshow_pos

Member Function Documentation

int VfsListbox::changeDir const char *  dir  ) 
 

Definition at line 121 of file vfsview.cc.

References changeURL(), cproto, ht_snprintf(), and VFS_URL_MAX.

Referenced by selectEntry().

int VfsListbox::changeURL const char *  url  ) 
 

Definition at line 128 of file vfsview.cc.

References pstat_t::caps, cdir, ht_text_listbox_sort_order::col, ht_text_listbox_sort_order::compare_func, Vfs::compareFilenames(), ht_list::count(), cproto, cvfs, dfmt_quickfind, ht_text_listbox_item::extra_data, ht_list::get(), ht_text_listbox::getFirst(), ht_text_listbox::getNext(), Vfs::getProtoName(), ht_listbox::gotoItemByEntry(), ht_listbox::gotoItemByPosition(), HT_S_ISDIR, Vfs::isPathDelim(), pstat_t::mode, vfs_extra::name, NULL, Vfs::pstat(), pstat_mode_type, ht_listbox::rearrangeColumns(), reread(), ht_text_listbox::sort(), strend, sys_common_canonicalize(), update(), VFS_DIR_MAX, vfs_list, and VFS_PROTO_MAX.

Referenced by changeDir(), ht_app::create_window_ofm(), and FileBrowser::init().

void VfsListbox::config_changed  )  [virtual]
 

Reimplemented from ht_view.

Definition at line 225 of file vfsview.cc.

References ht_view::config_changed(), get_config_string(), and setDisplayFormat().

Referenced by init().

int VfsListbox::cursorAdjust  )  [virtual]
 

Reimplemented from ht_text_listbox.

Definition at line 233 of file vfsview.cc.

void VfsListbox::done  )  [virtual]
 

Reimplemented from ht_itext_listbox.

Definition at line 116 of file vfsview.cc.

References ht_itext_listbox::done().

void VfsListbox::freeExtraData void *  extra_data  )  [protected, virtual]
 

Reimplemented from ht_text_listbox.

Definition at line 238 of file vfsview.cc.

const char * VfsListbox::getCurDir  ) 
 

Definition at line 245 of file vfsview.cc.

References cdir.

Referenced by FileBrowser::extract_url().

const char * VfsListbox::getCurProto  ) 
 

Definition at line 250 of file vfsview.cc.

References cproto.

Referenced by FileBrowser::extract_url().

Vfs * VfsListbox::getCurVfs  ) 
 

Definition at line 255 of file vfsview.cc.

References cvfs.

Referenced by FileBrowser::extract_url().

void VfsListbox::handlemsg htmsg *  msg  )  [virtual]
 

Reimplemented from ht_listbox.

Definition at line 260 of file vfsview.cc.

References clearmsg(), ht_listbox::handlemsg(), K_Return, msg_keypressed, and selectEntry().

void VfsListbox::init bounds *  b,
ht_list vfs_list,
ht_text show_pos
 

Definition at line 105 of file vfsview.cc.

References cdir, config_changed(), cproto, cvfs, Object::init(), NULL, show_pos, and vfs_list.

Referenced by ht_app::create_window_ofm().

void * VfsListbox::quickfind char *  s  )  [virtual]
 

Reimplemented from ht_text_listbox.

Definition at line 383 of file vfsview.cc.

References ht_itext_listbox::compare_strn(), ht_text_listbox_item::data, ht_text_listbox_item::next, and NULL.

char * VfsListbox::quickfindCompletition char *  s  )  [virtual]
 

Reimplemented from ht_text_listbox.

Definition at line 406 of file vfsview.cc.

References ht_itext_listbox::compare_ccomm(), ht_itext_listbox::compare_strn(), ht_text_listbox_item::data, ht_strdup(), ht_text_listbox_item::next, and NULL.

void VfsListbox::renderEntry char *  buf,
int  bufsize,
int  dfmt,
const char *  filename,
pstat_t  stat
[protected]
 

Definition at line 445 of file vfsview.cc.

References pstat_t::atime, buf, pstat_t::caps, pstat_t::ctime, GET_DISPLAY_FORMAT_TYPE, pstat_t::gid, HT_S_IRGRP, HT_S_IROTH, HT_S_IRUSR, HT_S_ISBLK, HT_S_ISCHR, HT_S_ISDIR, HT_S_ISFIFO, HT_S_ISLNK, HT_S_ISSOCK, HT_S_IWGRP, HT_S_IWOTH, HT_S_IWUSR, HT_S_IXGRP, HT_S_IXOTH, HT_S_IXUSR, ht_snprintf(), pstat_t::inode, pstat_t::mode, pstat_t::mtime, pstat_atime, pstat_ctime, pstat_desc, pstat_gid, pstat_inode, pstat_mode_all, pstat_mode_grp, pstat_mode_oth, pstat_mode_type, pstat_mode_usr, pstat_mtime, pstat_size, pstat_uid, pstat_t::size, pstat_t::uid, UINT, VFSV_FORMAT_ATIME, VFSV_FORMAT_BSIZE, VFSV_FORMAT_CTIME, VFSV_FORMAT_DESC, VFSV_FORMAT_GROUP, VFSV_FORMAT_INODE, VFSV_FORMAT_MARK, VFSV_FORMAT_MODE, VFSV_FORMAT_MTIME, VFSV_FORMAT_NAME, VFSV_FORMAT_NGID, VFSV_FORMAT_NLINK, VFSV_FORMAT_NUID, VFSV_FORMAT_OWNER, VFSV_FORMAT_PERM, VFSV_FORMAT_RATIME, VFSV_FORMAT_RCTIME, VFSV_FORMAT_RMTIME, VFSV_FORMAT_SIZE, VFSV_FORMAT_SPACE, and VFSV_FORMAT_TYPE.

Referenced by reread().

void VfsListbox::reread  )  [protected]
 

Definition at line 351 of file vfsview.cc.

References cdir, ht_text_listbox::clearAll(), cvfs, dfmt_cols, dfmt_prop, dfmt_prop2colidx, dfmt_props, Vfs::findClose(), Vfs::findFirst(), Vfs::findNext(), ht_text_listbox::insert_str_extra(), malloc(), pfind_t::name, renderEntry(), pfind_t::stat, VFSV_FORMAT_MAX_COLS, and VFSV_FORMAT_MAX_LENGTH.

Referenced by changeURL().

bool VfsListbox::selectEntry void *  entry  )  [protected, virtual]
 

Reimplemented from ht_listbox.

Reimplemented in VfsListbox2.

Definition at line 321 of file vfsview.cc.

References pstat_t::caps, cdir, changeDir(), ht_text_listbox_item::extra_data, HT_S_ISDIR, ht_snprintf(), pstat_t::mode, vfs_extra::name, pstat_mode_type, vfs_extra::stat, update(), and VFS_DIR_MAX.

Referenced by handlemsg(), and VfsListbox2::selectEntry().

void VfsListbox::setDisplayFormat char *  fmt  )  [protected]
 

Definition at line 278 of file vfsview.cc.

References dfmt_cols, dfmt_prop, dfmt_prop2colidx, dfmt_props, dfmt_quickfind, MAKE_DISPLAY_FORMAT, MAKE_DISPLAY_FORMAT_FIXED_WIDTH, MAKE_DISPLAY_FORMAT_MIN_WIDTH, ht_listbox::rearrangeColumns(), translateProp(), VFSV_FORMAT_MAX_COLS, VFSV_FORMAT_NAME, and VFSV_FORMAT_SEPARATOR.

Referenced by config_changed().

char * VfsListbox::translateProp char *  fmt,
int *  type
[protected]
 

Definition at line 339 of file vfsview.cc.

References VFSV_FORMAT_PROPERTIES.

Referenced by setDisplayFormat().

void VfsListbox::update  )  [virtual]
 

Reimplemented from ht_text_listbox.

Definition at line 434 of file vfsview.cc.

References cdir, cproto, ht_snprintf(), ht_text::settext(), show_pos, ht_text_listbox::update(), and VFS_URL_MAX.

Referenced by changeURL(), and selectEntry().


Member Data Documentation

char VfsListbox::cdir[VFS_DIR_MAX+1] [protected]
 

Definition at line 45 of file vfsview.h.

Referenced by changeURL(), getCurDir(), init(), reread(), selectEntry(), and update().

char VfsListbox::cproto[VFS_PROTO_MAX+1] [protected]
 

Definition at line 46 of file vfsview.h.

Referenced by changeDir(), changeURL(), getCurProto(), init(), and update().

Vfs* VfsListbox::cvfs [protected]
 

Definition at line 44 of file vfsview.h.

Referenced by changeURL(), getCurVfs(), init(), and reread().

int VfsListbox::dfmt_cols [protected]
 

Definition at line 48 of file vfsview.h.

Referenced by reread(), and setDisplayFormat().

int VfsListbox::dfmt_prop[VFSV_FORMAT_MAX_COLS] [protected]
 

Definition at line 51 of file vfsview.h.

Referenced by reread(), and setDisplayFormat().

int VfsListbox::dfmt_prop2colidx[VFSV_FORMAT_MAX_COLS] [protected]
 

Definition at line 50 of file vfsview.h.

Referenced by reread(), and setDisplayFormat().

int VfsListbox::dfmt_props [protected]
 

Definition at line 49 of file vfsview.h.

Referenced by reread(), and setDisplayFormat().

int VfsListbox::dfmt_quickfind [protected]
 

Definition at line 52 of file vfsview.h.

Referenced by changeURL(), and setDisplayFormat().

ht_text* VfsListbox::show_pos [protected]
 

Definition at line 54 of file vfsview.h.

Referenced by init(), and update().

ht_list* VfsListbox::vfs_list [protected]
 

Definition at line 43 of file vfsview.h.

Referenced by changeURL(), and init().


The documentation for this class was generated from the following files:
Generated on Fri May 7 21:16:10 2004 by doxygen 1.3.5