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

FX::FXDirBox Class Reference

A Directory Box widget allows the user to select parts of a file path. More...

#include <FXDirBox.h>

Inheritance diagram for FX::FXDirBox:
FX::FXTreeListBox FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

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.
FXFileDictgetAssociations () const
 Return file associations.
virtual ~FXDirBox ()
 Destructor.

Protected Member Functions

FXString getItemPathname (FXTreeItem *item) const
FXTreeItemgetPathnameItem (const FXString &path)

Protected Attributes

FXFileDictassociations
FXIconfoldericon
FXIconcdromicon
FXIconharddiskicon
FXIconnetdriveicon
FXIconfloppyicon
FXIconnethoodicon
FXIconzipdiskicon

Detailed Description

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.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp