![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXTreeListBox.h>
Public Types | |
enum | { ID_TREE =FXPacker::ID_LAST, ID_FIELD, ID_LAST } |
![]() | |
enum | { ID_NONE, ID_HIDE, ID_SHOW, ID_TOGGLESHOWN, ID_LOWER, ID_RAISE, ID_DELETE, ID_DISABLE, ID_ENABLE, ID_TOGGLEENABLED, ID_UNCHECK, ID_CHECK, ID_UNKNOWN, ID_UPDATE, ID_AUTOSCROLL, ID_TIPTIMER, ID_HSCROLLED, ID_VSCROLLED, ID_SETVALUE, ID_SETINTVALUE, ID_SETREALVALUE, ID_SETSTRINGVALUE, ID_SETICONVALUE, ID_SETINTRANGE, ID_SETREALRANGE, ID_GETINTVALUE, ID_GETREALVALUE, ID_GETSTRINGVALUE, ID_GETICONVALUE, ID_GETINTRANGE, ID_GETREALRANGE, ID_SETHELPSTRING, ID_GETHELPSTRING, ID_SETTIPSTRING, ID_GETTIPSTRING, ID_QUERY_MENU, ID_HOTKEY, ID_ACCEL, ID_UNPOST, ID_POST, ID_MDI_TILEHORIZONTAL, ID_MDI_TILEVERTICAL, ID_MDI_CASCADE, ID_MDI_MAXIMIZE, ID_MDI_MINIMIZE, ID_MDI_RESTORE, ID_MDI_CLOSE, ID_MDI_WINDOW, ID_MDI_MENUWINDOW, ID_MDI_MENUMINIMIZE, ID_MDI_MENURESTORE, ID_MDI_MENUCLOSE, ID_MDI_NEXT, ID_MDI_PREV, ID_LAST } |
Additional Inherited Members | |
![]() | |
static FXWindow * | commonAncestor (FXWindow *a, FXWindow *b) |
static bool | before (const FXWindow *a, const FXWindow *b) |
static bool | after (const FXWindow *a, const FXWindow *b) |
![]() | |
static FXDragType | octetType |
static FXDragType | deleteType |
static FXDragType | textType |
static FXDragType | utf8Type |
static FXDragType | utf16Type |
static FXDragType | colorType |
static FXDragType | urilistType |
static const FXDragType | stringType |
static const FXDragType | imageType |
static const FXchar | octetTypeName [] |
static const FXchar | deleteTypeName [] |
static const FXchar | textTypeName [] |
static const FXchar | colorTypeName [] |
static const FXchar | urilistTypeName [] |
static const FXchar | utf8TypeName [] |
static const FXchar | utf16TypeName [] |
The Tree List Box behaves very much like a List Box, except that it supports a hierarchical, tree structured display of the items.
When an item is selected it issues a SEL_COMMAND message with the pointer to the item. While manipulating the tree list, it may send SEL_CHANGED messages to indicate which item the cursor is hovering over.
See also:
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 |
Destructor.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Perform layout.
Reimplemented from FX::FXPacker.
|
virtual |
Enable widget.
Reimplemented from FX::FXWindow.
|
virtual |
Disable widget.
Reimplemented from FX::FXWindow.
|
virtual |
Return default with.
Reimplemented from FX::FXPacker.
|
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.
FXint FX::FXTreeListBox::fillItems | ( | FXTreeItem * | father, |
const FXchar ** | strings, | ||
FXIcon * | oi = NULL , |
||
FXIcon * | ci = NULL , |
||
void * | ptr = NULL |
||
) |
Fill tree list box by appending items from array of strings.
FXint FX::FXTreeListBox::fillItems | ( | FXTreeItem * | father, |
const FXString & | strings, | ||
FXIcon * | oi = NULL , |
||
FXIcon * | ci = NULL , |
||
void * | ptr = NULL |
||
) |
Fill tree list box by appending items from newline separated strings.
FXTreeItem* FX::FXTreeListBox::insertItem | ( | FXTreeItem * | other, |
FXTreeItem * | father, | ||
FXTreeItem * | item | ||
) |
Insert [possibly subclassed] item under father before other item.
FXTreeItem* FX::FXTreeListBox::insertItem | ( | FXTreeItem * | other, |
FXTreeItem * | father, | ||
const FXString & | text, | ||
FXIcon * | oi = NULL , |
||
FXIcon * | ci = NULL , |
||
void * | ptr = NULL |
||
) |
Insert item with given text and optional icons, and user-data pointer under father before other item.
FXTreeItem* FX::FXTreeListBox::appendItem | ( | FXTreeItem * | father, |
FXTreeItem * | item | ||
) |
Append [possibly subclassed] item as last child of father.
FXTreeItem* FX::FXTreeListBox::appendItem | ( | FXTreeItem * | father, |
const FXString & | text, | ||
FXIcon * | oi = NULL , |
||
FXIcon * | ci = NULL , |
||
void * | ptr = NULL |
||
) |
Append item with given text and optional icons, and user-data pointer as last child of father.
FXTreeItem* FX::FXTreeListBox::prependItem | ( | FXTreeItem * | father, |
FXTreeItem * | item | ||
) |
Prepend [possibly subclassed] item as first child of father.
FXTreeItem* FX::FXTreeListBox::prependItem | ( | FXTreeItem * | father, |
const FXString & | text, | ||
FXIcon * | oi = NULL , |
||
FXIcon * | ci = NULL , |
||
void * | ptr = NULL |
||
) |
Prepend item with given text and optional icons, and user-data pointer as first child of father.
FXTreeItem* FX::FXTreeListBox::moveItem | ( | FXTreeItem * | other, |
FXTreeItem * | father, | ||
FXTreeItem * | item | ||
) |
Move item under father before other item.
FXTreeItem* FX::FXTreeListBox::extractItem | ( | FXTreeItem * | item | ) |
Extract 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 by name, beginning from item start.
If the start item is NULL the search will start at the first, top-most item in the list. Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the search direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP to control whether the search wraps at the start or end of the list. The option SEARCH_IGNORECASE causes a case-insensitive match. Finally, passing SEARCH_PREFIX causes searching for a prefix of the item name. Return NULL if no matching item is found.
FXTreeItem* FX::FXTreeListBox::findItemByData | ( | const void * | ptr, |
FXTreeItem * | start = NULL , |
||
FXuint | flags = SEARCH_FORWARD|SEARCH_WRAP |
||
) | const |
Search items by associated user data, beginning from item start.
If the start item is NULL the search will start at the first, top-most item in the list. Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the search direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP to control whether the search wraps at the start or end of the list.
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.
|
virtual |
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, | ||
FXbool | owned = FALSE |
||
) |
Change item's open icon, delete old one if it was owned.
FXIcon* FX::FXTreeListBox::getItemOpenIcon | ( | const FXTreeItem * | item | ) | const |
Return item's open icon.
void FX::FXTreeListBox::setItemClosedIcon | ( | FXTreeItem * | item, |
FXIcon * | icon, | ||
FXbool | owned = FALSE |
||
) |
Change item's closed icon, delete old one if it was owned.
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.
const FXString& FX::FXTreeListBox::getHelpText | ( | ) | const |
Return help text.
void FX::FXTreeListBox::setTipText | ( | const FXString & | txt | ) |
Change tip text.
const FXString& FX::FXTreeListBox::getTipText | ( | ) | const |
Return tip text.
|
virtual |
|
virtual |
![]() |