#include <FXFoldingList.h>
Public Types | |
enum | { SELECTED, FOCUS, DISABLED, OPENED, EXPANDED, HASITEMS, DRAGGABLE, OPENICONOWNED, CLOSEDICONOWNED } |
Public Member Functions | |
FXFoldingItem (const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL) | |
FXFoldingItem * | getParent () const |
FXFoldingItem * | getNext () const |
FXFoldingItem * | getPrev () const |
FXFoldingItem * | getFirst () const |
FXFoldingItem * | getLast () const |
FXFoldingItem * | getBelow () const |
FXFoldingItem * | 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 FXFoldingItem *item) const |
FXbool | isParentOf (const FXFoldingItem *item) const |
virtual FXint | getWidth (const FXFoldingList *list) const |
virtual FXint | getHeight (const FXFoldingList *list) const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXFoldingItem () |
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 FXFoldingList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) const |
virtual FXint | hitItem (const FXFoldingList *list, FXint x, FXint y) const |
Protected Attributes | |
FXFoldingItem * | parent |
FXFoldingItem * | prev |
FXFoldingItem * | next |
FXFoldingItem * | first |
FXFoldingItem * | last |
FXString | label |
FXIcon * | openIcon |
FXIcon * | closedIcon |
void * | data |
FXuint | state |
FXint | x |
FXint | y |
Friends | |
class | FXFoldingList |
class | FXDirList |
anonymous enum |
FX::FXFoldingItem::FXFoldingItem | ( | const FXString & | text, | |
FXIcon * | oi = NULL , |
|||
FXIcon * | ci = NULL , |
|||
void * | ptr = NULL | |||
) | [inline] |
Constructor.
virtual FX::FXFoldingItem::~FXFoldingItem | ( | ) | [virtual] |
Destroy item and free icons if owned.
FXFoldingItem* FX::FXFoldingItem::getParent | ( | ) | const [inline] |
Get parent item.
FXFoldingItem* FX::FXFoldingItem::getNext | ( | ) | const [inline] |
Get next sibling item.
FXFoldingItem* FX::FXFoldingItem::getPrev | ( | ) | const [inline] |
Get previous sibling item.
FXFoldingItem* FX::FXFoldingItem::getFirst | ( | ) | const [inline] |
Get first child item.
FXFoldingItem* FX::FXFoldingItem::getLast | ( | ) | const [inline] |
Get las child item.
FXFoldingItem* FX::FXFoldingItem::getBelow | ( | ) | const |
Get item below this one in list.
FXFoldingItem* FX::FXFoldingItem::getAbove | ( | ) | const |
Get item above this one in list.
FXint FX::FXFoldingItem::getNumChildren | ( | ) | const |
Get number of children of item.
virtual void FX::FXFoldingItem::setText | ( | const FXString & | txt | ) | [virtual] |
Change item label.
const FXString& FX::FXFoldingItem::getText | ( | ) | const [inline] |
Get item label.
virtual void FX::FXFoldingItem::setOpenIcon | ( | FXIcon * | icn, | |
FXbool | owned = FALSE | |||
) | [virtual] |
Change open icon, deleting old icon if it was owned.
FXIcon* FX::FXFoldingItem::getOpenIcon | ( | ) | const [inline] |
Get open icon.
virtual void FX::FXFoldingItem::setClosedIcon | ( | FXIcon * | icn, | |
FXbool | owned = FALSE | |||
) | [virtual] |
Change closed icon, deleting old icon if it was owned.
FXIcon* FX::FXFoldingItem::getClosedIcon | ( | ) | const [inline] |
Get closed icon.
void FX::FXFoldingItem::setData | ( | void * | ptr | ) | [inline] |
Change item user data.
void* FX::FXFoldingItem::getData | ( | ) | const [inline] |
Get item user data.
virtual void FX::FXFoldingItem::setFocus | ( | FXbool | focus | ) | [virtual] |
Make item draw as focused.
FXbool FX::FXFoldingItem::hasFocus | ( | ) | const [inline] |
Return true if item has focus.
virtual void FX::FXFoldingItem::setSelected | ( | FXbool | selected | ) | [virtual] |
Select item.
FXbool FX::FXFoldingItem::isSelected | ( | ) | const [inline] |
Return true if this item is selected.
virtual void FX::FXFoldingItem::setOpened | ( | FXbool | opened | ) | [virtual] |
Make item show as open.
FXbool FX::FXFoldingItem::isOpened | ( | ) | const [inline] |
Return true if this item is open.
virtual void FX::FXFoldingItem::setExpanded | ( | FXbool | expanded | ) | [virtual] |
Expand or collapse item.
FXbool FX::FXFoldingItem::isExpanded | ( | ) | const [inline] |
Return true if this item is expanded into sub items.
virtual void FX::FXFoldingItem::setEnabled | ( | FXbool | enabled | ) | [virtual] |
Enable or disable item.
FXbool FX::FXFoldingItem::isEnabled | ( | ) | const [inline] |
Return true if this item is enabled.
virtual void FX::FXFoldingItem::setDraggable | ( | FXbool | draggable | ) | [virtual] |
Make item draggable.
FXbool FX::FXFoldingItem::isDraggable | ( | ) | const [inline] |
Return true if this item is draggable.
FXbool FX::FXFoldingItem::hasItems | ( | ) | const [inline] |
Return TRUE if subitems, real or imagined.
void FX::FXFoldingItem::setHasItems | ( | FXbool | flag | ) |
Change has items flag.
FXbool FX::FXFoldingItem::isChildOf | ( | const FXFoldingItem * | item | ) | const |
Return true if descendent of parent item.
FXbool FX::FXFoldingItem::isParentOf | ( | const FXFoldingItem * | item | ) | const |
Return true if ancestor of child item.
virtual FXint FX::FXFoldingItem::getWidth | ( | const FXFoldingList * | list | ) | const [virtual] |
virtual FXint FX::FXFoldingItem::getHeight | ( | const FXFoldingList * | list | ) | const [virtual] |
virtual void FX::FXFoldingItem::create | ( | ) | [virtual] |
Create server-side resources.
virtual void FX::FXFoldingItem::detach | ( | ) | [virtual] |
Detach server-side resources.
virtual void FX::FXFoldingItem::destroy | ( | ) | [virtual] |
Destroy server-side resources.
virtual void FX::FXFoldingItem::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXFoldingItem::load | ( | FXStream & | store | ) | [virtual] |
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).