![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
A Directory Box widget allows the user to select parts of a file path. More...
#include <FXDirBox.h>
Public Member Functions | |
| long | onTreeChanged (FXObject *, FXSelector, void *) |
| long | onTreeCommand (FXObject *, FXSelector, void *) |
| long | onCmdSetValue (FXObject *, FXSelector, void *) |
| long | onCmdSetStringValue (FXObject *, FXSelector, void *) |
| long | onCmdGetStringValue (FXObject *, FXSelector, void *) |
| FXDirBox (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
| Construct a Directory Box. | |
| virtual void | create () |
| Create server-side resources. | |
| virtual void | detach () |
| Detach server-side resources. | |
| virtual void | destroy () |
| Destroy server-side resources. | |
| virtual void | save (FXStream &store) const |
| Save to stream. | |
| virtual void | load (FXStream &store) |
| Load from stream. | |
| void | setDirectory (const FXString &pathname) |
| Set current directory. | |
| FXString | getDirectory () const |
| Return current directory. | |
| void | setAssociations (FXFileDict *assoc, FXbool owned=false) |
| Change file associations; delete the old one unless it was shared. | |
| FXFileDict * | getAssociations () const |
| Return file associations. | |
| virtual | ~FXDirBox () |
| Destructor. | |
Protected Member Functions | |
| FXString | getItemPathname (FXTreeItem *item) const |
| FXTreeItem * | getPathnameItem (const FXString &path) |
Protected Attributes | |
| FXFileDict * | associations |
| FXIcon * | foldericon |
| FXIcon * | cdromicon |
| FXIcon * | harddiskicon |
| FXIcon * | netdriveicon |
| FXIcon * | floppyicon |
| FXIcon * | nethoodicon |
| FXIcon * | zipdiskicon |
A Directory Box widget allows the user to select parts of a file path.
First, it is filled with a string comprising a file path, like "/a/b/c". Then, the user can select "/a/b/c", "/a/b", "/a", and "/" from the drop-down list. The entries in the drop-down list are automatically provided with icons by consulting the file-associations registry settings. The Directory Box sends SEL_CHANGED and SEL_COMMAND messages, with the string containing the full path to the selected item.
|
|