Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXFoldingList.h>
Inheritance diagram for FX::FXFoldingList:
Public Member Functions | |
FXFoldingList (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=FOLDINGLIST_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
virtual void | create () |
virtual void | detach () |
virtual void | layout () |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
virtual FXint | getContentWidth () |
virtual FXint | getContentHeight () |
virtual void | recalc () |
virtual FXbool | canFocus () const |
virtual void | setFocus () |
virtual void | killFocus () |
FXHeader * | getHeader () const |
void | appendHeader (const FXString &text, FXIcon *icon=NULL, FXint size=1) |
void | removeHeader (FXint index) |
void | setHeaderText (FXint index, const FXString &text) |
FXString | getHeaderText (FXint index) const |
void | setHeaderIcon (FXint index, FXIcon *icon) |
FXIcon * | getHeaderIcon (FXint index) const |
void | setHeaderSize (FXint index, FXint size) |
FXint | getHeaderSize (FXint index) const |
FXint | getNumHeaders () const |
FXint | getNumItems () const |
FXint | getNumVisible () const |
void | setNumVisible (FXint nvis) |
FXFoldingItem * | getFirstItem () const |
FXFoldingItem * | getLastItem () const |
FXFoldingItem * | addItemFirst (FXFoldingItem *p, FXFoldingItem *item, FXbool notify=FALSE) |
FXFoldingItem * | addItemFirst (FXFoldingItem *p, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL, FXbool notify=FALSE) |
FXFoldingItem * | addItemLast (FXFoldingItem *p, FXFoldingItem *item, FXbool notify=FALSE) |
FXFoldingItem * | addItemLast (FXFoldingItem *p, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL, FXbool notify=FALSE) |
FXFoldingItem * | addItemAfter (FXFoldingItem *other, FXFoldingItem *item, FXbool notify=FALSE) |
FXFoldingItem * | addItemAfter (FXFoldingItem *other, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL, FXbool notify=FALSE) |
FXFoldingItem * | addItemBefore (FXFoldingItem *other, FXFoldingItem *item, FXbool notify=FALSE) |
FXFoldingItem * | addItemBefore (FXFoldingItem *other, const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL, FXbool notify=FALSE) |
void | reparentItem (FXFoldingItem *item, FXFoldingItem *p) |
FXFoldingItem * | moveItemBefore (FXFoldingItem *other, FXFoldingItem *item) |
FXFoldingItem * | moveItemAfter (FXFoldingItem *other, FXFoldingItem *item) |
void | removeItem (FXFoldingItem *item, FXbool notify=FALSE) |
void | removeItems (FXFoldingItem *fm, FXFoldingItem *to, FXbool notify=FALSE) |
void | clearItems (FXbool notify=FALSE) |
FXint | getItemWidth (const FXFoldingItem *item) const |
FXint | getItemHeight (const FXFoldingItem *item) const |
FXFoldingItem * | getItemAt (FXint x, FXint y) const |
FXFoldingItem * | findItem (const FXString &text, FXFoldingItem *start=NULL, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const |
void | makeItemVisible (FXFoldingItem *item) |
void | setItemText (FXFoldingItem *item, const FXString &text) |
FXString | getItemText (const FXFoldingItem *item) const |
void | setItemOpenIcon (FXFoldingItem *item, FXIcon *icon) |
FXIcon * | getItemOpenIcon (const FXFoldingItem *item) const |
void | setItemClosedIcon (FXFoldingItem *item, FXIcon *icon) |
FXIcon * | getItemClosedIcon (const FXFoldingItem *item) const |
void | setItemData (FXFoldingItem *item, void *ptr) const |
void * | getItemData (const FXFoldingItem *item) const |
FXbool | isItemSelected (const FXFoldingItem *item) const |
FXbool | isItemCurrent (const FXFoldingItem *item) const |
FXbool | isItemVisible (const FXFoldingItem *item) const |
FXbool | isItemOpened (const FXFoldingItem *item) const |
FXbool | isItemExpanded (const FXFoldingItem *item) const |
FXbool | isItemLeaf (const FXFoldingItem *item) const |
FXbool | isItemEnabled (const FXFoldingItem *item) const |
FXint | hitItem (const FXFoldingItem *item, FXint x, FXint y) const |
void | updateItem (FXFoldingItem *item) |
FXbool | enableItem (FXFoldingItem *item) |
FXbool | disableItem (FXFoldingItem *item) |
FXbool | selectItem (FXFoldingItem *item, FXbool notify=FALSE) |
FXbool | deselectItem (FXFoldingItem *item, FXbool notify=FALSE) |
FXbool | toggleItem (FXFoldingItem *item, FXbool notify=FALSE) |
FXbool | extendSelection (FXFoldingItem *item, FXbool notify=FALSE) |
FXbool | killSelection (FXbool notify=FALSE) |
FXbool | openItem (FXFoldingItem *item, FXbool notify=FALSE) |
FXbool | closeItem (FXFoldingItem *item, FXbool notify=FALSE) |
FXbool | collapseTree (FXFoldingItem *tree, FXbool notify=FALSE) |
FXbool | expandTree (FXFoldingItem *tree, FXbool notify=FALSE) |
void | setCurrentItem (FXFoldingItem *item, FXbool notify=FALSE) |
FXFoldingItem * | getCurrentItem () const |
void | setAnchorItem (FXFoldingItem *item) |
FXFoldingItem * | getAnchorItem () const |
FXFoldingItem * | getCursorItem () const |
void | sortItems () |
void | sortRootItems () |
void | sortChildItems (FXFoldingItem *item) |
FXFoldingListSortFunc | getSortFunc () const |
void | setSortFunc (FXFoldingListSortFunc func) |
void | setFont (FXFont *fnt) |
FXFont * | getFont () const |
void | setIndent (FXint in) |
FXint | getIndent () const |
FXColor | getTextColor () const |
void | setTextColor (FXColor clr) |
FXColor | getSelBackColor () const |
void | setSelBackColor (FXColor clr) |
FXColor | getSelTextColor () const |
void | setSelTextColor (FXColor clr) |
FXColor | getLineColor () const |
void | setLineColor (FXColor clr) |
FXuint | getListStyle () const |
void | setListStyle (FXuint style) |
void | setHelpText (const FXString &text) |
FXString | getHelpText () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXFoldingList () |
Static Public Member Functions | |
FXint | ascending (const FXFoldingItem *, const FXFoldingItem *) |
FXint | descending (const FXFoldingItem *, const FXFoldingItem *) |
FXint | ascendingCase (const FXFoldingItem *, const FXFoldingItem *) |
FXint | descendingCase (const FXFoldingItem *, const FXFoldingItem *) |
Subtrees can be collapsed or expanded by double-clicking on an item or by clicking on the optional plus button in front of the item. Each item may have a text and optional open-icon as well as a closed-icon. The items may be connected by optional lines to show the hierarchical relationship. When an item's selected state changes, the folding list emits a SEL_SELECTED or SEL_DESELECTED message. If an item is opened or closed, a message of type SEL_OPENED or SEL_CLOSED is sent. When the subtree under an item is expanded, a SEL_EXPANDED or SEL_COLLAPSED message is issued. A change of the current item is signified by the SEL_CHANGED message. In addition, the folding list sends SEL_COMMAND messages when the user clicks on an item, and SEL_CLICKED, SEL_DOUBLECLICKED, and SEL_TRIPLECLICKED when the user clicks once, twice, or thrice, respectively. When items are added or removed, the folding list sends messages of the type SEL_INSERTED or SEL_DELETED. In each of these cases, a pointer to the item, if any, is passed in the 3rd argument of the message.
See also:
|
Construct a folding list; the folding list is initially empty.
|
|
Destructor.
|
|
Create server-side resources.
Reimplemented from FX::FXComposite. |
|
Detach server-side resources.
Reimplemented from FX::FXComposite. |
|
Perform layout.
Reimplemented from FX::FXScrollArea. |
|
Return default width.
Reimplemented from FX::FXScrollArea. |
|
Return default height.
Reimplemented from FX::FXScrollArea. |
|
Compute and return content width.
Reimplemented from FX::FXScrollArea. |
|
Return content height.
Reimplemented from FX::FXScrollArea. |
|
Recalculate layout.
Reimplemented from FX::FXWindow. |
|
Tree list can receive focus.
Reimplemented from FX::FXWindow. |
|
Move the focus to this window.
Reimplemented from FX::FXWindow. |
|
Remove the focus from this window.
Reimplemented from FX::FXWindow. |
|
Return header control.
|
|
Append header with given text and optional icon.
|
|
Remove header at index.
|
|
Change text of header at index.
|
|
Return text of header at index.
|
|
Change icon of header at index.
|
|
Return icon of header at index.
|
|
Change size of header at index.
|
|
Return width of header at index.
|
|
Return number of headers.
|
|
Return number of items.
|
|
Return number of visible items.
|
|
Change number of visible items.
|
|
Return first root item.
|
|
Return last root item.
|
|
Prepend new [possibly subclassed] item as first child of p.
|
|
Prepend new item with given text and optional icon, and user-data pointer as first child of p.
|
|
Append new [possibly subclassed] item as last child of p.
|
|
Append new item with given text and optional icon, and user-data pointer as last child of p.
|
|
Append new [possibly subclassed] item after to other item.
|
|
Append new item with given text and optional icon, and user-data pointer after to other item.
|
|
Prepend new [possibly subclassed] item prior to other item.
|
|
Prepend new item with given text and optional icon, and user-data pointer prior to other item.
|
|
Reparent item under parent p.
|
|
Remove item.
|
|
Remove items in range [fm, to] inclusively.
|
|
Remove all items from list.
|
|
Return item width.
|
|
Return item height.
|
|
Get item at x,y, if any.
|
|
Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.
|
|
Scroll to make item visible.
|
|
Change item's text.
|
|
Return item's text.
|
|
Change item's open icon.
|
|
Return item's open icon.
|
|
Chance item's closed icon.
|
|
Return item's closed icon.
|
|
Change item user-data pointer.
|
|
Return item user-data pointer.
|
|
Return TRUE if item is selected.
|
|
Return TRUE if item is current.
|
|
Return TRUE if item is visible.
|
|
Return TRUE if item opened.
|
|
Return TRUE if item expanded.
|
|
Return TRUE if item is a leaf-item, i.e. has no children.
|
|
Return TRUE if item is enabled.
|
|
Return item hit code: 0 outside, 1 icon, 2 text, 3 box.
|
|
Repaint item.
|
|
Enable item.
|
|
Disable item.
|
|
Select item.
|
|
Deselect item.
|
|
Toggle item selection.
|
|
Extend selection from anchor item to item.
|
|
Deselect all items.
|
|
Open item.
|
|
Close item.
|
|
Collapse tree.
|
|
Expand tree.
|
|
Change current item.
|
|
Return current item, if any.
|
|
Change anchor item.
|
|
Return anchor item, if any.
|
|
Return item under cursor, if any.
|
|
Sort all items recursively.
|
|
Sort root items.
|
|
Sort children of item.
|
|
Return sort function.
|
|
Change sort function.
|
|
Change text font.
|
|
Return text font.
|
|
Change parent-child indent amount.
|
|
Return parent-child indent amount.
|
|
Return normal text color.
|
|
Change normal text color.
|
|
Return selected text background.
|
|
Change selected text background.
|
|
Return selected text color.
|
|
Change selected text color.
|
|
Return line color.
|
|
Change line color.
|
|
Return list style.
|
|
Change list style.
|
|
Set the status line help text for this list.
|
|
Get the status line help text for this list.
|
|
Save object to a stream.
Reimplemented from FX::FXWindow. |
|
Load object from a stream.
Reimplemented from FX::FXWindow. |
Copyright © 1997-2004 Jeroen van der Zijp |