#include <FXDirList.h>
Public Types | |
enum | { FOLDER, EXECUTABLE, SYMLINK, CHARDEV, BLOCKDEV, FIFO, SOCK } |
enum | { SELECTED, FOCUS, DISABLED, OPENED, EXPANDED, HASITEMS, DRAGGABLE, OPENICONOWNED, CLOSEDICONOWNED } |
Public Member Functions | |
FXDirItem (const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL) | |
FXbool | isFile () const |
FXbool | isDirectory () const |
FXbool | isExecutable () const |
FXbool | isSymlink () const |
FXbool | isChardev () const |
FXbool | isBlockdev () const |
FXbool | isFifo () const |
FXbool | isSocket () const |
FXFileAssoc * | getAssoc () const |
FXlong | getSize () const |
FXTime | getDate () const |
FXTreeItem * | getParent () const |
FXTreeItem * | getNext () const |
FXTreeItem * | getPrev () const |
FXTreeItem * | getFirst () const |
FXTreeItem * | getLast () const |
FXTreeItem * | getBelow () const |
FXTreeItem * | getAbove () const |
FXint | getNumChildren () const |
virtual void | setText (const FXString &txt) |
const FXString & | getText () const |
virtual void | setOpenIcon (FXIcon *icn, FXbool owned=FALSE) |
FXIcon * | getOpenIcon () const |
virtual void | setClosedIcon (FXIcon *icn, FXbool owned=FALSE) |
FXIcon * | getClosedIcon () const |
void | setData (void *ptr) |
void * | getData () const |
virtual void | setFocus (FXbool focus) |
FXbool | hasFocus () const |
virtual void | setSelected (FXbool selected) |
FXbool | isSelected () const |
virtual void | setOpened (FXbool opened) |
FXbool | isOpened () const |
virtual void | setExpanded (FXbool expanded) |
FXbool | isExpanded () const |
virtual void | setEnabled (FXbool enabled) |
FXbool | isEnabled () const |
virtual void | setDraggable (FXbool draggable) |
FXbool | isDraggable () const |
FXbool | hasItems () const |
void | setHasItems (FXbool flag) |
FXbool | isChildOf (const FXTreeItem *item) const |
FXbool | isParentOf (const FXTreeItem *item) const |
virtual FXint | getWidth (const FXTreeList *list) const |
virtual FXint | getHeight (const FXTreeList *list) const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () const |
bool | isMemberOf (const FXMetaClass *metaclass) const |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
QTransString | tr (const char *text, const char *hint=0) |
virtual void * | getPythonObject () const |
virtual void | decouplePythonObject () const |
Protected Member Functions | |
virtual void | draw (const FXTreeList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual FXint | hitItem (const FXTreeList *list, FXint x, FXint y) const |
Protected Attributes | |
FXFileAssoc * | assoc |
FXDirItem * | link |
FXDirItem * | list |
FXlong | size |
FXTime | date |
FXTreeItem * | parent |
FXTreeItem * | prev |
FXTreeItem * | next |
FXTreeItem * | first |
FXTreeItem * | last |
FXString | label |
FXIcon * | openIcon |
FXIcon * | closedIcon |
void * | data |
FXuint | state |
FXint | x |
FXint | y |
Friends | |
class | FXDirList |
anonymous enum |
anonymous enum [inherited] |
FX::FXDirItem::FXDirItem | ( | const FXString & | text, | |
FXIcon * | oi = NULL , |
|||
FXIcon * | ci = NULL , |
|||
void * | ptr = NULL | |||
) | [inline] |
Constructor.
FXbool FX::FXDirItem::isFile | ( | ) | const [inline] |
Return true if this is a file item.
FXbool FX::FXDirItem::isDirectory | ( | ) | const [inline] |
Return true if this is a directory item.
FXbool FX::FXDirItem::isExecutable | ( | ) | const [inline] |
Return true if this is an executable item.
FXbool FX::FXDirItem::isSymlink | ( | ) | const [inline] |
Return true if this is a symbolic link item.
FXbool FX::FXDirItem::isChardev | ( | ) | const [inline] |
Return true if this is a character device item.
FXbool FX::FXDirItem::isBlockdev | ( | ) | const [inline] |
Return true if this is a block device item.
FXbool FX::FXDirItem::isFifo | ( | ) | const [inline] |
Return true if this is an FIFO item.
FXbool FX::FXDirItem::isSocket | ( | ) | const [inline] |
Return true if this is a socket.
FXFileAssoc* FX::FXDirItem::getAssoc | ( | ) | const [inline] |
Return the file-association object for this item.
FXlong FX::FXDirItem::getSize | ( | ) | const [inline] |
Return the file size for this item.
FXTime FX::FXDirItem::getDate | ( | ) | const [inline] |
Return the date for this item.
FXTreeItem* FX::FXTreeItem::getParent | ( | ) | const [inline, inherited] |
Get parent item.
FXTreeItem* FX::FXTreeItem::getNext | ( | ) | const [inline, inherited] |
Get next sibling item.
FXTreeItem* FX::FXTreeItem::getPrev | ( | ) | const [inline, inherited] |
Get previous sibling item.
FXTreeItem* FX::FXTreeItem::getFirst | ( | ) | const [inline, inherited] |
Get first child item.
FXTreeItem* FX::FXTreeItem::getLast | ( | ) | const [inline, inherited] |
Get las child item.
FXTreeItem* FX::FXTreeItem::getBelow | ( | ) | const [inherited] |
Get item below this one in list.
FXTreeItem* FX::FXTreeItem::getAbove | ( | ) | const [inherited] |
Get item above this one in list.
FXint FX::FXTreeItem::getNumChildren | ( | ) | const [inherited] |
Get number of children of item.
virtual void FX::FXTreeItem::setText | ( | const FXString & | txt | ) | [virtual, inherited] |
Change item label.
const FXString& FX::FXTreeItem::getText | ( | ) | const [inline, inherited] |
Get item label.
virtual void FX::FXTreeItem::setOpenIcon | ( | FXIcon * | icn, | |
FXbool | owned = FALSE | |||
) | [virtual, inherited] |
Change open icon, deleting the old icon if it was owned.
FXIcon* FX::FXTreeItem::getOpenIcon | ( | ) | const [inline, inherited] |
Get open icon.
virtual void FX::FXTreeItem::setClosedIcon | ( | FXIcon * | icn, | |
FXbool | owned = FALSE | |||
) | [virtual, inherited] |
Change closed icon, deleting the old icon if it was owned.
FXIcon* FX::FXTreeItem::getClosedIcon | ( | ) | const [inline, inherited] |
Get closed icon.
void FX::FXTreeItem::setData | ( | void * | ptr | ) | [inline, inherited] |
Change item user data.
void* FX::FXTreeItem::getData | ( | ) | const [inline, inherited] |
Get item user data.
virtual void FX::FXTreeItem::setFocus | ( | FXbool | focus | ) | [virtual, inherited] |
Make item draw as focused.
FXbool FX::FXTreeItem::hasFocus | ( | ) | const [inline, inherited] |
Return true if item has focus.
virtual void FX::FXTreeItem::setSelected | ( | FXbool | selected | ) | [virtual, inherited] |
Select item.
FXbool FX::FXTreeItem::isSelected | ( | ) | const [inline, inherited] |
Return true if this item is selected.
virtual void FX::FXTreeItem::setOpened | ( | FXbool | opened | ) | [virtual, inherited] |
Make item show as open.
FXbool FX::FXTreeItem::isOpened | ( | ) | const [inline, inherited] |
Return true if this item is open.
virtual void FX::FXTreeItem::setExpanded | ( | FXbool | expanded | ) | [virtual, inherited] |
Expand or collapse item.
FXbool FX::FXTreeItem::isExpanded | ( | ) | const [inline, inherited] |
Return true if this item is expanded into sub items.
virtual void FX::FXTreeItem::setEnabled | ( | FXbool | enabled | ) | [virtual, inherited] |
Enable or disable item.
FXbool FX::FXTreeItem::isEnabled | ( | ) | const [inline, inherited] |
Return true if this item is enabled.
virtual void FX::FXTreeItem::setDraggable | ( | FXbool | draggable | ) | [virtual, inherited] |
Make item draggable.
FXbool FX::FXTreeItem::isDraggable | ( | ) | const [inline, inherited] |
Return true if this item is draggable.
FXbool FX::FXTreeItem::hasItems | ( | ) | const [inline, inherited] |
Return TRUE if subitems, real or imagined.
void FX::FXTreeItem::setHasItems | ( | FXbool | flag | ) | [inherited] |
Change has items flag.
FXbool FX::FXTreeItem::isChildOf | ( | const FXTreeItem * | item | ) | const [inherited] |
Return true if descendent of parent item.
FXbool FX::FXTreeItem::isParentOf | ( | const FXTreeItem * | item | ) | const [inherited] |
Return true if ancestor of child item.
virtual FXint FX::FXTreeItem::getWidth | ( | const FXTreeList * | list | ) | const [virtual, inherited] |
virtual FXint FX::FXTreeItem::getHeight | ( | const FXTreeList * | list | ) | const [virtual, inherited] |
virtual void FX::FXTreeItem::create | ( | ) | [virtual, inherited] |
Create server-side resources.
virtual void FX::FXTreeItem::detach | ( | ) | [virtual, inherited] |
Detach server-side resources.
virtual void FX::FXTreeItem::destroy | ( | ) | [virtual, inherited] |
Destroy server-side resources.
virtual void FX::FXTreeItem::save | ( | FXStream & | store | ) | const [virtual, inherited] |
virtual void FX::FXTreeItem::load | ( | FXStream & | store | ) | [virtual, inherited] |
virtual long FX::FXObject::onDefault | ( | FXObject * | , | |
FXSelector | , | |||
void * | ||||
) | [virtual, inherited] |
Called for unhandled messages.
Reimplemented in FX::FXDelegator, FX::FXGLViewer, FX::FXMDIChild, and FX::FXMDIClient.
const FXchar* FX::FXObject::getClassName | ( | ) | const [inherited] |
Get class name of some object.
bool FX::FXObject::isMemberOf | ( | const FXMetaClass * | metaclass | ) | const [inherited] |
Check if object is member of metaclass.
virtual long FX::FXObject::tryHandle | ( | FXObject * | sender, | |
FXSelector | sel, | |||
void * | ptr | |||
) | [virtual, inherited] |
Try handle message safely.
QTransString FX::FXObject::tr | ( | const char * | text, | |
const char * | hint = 0 | |||
) | [inherited] |
Returns a human translated version of the text to the locale language (warning: uses a virtual method call, so can't use before construction)
virtual void* FX::FXObject::getPythonObject | ( | ) | const [inline, virtual, inherited] |
Returns the python object representing this instance (if created in python).
virtual void FX::FXObject::decouplePythonObject | ( | ) | const [inline, virtual, inherited] |
Causes decoupling of python object from this object (deletes self).