Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXDirList Class Reference

Directory tree List. More...

#include <FXDirList.h>

Inheritance diagram for FX::FXDirList:

FX::FXTreeList FX::FXScrollArea FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXDirList (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
virtual void create ()
virtual void detach ()
virtual void destroy ()
void scan (FXbool force=TRUE)
FXbool isItemDirectory (const FXTreeItem *item) const
FXbool isItemFile (const FXTreeItem *item) const
FXbool isItemExecutable (const FXTreeItem *item) const
virtual FXbool collapseTree (FXTreeItem *tree, FXbool notify=FALSE)
virtual FXbool expandTree (FXTreeItem *tree, FXbool notify=FALSE)
void setCurrentFile (const FXString &file, FXbool notify=FALSE)
FXString getCurrentFile () const
void setDirectory (const FXString &path, FXbool notify=FALSE)
FXString getDirectory () const
FXString getItemPathname (const FXTreeItem *item) const
FXTreeItemgetPathnameItem (const FXString &path)
void setPattern (const FXString &ptrn)
FXString getPattern () const
FXuint getMatchMode () const
void setMatchMode (FXuint mode)
FXbool showFiles () const
void showFiles (FXbool showing)
FXbool showHiddenFiles () const
void showHiddenFiles (FXbool showing)
void setAssociations (FXFileDict *assoc)
FXFileDictgetAssociations () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXDirList ()

Static Public Member Functions

FXint ascending (const FXTreeItem *a, const FXTreeItem *b)
FXint descending (const FXTreeItem *a, const FXTreeItem *b)
FXint ascendingCase (const FXTreeItem *a, const FXTreeItem *b)
FXint descendingCase (const FXTreeItem *a, const FXTreeItem *b)

Detailed Description

Directory tree List.

See also:


Constructor & Destructor Documentation

FX::FXDirList::FXDirList FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0
 

Construct a directory list.

virtual FX::FXDirList::~FXDirList  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXDirList::create  )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXTreeList.

virtual void FX::FXDirList::detach  )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXTreeList.

virtual void FX::FXDirList::destroy  )  [virtual]
 

Destroy server-side resources.

Reimplemented from FX::FXComposite.

void FX::FXDirList::scan FXbool  force = TRUE  ) 
 

Scan the directories and update the items if needed, or if force is TRUE.

FXbool FX::FXDirList::isItemDirectory const FXTreeItem item  )  const
 

Return TRUE if item is a directory.

FXbool FX::FXDirList::isItemFile const FXTreeItem item  )  const
 

Return TRUE if item is a file.

FXbool FX::FXDirList::isItemExecutable const FXTreeItem item  )  const
 

Return TRUE if item is executable.

virtual FXbool FX::FXDirList::collapseTree FXTreeItem tree,
FXbool  notify = FALSE
[virtual]
 

Collapse tree.

Reimplemented from FX::FXTreeList.

virtual FXbool FX::FXDirList::expandTree FXTreeItem tree,
FXbool  notify = FALSE
[virtual]
 

Expand tree.

Reimplemented from FX::FXTreeList.

void FX::FXDirList::setCurrentFile const FXString file,
FXbool  notify = FALSE
 

Set current file.

FXString FX::FXDirList::getCurrentFile  )  const
 

Return current file.

void FX::FXDirList::setDirectory const FXString path,
FXbool  notify = FALSE
 

Set current directory.

FXString FX::FXDirList::getDirectory  )  const
 

Return current directory.

FXString FX::FXDirList::getItemPathname const FXTreeItem item  )  const
 

Return absolute pathname of item.

FXTreeItem* FX::FXDirList::getPathnameItem const FXString path  ) 
 

Return the item from the absolute pathname.

void FX::FXDirList::setPattern const FXString ptrn  ) 
 

Change wildcard matching pattern.

FXString FX::FXDirList::getPattern  )  const [inline]
 

Return wildcard pattern.

FXuint FX::FXDirList::getMatchMode  )  const [inline]
 

Return wildcard matching mode.

void FX::FXDirList::setMatchMode FXuint  mode  ) 
 

Change wildcard matching mode.

FXbool FX::FXDirList::showFiles  )  const
 

Return TRUE if showing files as well as directories.

void FX::FXDirList::showFiles FXbool  showing  ) 
 

Show or hide normal files.

FXbool FX::FXDirList::showHiddenFiles  )  const
 

Return TRUE if showing hidden files and directories.

void FX::FXDirList::showHiddenFiles FXbool  showing  ) 
 

Show or hide hidden files and directories.

void FX::FXDirList::setAssociations FXFileDict assoc  ) 
 

Change file associations.

FXFileDict* FX::FXDirList::getAssociations  )  const [inline]
 

Return file associations.

virtual void FX::FXDirList::save FXStream store  )  const [virtual]
 

Save to stream.

Reimplemented from FX::FXTreeList.

virtual void FX::FXDirList::load FXStream store  )  [virtual]
 

Load from stream.

Reimplemented from FX::FXTreeList.

Copyright © 1997-2004 Jeroen van der Zijp