Public Types |
enum | {
ID_REFRESHTIMER = FXIconList::ID_LAST,
ID_OPENTIMER,
ID_SORT_BY_NAME,
ID_SORT_BY_TYPE,
ID_SORT_BY_SIZE,
ID_SORT_BY_TIME,
ID_SORT_BY_USER,
ID_SORT_BY_GROUP,
ID_SORT_REVERSE,
ID_SORT_CASE,
ID_DIRECTORY_UP,
ID_SET_PATTERN,
ID_SET_DIRECTORY,
ID_SHOW_HIDDEN,
ID_HIDE_HIDDEN,
ID_TOGGLE_HIDDEN,
ID_TOGGLE_IMAGES,
ID_REFRESH,
ID_LAST
} |
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, FXbool notify=FALSE) |
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 |
FXFileAssoc * | getItemAssoc (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) |
FXbool | showImages () const |
void | showImages (FXbool showing) |
FXint | getImageSize () const |
void | setImageSize (FXint size) |
FXbool | showParents () const |
void | showParents (FXbool shown) |
void | setAssociations (FXFileDict *assoc) |
FXFileDict * | getAssociations () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXFileList () |
Static Public Member Functions |
static FXint | ascending (const FXIconItem *a, const FXIconItem *b) |
static FXint | descending (const FXIconItem *a, const FXIconItem *b) |
static FXint | ascendingCase (const FXIconItem *a, const FXIconItem *b) |
static FXint | descendingCase (const FXIconItem *a, const FXIconItem *b) |
static FXint | ascendingType (const FXIconItem *a, const FXIconItem *b) |
static FXint | descendingType (const FXIconItem *a, const FXIconItem *b) |
static FXint | ascendingSize (const FXIconItem *a, const FXIconItem *b) |
static FXint | descendingSize (const FXIconItem *a, const FXIconItem *b) |
static FXint | ascendingTime (const FXIconItem *a, const FXIconItem *b) |
static FXint | descendingTime (const FXIconItem *a, const FXIconItem *b) |
static FXint | ascendingUser (const FXIconItem *a, const FXIconItem *b) |
static FXint | descendingUser (const FXIconItem *a, const FXIconItem *b) |
static FXint | ascendingGroup (const FXIconItem *a, const FXIconItem *b) |
static FXint | descendingGroup (const FXIconItem *a, const FXIconItem *b) |
A File List widget provides an icon rich view of the file system.
It automatically updates itself periodically by re-scanning the file system for any changes. As it scans the displayed directory, it automatically determines the icons to be displayed by consulting the file associations registry settings. A number of messages can be sent to the File List to control the filter pattern, sort category, sorting order, case sensitivity, and hidden file display mode. The File list widget supports drags and drops of files.
See also: