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

FX::FXFileList Class Reference

File List object. More...

#include <FXFileList.h>

Inheritance diagram for FX::FXFileList:

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

Public Member Functions

 FXFileList (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)
void setCurrentFile (const FXString &file)
FXString getCurrentFile () const
void setDirectory (const FXString &path)
FXString getDirectory () const
void setPattern (const FXString &ptrn)
FXString getPattern () const
FXbool isItemDirectory (FXint index) const
FXbool isItemShare (FXint index) const
FXbool isItemFile (FXint index) const
FXbool isItemExecutable (FXint index) const
FXString getItemFilename (FXint index) const
FXString getItemPathname (FXint index) const
FXFileAssocgetItemAssoc (FXint index) const
FXuint getMatchMode () const
void setMatchMode (FXuint mode)
FXbool showHiddenFiles () const
void showHiddenFiles (FXbool showing)
FXbool showOnlyDirectories () const
void showOnlyDirectories (FXbool shown)
FXbool showOnlyFiles () const
void showOnlyFiles (FXbool shown)
void setAssociations (FXFileDict *assoc)
FXFileDictgetAssociations () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXFileList ()

Static Public Member Functions

FXint ascending (const FXIconItem *pa, const FXIconItem *pb)
FXint descending (const FXIconItem *pa, const FXIconItem *pb)
FXint ascendingCase (const FXIconItem *pa, const FXIconItem *pb)
FXint descendingCase (const FXIconItem *pa, const FXIconItem *pb)
FXint ascendingType (const FXIconItem *pa, const FXIconItem *pb)
FXint descendingType (const FXIconItem *pa, const FXIconItem *pb)
FXint ascendingSize (const FXIconItem *pa, const FXIconItem *pb)
FXint descendingSize (const FXIconItem *pa, const FXIconItem *pb)
FXint ascendingTime (const FXIconItem *pa, const FXIconItem *pb)
FXint descendingTime (const FXIconItem *pa, const FXIconItem *pb)
FXint ascendingUser (const FXIconItem *pa, const FXIconItem *pb)
FXint descendingUser (const FXIconItem *pa, const FXIconItem *pb)
FXint ascendingGroup (const FXIconItem *pa, const FXIconItem *pb)
FXint descendingGroup (const FXIconItem *pa, const FXIconItem *pb)

Detailed Description

File List object.

See also:


Constructor & Destructor Documentation

FX::FXFileList::FXFileList 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 file list.

virtual FX::FXFileList::~FXFileList  )  [virtual]
 

Destructor.


Member Function Documentation

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

Create server-side resources.

Reimplemented from FX::FXIconList.

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

Detach server-side resources.

Reimplemented from FX::FXIconList.

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

Destroy server-side resources.

Reimplemented from FX::FXComposite.

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

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

void FX::FXFileList::setCurrentFile const FXString file  ) 
 

Set current file.

FXString FX::FXFileList::getCurrentFile  )  const
 

Return current file.

void FX::FXFileList::setDirectory const FXString path  ) 
 

Set current directory.

FXString FX::FXFileList::getDirectory  )  const [inline]
 

Return current directory.

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

Change wildcard matching pattern.

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

Return wildcard pattern.

FXbool FX::FXFileList::isItemDirectory FXint  index  )  const
 

Return TRUE if item is a directory.

FXbool FX::FXFileList::isItemShare FXint  index  )  const
 

Return TRUE if item is a directory.

FXbool FX::FXFileList::isItemFile FXint  index  )  const
 

Return TRUE if item is a file.

FXbool FX::FXFileList::isItemExecutable FXint  index  )  const
 

Return TRUE if item is executable.

FXString FX::FXFileList::getItemFilename FXint  index  )  const
 

Return name of item at index.

FXString FX::FXFileList::getItemPathname FXint  index  )  const
 

Return full pathname of item at index.

FXFileAssoc* FX::FXFileList::getItemAssoc FXint  index  )  const
 

Return file association of item.

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

Return wildcard matching mode.

void FX::FXFileList::setMatchMode FXuint  mode  ) 
 

Change wildcard matching mode.

FXbool FX::FXFileList::showHiddenFiles  )  const
 

Return TRUE if showing hidden files.

void FX::FXFileList::showHiddenFiles FXbool  showing  ) 
 

Show or hide hidden files.

FXbool FX::FXFileList::showOnlyDirectories  )  const
 

Return TRUE if showing directories only.

void FX::FXFileList::showOnlyDirectories FXbool  shown  ) 
 

Show directories only.

FXbool FX::FXFileList::showOnlyFiles  )  const
 

Return TRUE if showing files only.

void FX::FXFileList::showOnlyFiles FXbool  shown  ) 
 

Show files only.

void FX::FXFileList::setAssociations FXFileDict assoc  ) 
 

Change file associations.

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

Return file associations.

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

Save to stream.

Reimplemented from FX::FXIconList.

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

Load from stream.

Reimplemented from FX::FXIconList.

Copyright © 1997-2004 Jeroen van der Zijp