![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXDirList.h>
It automatically updates itself periodically by re-scanning the file system for any changes. As it scans the displayed directories and files, it automatically determines the icons to be displayed by consulting the file-associations registry settings. A number of messages can be sent to the Directory List to control the filter pattern, sorting order, case sensitivity, and hidden file display mode. The Directory list widget supports drags and drops of files.
See also:
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.
static FXint FX::FXDirList::ascending | ( | const FXTreeItem * | a, | |
const FXTreeItem * | b | |||
) | [static] |
Reimplemented from FX::FXTreeList.
static FXint FX::FXDirList::descending | ( | const FXTreeItem * | a, | |
const FXTreeItem * | b | |||
) | [static] |
Reimplemented from FX::FXTreeList.
static FXint FX::FXDirList::ascendingCase | ( | const FXTreeItem * | a, | |
const FXTreeItem * | b | |||
) | [static] |
Reimplemented from FX::FXTreeList.
static FXint FX::FXDirList::descendingCase | ( | const FXTreeItem * | a, | |
const FXTreeItem * | b | |||
) | [static] |
Reimplemented from FX::FXTreeList.
virtual void FX::FXDirList::create | ( | ) | [virtual] |
virtual void FX::FXDirList::detach | ( | ) | [virtual] |
virtual void FX::FXDirList::destroy | ( | ) | [virtual] |
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] |
virtual FXbool FX::FXDirList::expandTree | ( | FXTreeItem * | tree, | |
FXbool | notify = false | |||
) | [virtual] |
Set current file.
FXString FX::FXDirList::getCurrentFile | ( | ) | const |
Return current file.
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 | flag | ) |
Show or hide normal files.
FXbool FX::FXDirList::showHiddenFiles | ( | ) | const |
Return true if showing hidden files and directories.
void FX::FXDirList::showHiddenFiles | ( | FXbool | flag | ) |
Show or hide hidden files and directories.
void FX::FXDirList::setAssociations | ( | FXFileDict * | assoc, | |
FXbool | owned = false | |||
) |
Change file associations; delete the old one unless it was shared.
FXFileDict* FX::FXDirList::getAssociations | ( | ) | const [inline] |
Return file associations.
void FX::FXDirList::setDraggableFiles | ( | FXbool | flag | ) |
Set draggable files.
FXbool FX::FXDirList::getDraggableFiles | ( | ) | const [inline] |
Are files draggable.
virtual void FX::FXDirList::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXDirList::load | ( | FXStream & | store | ) | [virtual] |
![]() |