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

FX::FXTreeListBox Class Reference

Tree List Box. More...

#include <FXTreeListBox.h>

Inheritance diagram for FX::FXTreeListBox:

FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject FX::FXDirBox List of all members.

Public Types

enum  {
  ID_TREE = FXPacker::ID_LAST,
  ID_FIELD,
  ID_LAST
}

Public Member Functions

 FXTreeListBox (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)
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void layout ()
virtual void enable ()
virtual void disable ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
FXint getNumItems () const
FXint getNumVisible () const
void setNumVisible (FXint nvis)
FXTreeItemgetFirstItem () const
FXTreeItemgetLastItem () const
FXTreeItemaddItemFirst (FXTreeItem *p, FXTreeItem *item)
FXTreeItemaddItemLast (FXTreeItem *p, FXTreeItem *item)
FXTreeItemaddItemAfter (FXTreeItem *other, FXTreeItem *item)
FXTreeItemaddItemBefore (FXTreeItem *other, FXTreeItem *item)
FXTreeItemaddItemFirst (FXTreeItem *p, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL)
FXTreeItemaddItemLast (FXTreeItem *p, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL)
FXTreeItemaddItemAfter (FXTreeItem *other, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL)
FXTreeItemaddItemBefore (FXTreeItem *other, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL)
void removeItem (FXTreeItem *item)
void removeItems (FXTreeItem *fm, FXTreeItem *to)
void clearItems ()
FXTreeItemfindItem (const FXString &text, FXTreeItem *start=NULL, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const
FXbool isItemCurrent (const FXTreeItem *item) const
FXbool isItemLeaf (const FXTreeItem *item) const
void sortRootItems ()
void sortItems ()
void sortChildItems (FXTreeItem *item)
void setCurrentItem (FXTreeItem *item, FXbool notify=FALSE)
FXTreeItemgetCurrentItem () const
void setItemText (FXTreeItem *item, const FXString &text)
FXString getItemText (const FXTreeItem *item) const
void setItemOpenIcon (FXTreeItem *item, FXIcon *icon)
FXIcongetItemOpenIcon (const FXTreeItem *item) const
void setItemClosedIcon (FXTreeItem *item, FXIcon *icon)
FXIcongetItemClosedIcon (const FXTreeItem *item) const
void setItemData (FXTreeItem *item, void *ptr) const
void * getItemData (const FXTreeItem *item) const
FXTreeListSortFunc getSortFunc () const
void setSortFunc (FXTreeListSortFunc func)
FXbool isPaneShown () const
void setFont (FXFont *fnt)
FXFontgetFont () const
FXuint getListStyle () const
void setListStyle (FXuint style)
void setHelpText (const FXString &txt)
FXString getHelpText () const
void setTipText (const FXString &txt)
FXString getTipText () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXTreeListBox ()

Detailed Description

Tree List Box.

See also:


Constructor & Destructor Documentation

FX::FXTreeListBox::FXTreeListBox 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 tree list box.

virtual FX::FXTreeListBox::~FXTreeListBox  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXTreeListBox::create  )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXDirBox.

virtual void FX::FXTreeListBox::detach  )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXDirBox.

virtual void FX::FXTreeListBox::destroy  )  [virtual]
 

Destroy server-side resources.

Reimplemented from FX::FXComposite.

Reimplemented in FX::FXDirBox.

virtual void FX::FXTreeListBox::layout  )  [virtual]
 

Perform layout.

Reimplemented from FX::FXPacker.

virtual void FX::FXTreeListBox::enable  )  [virtual]
 

Enable widget.

Reimplemented from FX::FXWindow.

virtual void FX::FXTreeListBox::disable  )  [virtual]
 

Disable widget.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXTreeListBox::getDefaultWidth  )  [virtual]
 

Return default with.

Reimplemented from FX::FXPacker.

virtual FXint FX::FXTreeListBox::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXPacker.

FXint FX::FXTreeListBox::getNumItems  )  const
 

Return number of items.

FXint FX::FXTreeListBox::getNumVisible  )  const
 

Return number of visible items.

void FX::FXTreeListBox::setNumVisible FXint  nvis  ) 
 

Set number of visible items to determine default height.

FXTreeItem* FX::FXTreeListBox::getFirstItem  )  const
 

Return first top-level item.

FXTreeItem* FX::FXTreeListBox::getLastItem  )  const
 

Return last top-level item.

FXTreeItem* FX::FXTreeListBox::addItemFirst FXTreeItem p,
FXTreeItem item
 

Add item as first child of parent p.

FXTreeItem* FX::FXTreeListBox::addItemLast FXTreeItem p,
FXTreeItem item
 

Add item as last child after parent p.

FXTreeItem* FX::FXTreeListBox::addItemAfter FXTreeItem other,
FXTreeItem item
 

Add item after other item.

FXTreeItem* FX::FXTreeListBox::addItemBefore FXTreeItem other,
FXTreeItem item
 

Add item before other item.

FXTreeItem* FX::FXTreeListBox::addItemFirst FXTreeItem p,
const FXString text,
FXIcon oi = NULL,
FXIcon ci = NULL,
void *  ptr = NULL
 

Add item as first child of parent p.

FXTreeItem* FX::FXTreeListBox::addItemLast FXTreeItem p,
const FXString text,
FXIcon oi = NULL,
FXIcon ci = NULL,
void *  ptr = NULL
 

Add item as last child of parent p.

FXTreeItem* FX::FXTreeListBox::addItemAfter FXTreeItem other,
const FXString text,
FXIcon oi = NULL,
FXIcon ci = NULL,
void *  ptr = NULL
 

Add item after other item.

FXTreeItem* FX::FXTreeListBox::addItemBefore FXTreeItem other,
const FXString text,
FXIcon oi = NULL,
FXIcon ci = NULL,
void *  ptr = NULL
 

Add item before other item.

void FX::FXTreeListBox::removeItem FXTreeItem item  ) 
 

Remove item.

void FX::FXTreeListBox::removeItems FXTreeItem fm,
FXTreeItem to
 

Remove all items in range [fm...to].

void FX::FXTreeListBox::clearItems  ) 
 

Remove all items from list.

FXTreeItem* FX::FXTreeListBox::findItem const FXString text,
FXTreeItem start = NULL,
FXuint  flags = SEARCH_FORWARD|SEARCH_WRAP
const
 

Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.

FXbool FX::FXTreeListBox::isItemCurrent const FXTreeItem item  )  const
 

Return TRUE if item is the current item.

FXbool FX::FXTreeListBox::isItemLeaf const FXTreeItem item  )  const
 

Return TRUE if item is leaf-item, i.e. has no children.

void FX::FXTreeListBox::sortRootItems  ) 
 

Sort the toplevel items with the sort function.

void FX::FXTreeListBox::sortItems  ) 
 

Sort all items recursively.

void FX::FXTreeListBox::sortChildItems FXTreeItem item  ) 
 

Sort child items of item.

void FX::FXTreeListBox::setCurrentItem FXTreeItem item,
FXbool  notify = FALSE
 

Change current item.

FXTreeItem* FX::FXTreeListBox::getCurrentItem  )  const
 

Return current item.

void FX::FXTreeListBox::setItemText FXTreeItem item,
const FXString text
 

Change item label.

FXString FX::FXTreeListBox::getItemText const FXTreeItem item  )  const
 

Return item label.

void FX::FXTreeListBox::setItemOpenIcon FXTreeItem item,
FXIcon icon
 

Change item's open icon.

FXIcon* FX::FXTreeListBox::getItemOpenIcon const FXTreeItem item  )  const
 

Return item's open icon.

void FX::FXTreeListBox::setItemClosedIcon FXTreeItem item,
FXIcon icon
 

Change item's closed icon.

FXIcon* FX::FXTreeListBox::getItemClosedIcon const FXTreeItem item  )  const
 

Return item's closed icon.

void FX::FXTreeListBox::setItemData FXTreeItem item,
void *  ptr
const
 

Change item's user data.

void* FX::FXTreeListBox::getItemData const FXTreeItem item  )  const
 

Return item's user data.

FXTreeListSortFunc FX::FXTreeListBox::getSortFunc  )  const
 

Return item sort function.

void FX::FXTreeListBox::setSortFunc FXTreeListSortFunc  func  ) 
 

Change item sort function.

FXbool FX::FXTreeListBox::isPaneShown  )  const
 

Is the pane shown.

void FX::FXTreeListBox::setFont FXFont fnt  ) 
 

Change font.

FXFont* FX::FXTreeListBox::getFont  )  const
 

Return font.

FXuint FX::FXTreeListBox::getListStyle  )  const
 

Return list style.

void FX::FXTreeListBox::setListStyle FXuint  style  ) 
 

Change list style.

void FX::FXTreeListBox::setHelpText const FXString txt  ) 
 

Change help text.

FXString FX::FXTreeListBox::getHelpText  )  const
 

Return help text.

void FX::FXTreeListBox::setTipText const FXString txt  ) 
 

Change tip text.

FXString FX::FXTreeListBox::getTipText  )  const
 

Return tip text.

virtual void FX::FXTreeListBox::save FXStream store  )  const [virtual]
 

Save object to a stream.

Reimplemented from FX::FXPacker.

Reimplemented in FX::FXDirBox.

virtual void FX::FXTreeListBox::load FXStream store  )  [virtual]
 

Load object from a stream.

Reimplemented from FX::FXPacker.

Reimplemented in FX::FXDirBox.

Copyright © 1997-2004 Jeroen van der Zijp