![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
00001 /******************************************************************************** 00002 * * 00003 * T r e e L i s t W i d g e t * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 1997,2009 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU Lesser General Public License as published by * 00010 * the Free Software Foundation; either version 3 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public License * 00019 * along with this program. If not, see <http://www.gnu.org/licenses/> * 00020 ********************************************************************************* 00021 * $Id: FXTreeList.h,v 1.109 2009/01/06 13:07:28 fox Exp $ * 00022 ********************************************************************************/ 00023 #ifndef FXTREELIST_H 00024 #define FXTREELIST_H 00025 00026 #ifndef FXSCROLLAREA_H 00027 #include "FXScrollArea.h" 00028 #endif 00029 00030 namespace FX { 00031 00032 00033 class FXIcon; 00034 class FXFont; 00035 class FXTreeList; 00036 class FXDirList; 00037 00038 00039 /// Tree list styles 00040 enum { 00041 TREELIST_EXTENDEDSELECT = 0, /// Extended selection mode allows for drag-selection of ranges of items 00042 TREELIST_SINGLESELECT = 0x00100000, /// Single selection mode allows up to one item to be selected 00043 TREELIST_BROWSESELECT = 0x00200000, /// Browse selection mode enforces one single item to be selected at all times 00044 TREELIST_MULTIPLESELECT = 0x00300000, /// Multiple selection mode is used for selection of individual items 00045 TREELIST_AUTOSELECT = 0x00400000, /// Automatically select under cursor 00046 TREELIST_SHOWS_LINES = 0x00800000, /// Lines shown 00047 TREELIST_SHOWS_BOXES = 0x01000000, /// Boxes to expand shown 00048 TREELIST_ROOT_BOXES = 0x02000000, /// Display root boxes also 00049 TREELIST_NORMAL = TREELIST_EXTENDEDSELECT 00050 }; 00051 00052 00053 /// Tree list Item 00054 class FXAPI FXTreeItem : public FXObject { 00055 FXDECLARE(FXTreeItem) 00056 friend class FXTreeList; 00057 friend class FXDirList; 00058 protected: 00059 FXTreeItem *parent; // Parent item 00060 FXTreeItem *prev; // Previous item 00061 FXTreeItem *next; // Next item 00062 FXTreeItem *first; // First child item 00063 FXTreeItem *last; // Last child item 00064 FXString label; // Text of item 00065 FXIcon *openIcon; // Icon of item 00066 FXIcon *closedIcon; // Icon of item 00067 void *data; // Item user data pointer 00068 FXuint state; // Item state flags 00069 FXint x,y; 00070 private: 00071 FXTreeItem(const FXTreeItem&); 00072 FXTreeItem& operator=(const FXTreeItem&); 00073 protected: 00074 FXTreeItem():parent(NULL),prev(NULL),next(NULL),first(NULL),last(NULL),openIcon(NULL),closedIcon(NULL),data(NULL),state(0),x(0),y(0){} 00075 virtual void draw(const FXTreeList* list,FXDC& dc,FXint x,FXint y,FXint w,FXint h) const; 00076 virtual FXint hitItem(const FXTreeList* list,FXint x,FXint y) const; 00077 public: 00078 enum{ 00079 SELECTED = 1, /// Selected 00080 FOCUS = 2, /// Focus 00081 DISABLED = 4, /// Disabled 00082 OPENED = 8, /// Opened 00083 EXPANDED = 16, /// Expanded 00084 HASITEMS = 32, /// Has virtual subitems 00085 DRAGGABLE = 64, /// Draggable 00086 OPENICONOWNED = 128, /// Open icon owned by item 00087 CLOSEDICONOWNED = 256 /// Close icon owned by item 00088 }; 00089 public: 00090 00091 /// Constructor 00092 FXTreeItem(const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ptr=NULL):parent(NULL),prev(NULL),next(NULL),first(NULL),last(NULL),label(text),openIcon(oi),closedIcon(ci),data(ptr),state(0),x(0),y(0){} 00093 00094 /// Get parent item 00095 FXTreeItem* getParent() const { return parent; } 00096 00097 /// Get next sibling item 00098 FXTreeItem* getNext() const { return next; } 00099 00100 /// Get previous sibling item 00101 FXTreeItem* getPrev() const { return prev; } 00102 00103 /// Get first child item 00104 FXTreeItem* getFirst() const { return first; } 00105 00106 /// Get las child item 00107 FXTreeItem* getLast() const { return last; } 00108 00109 /// Get item below this one in list 00110 FXTreeItem* getBelow() const; 00111 00112 /// Get item above this one in list 00113 FXTreeItem* getAbove() const; 00114 00115 /// Get number of children of item 00116 FXint getNumChildren() const; 00117 00118 /// Change item label 00119 virtual void setText(const FXString& txt); 00120 00121 /// Get item label 00122 const FXString& getText() const { return label; } 00123 00124 /// Change open icon, deleting the old icon if it was owned 00125 virtual void setOpenIcon(FXIcon* icn,FXbool owned=false); 00126 00127 /// Get open icon 00128 FXIcon* getOpenIcon() const { return openIcon; } 00129 00130 /// Change closed icon, deleting the old icon if it was owned 00131 virtual void setClosedIcon(FXIcon* icn,FXbool owned=false); 00132 00133 /// Get closed icon 00134 FXIcon* getClosedIcon() const { return closedIcon; } 00135 00136 /// Change item user data 00137 void setData(void* ptr){ data=ptr; } 00138 00139 /// Get item user data 00140 void* getData() const { return data; } 00141 00142 /// Make item draw as focused 00143 virtual void setFocus(FXbool focus); 00144 00145 /// Return true if item has focus 00146 FXbool hasFocus() const { return (state&FOCUS)!=0; } 00147 00148 /// Select item 00149 virtual void setSelected(FXbool selected); 00150 00151 /// Return true if this item is selected 00152 FXbool isSelected() const { return (state&SELECTED)!=0; } 00153 00154 /// Make item show as open 00155 virtual void setOpened(FXbool opened); 00156 00157 /// Return true if this item is open 00158 FXbool isOpened() const { return (state&OPENED)!=0; } 00159 00160 /// Expand or collapse item 00161 virtual void setExpanded(FXbool expanded); 00162 00163 /// Return true if this item is expanded into sub items 00164 FXbool isExpanded() const { return (state&EXPANDED)!=0; } 00165 00166 /// Enable or disable item 00167 virtual void setEnabled(FXbool enabled); 00168 00169 /// Return true if this item is enabled 00170 FXbool isEnabled() const { return (state&DISABLED)==0; } 00171 00172 /// Make item draggable 00173 virtual void setDraggable(FXbool draggable); 00174 00175 /// Return true if this item is draggable 00176 FXbool isDraggable() const { return (state&DRAGGABLE)!=0; } 00177 00178 /// Return true if subitems, real or imagined 00179 FXbool hasItems() const { return (state&HASITEMS)!=0; } 00180 00181 /// Change has items flag 00182 void setHasItems(FXbool flag); 00183 00184 /// Return true if descendent of parent item 00185 FXbool isChildOf(const FXTreeItem* item) const; 00186 00187 /// Return true if ancestor of child item 00188 FXbool isParentOf(const FXTreeItem* item) const; 00189 00190 /// Return width of item as drawn in list 00191 virtual FXint getWidth(const FXTreeList* list) const; 00192 00193 /// Return height of item as drawn in list 00194 virtual FXint getHeight(const FXTreeList* list) const; 00195 00196 /// Create server-side resources 00197 virtual void create(); 00198 00199 /// Detach server-side resources 00200 virtual void detach(); 00201 00202 /// Destroy server-side resources 00203 virtual void destroy(); 00204 00205 /// Save to stream 00206 virtual void save(FXStream& store) const; 00207 00208 /// Load from stream 00209 virtual void load(FXStream& store); 00210 00211 /// Destroy item and free icons if owned 00212 virtual ~FXTreeItem(); 00213 }; 00214 00215 00216 00217 /// Tree item collate function 00218 typedef FXint (*FXTreeListSortFunc)(const FXTreeItem*,const FXTreeItem*); 00219 00220 00221 00222 /** 00223 * A Tree List Widget organizes items in a hierarchical, tree-like fashion. 00224 * Subtrees can be collapsed or expanded by double-clicking on an item 00225 * or by clicking on the optional plus button in front of the item. 00226 * Each item may have a text and optional open-icon as well as a closed-icon. 00227 * The items may be connected by optional lines to show the hierarchical 00228 * relationship. 00229 * When an item's selected state changes, the treelist emits a SEL_SELECTED 00230 * or SEL_DESELECTED message. If an item is opened or closed, a message 00231 * of type SEL_OPENED or SEL_CLOSED is sent. When the subtree under an 00232 * item is expanded, a SEL_EXPANDED or SEL_COLLAPSED message is issued. 00233 * A change of the current item is signified by the SEL_CHANGED message. 00234 * In addition, the tree list sends SEL_COMMAND messages when the user 00235 * clicks on an item, and SEL_CLICKED, SEL_DOUBLECLICKED, and SEL_TRIPLECLICKED 00236 * when the user clicks once, twice, or thrice, respectively. 00237 * When items are added or removed, the tree list sends messages of the 00238 * type SEL_INSERTED or SEL_DELETED. 00239 * In each of these cases, a pointer to the item, if any, is passed in the 00240 * 3rd argument of the message. 00241 */ 00242 class FXAPI FXTreeList : public FXScrollArea { 00243 FXDECLARE(FXTreeList) 00244 protected: 00245 FXTreeItem *firstitem; // First root item 00246 FXTreeItem *lastitem; // Last root item 00247 FXTreeItem *anchoritem; // Selection anchor item 00248 FXTreeItem *currentitem; // Current item 00249 FXTreeItem *extentitem; // Selection extent 00250 FXTreeItem *cursoritem; // Item under cursor 00251 FXTreeItem *viewableitem; // Visible item 00252 FXFont *font; // Font 00253 FXTreeListSortFunc sortfunc; // Item sort function 00254 FXColor textColor; // Text color 00255 FXColor selbackColor; // Selected background color 00256 FXColor seltextColor; // Selected text color 00257 FXColor lineColor; // Line color 00258 FXint treeWidth; // Tree width 00259 FXint treeHeight; // Tree height 00260 FXint visible; // Number of visible items 00261 FXint indent; // Parent to child indentation 00262 FXint grabx; // Grab point x 00263 FXint graby; // Grab point y 00264 FXString lookup; // Lookup string 00265 FXString tip; 00266 FXString help; // Help string 00267 FXbool state; // State of item 00268 protected: 00269 FXTreeList(); 00270 virtual FXTreeItem* createItem(const FXString& text,FXIcon* oi,FXIcon* ci,void* ptr); 00271 void sort(FXTreeItem*& f1,FXTreeItem*& t1,FXTreeItem*& f2,FXTreeItem*& t2,int n); 00272 void recompute(); 00273 private: 00274 FXTreeList(const FXTreeList&); 00275 FXTreeList& operator=(const FXTreeList&); 00276 public: 00277 long onPaint(FXObject*,FXSelector,void*); 00278 long onEnter(FXObject*,FXSelector,void*); 00279 long onLeave(FXObject*,FXSelector,void*); 00280 long onUngrabbed(FXObject*,FXSelector,void*); 00281 long onMotion(FXObject*,FXSelector,void*); 00282 long onKeyPress(FXObject*,FXSelector,void*); 00283 long onKeyRelease(FXObject*,FXSelector,void*); 00284 long onLeftBtnPress(FXObject*,FXSelector,void*); 00285 long onLeftBtnRelease(FXObject*,FXSelector,void*); 00286 long onRightBtnPress(FXObject*,FXSelector,void*); 00287 long onRightBtnRelease(FXObject*,FXSelector,void*); 00288 long onQueryTip(FXObject*,FXSelector,void*); 00289 long onQueryHelp(FXObject*,FXSelector,void*); 00290 long onTipTimer(FXObject*,FXSelector,void*); 00291 long onFocusIn(FXObject*,FXSelector,void*); 00292 long onFocusOut(FXObject*,FXSelector,void*); 00293 long onAutoScroll(FXObject*,FXSelector,void*); 00294 long onClicked(FXObject*,FXSelector,void*); 00295 long onDoubleClicked(FXObject*,FXSelector,void*); 00296 long onTripleClicked(FXObject*,FXSelector,void*); 00297 long onCommand(FXObject*,FXSelector,void*); 00298 long onLookupTimer(FXObject*,FXSelector,void*); 00299 public: 00300 static FXint ascending(const FXTreeItem*,const FXTreeItem*); 00301 static FXint descending(const FXTreeItem*,const FXTreeItem*); 00302 static FXint ascendingCase(const FXTreeItem*,const FXTreeItem*); 00303 static FXint descendingCase(const FXTreeItem*,const FXTreeItem*); 00304 public: 00305 enum { 00306 ID_LOOKUPTIMER=FXScrollArea::ID_LAST, 00307 ID_LAST 00308 }; 00309 public: 00310 00311 /// Construct a new, initially empty tree list 00312 FXTreeList(FXComposite *p,FXObject* tgt=NULL,FXSelector sel=0,FXuint opts=TREELIST_NORMAL,FXint x=0,FXint y=0,FXint w=0,FXint h=0); 00313 00314 /// Create server-side resources 00315 virtual void create(); 00316 00317 /// Detach server-side resources 00318 virtual void detach(); 00319 00320 /// Perform layout 00321 virtual void layout(); 00322 00323 /// Return default width 00324 virtual FXint getDefaultWidth(); 00325 00326 /// Return default height 00327 virtual FXint getDefaultHeight(); 00328 00329 /// Compute and return content width 00330 virtual FXint getContentWidth(); 00331 00332 /// Return content height 00333 virtual FXint getContentHeight(); 00334 00335 /// Recalculate layout 00336 virtual void recalc(); 00337 00338 /// Tree list can receive focus 00339 virtual FXbool canFocus() const; 00340 00341 /// Move the focus to this window 00342 virtual void setFocus(); 00343 00344 /// Remove the focus from this window 00345 virtual void killFocus(); 00346 00347 /// Return number of items 00348 FXint getNumItems() const; 00349 00350 /// Return number of visible items 00351 FXint getNumVisible() const { return visible; } 00352 00353 /// Change number of visible items 00354 void setNumVisible(FXint nvis); 00355 00356 /// Return first root item 00357 FXTreeItem* getFirstItem() const { return firstitem; } 00358 00359 /// Return last root item 00360 FXTreeItem* getLastItem() const { return lastitem; } 00361 00362 /// Fill tree list by appending items from array of strings 00363 FXint fillItems(FXTreeItem* father,const FXchar** strings,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ptr=NULL,FXbool notify=false); 00364 00365 /// Fill tree list by appending items from newline separated strings 00366 FXint fillItems(FXTreeItem* father,const FXString& strings,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ptr=NULL,FXbool notify=false); 00367 00368 /// Insert [possibly subclassed] item under father before other item 00369 FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,FXTreeItem* item,FXbool notify=false); 00370 00371 /// Insert item with given text and optional icons, and user-data pointer under father before other item 00372 FXTreeItem* insertItem(FXTreeItem* other,FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ptr=NULL,FXbool notify=false); 00373 00374 /// Append [possibly subclassed] item as last child of father 00375 FXTreeItem* appendItem(FXTreeItem* father,FXTreeItem* item,FXbool notify=false); 00376 00377 /// Append item with given text and optional icons, and user-data pointer as last child of father 00378 FXTreeItem* appendItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ptr=NULL,FXbool notify=false); 00379 00380 /// Prepend [possibly subclassed] item as first child of father 00381 FXTreeItem* prependItem(FXTreeItem* father,FXTreeItem* item,FXbool notify=false); 00382 00383 /// Prepend item with given text and optional icons, and user-data pointer as first child of father 00384 FXTreeItem* prependItem(FXTreeItem* father,const FXString& text,FXIcon* oi=NULL,FXIcon* ci=NULL,void* ptr=NULL,FXbool notify=false); 00385 00386 /// Move item under father before other item 00387 FXTreeItem *moveItem(FXTreeItem* other,FXTreeItem* father,FXTreeItem* item); 00388 00389 /// Extract item 00390 FXTreeItem* extractItem(FXTreeItem* item,FXbool notify=false); 00391 00392 /// Remove item 00393 void removeItem(FXTreeItem* item,FXbool notify=false); 00394 00395 /// Remove items in range [fm, to] inclusively 00396 void removeItems(FXTreeItem* fm,FXTreeItem* to,FXbool notify=false); 00397 00398 /// Remove all items from list 00399 void clearItems(FXbool notify=false); 00400 00401 /// Return item width 00402 FXint getItemWidth(const FXTreeItem* item) const { return item->getWidth(this); } 00403 00404 /// Return item height 00405 FXint getItemHeight(const FXTreeItem* item) const { return item->getHeight(this); } 00406 00407 /// Get item at x,y, if any 00408 virtual FXTreeItem* getItemAt(FXint x,FXint y) const; 00409 00410 /** 00411 * Search items by name, beginning from item start. If the start item 00412 * is NULL the search will start at the first, top-most item in the list. 00413 * Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control the search 00414 * direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP 00415 * to control whether the search wraps at the start or end of the list. 00416 * The option SEARCH_IGNORECASE causes a case-insensitive match. Finally, 00417 * passing SEARCH_PREFIX causes searching for a prefix of the item name. 00418 * Return NULL if no matching item is found. 00419 */ 00420 FXTreeItem* findItem(const FXString& name,FXTreeItem* start=NULL,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const; 00421 00422 /** 00423 * Search items by associated user data, beginning from item start. If the 00424 * start item is NULL the search will start at the first, top-most item 00425 * in the list. Flags may be SEARCH_FORWARD or SEARCH_BACKWARD to control 00426 * the search direction; this can be combined with SEARCH_NOWRAP or SEARCH_WRAP 00427 * to control whether the search wraps at the start or end of the list. 00428 */ 00429 FXTreeItem* findItemByData(const void *ptr,FXTreeItem* start=NULL,FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const; 00430 00431 /// Scroll to make item visible 00432 virtual void makeItemVisible(FXTreeItem* item); 00433 00434 /// Change item's text 00435 void setItemText(FXTreeItem* item,const FXString& text); 00436 00437 /// Return item's text 00438 FXString getItemText(const FXTreeItem* item) const; 00439 00440 /// Change item's open icon 00441 void setItemOpenIcon(FXTreeItem* item,FXIcon* icon,FXbool owned=false); 00442 00443 /// Return item's open icon, deleting the old icon if it was owned 00444 FXIcon* getItemOpenIcon(const FXTreeItem* item) const; 00445 00446 /// Chance item's closed icon, deleting the old icon if it was owned 00447 void setItemClosedIcon(FXTreeItem* item,FXIcon* icon,FXbool owned=false); 00448 00449 /// Return item's closed icon 00450 FXIcon* getItemClosedIcon(const FXTreeItem* item) const; 00451 00452 /// Change item user-data pointer 00453 void setItemData(FXTreeItem* item,void* ptr) const; 00454 00455 /// Return item user-data pointer 00456 void* getItemData(const FXTreeItem* item) const; 00457 00458 /// Return true if item is selected 00459 FXbool isItemSelected(const FXTreeItem* item) const; 00460 00461 /// Return true if item is current 00462 FXbool isItemCurrent(const FXTreeItem* item) const; 00463 00464 /// Return true if item is visible 00465 FXbool isItemVisible(const FXTreeItem* item) const; 00466 00467 /// Return true if item opened 00468 FXbool isItemOpened(const FXTreeItem* item) const; 00469 00470 /// Return true if item expanded 00471 FXbool isItemExpanded(const FXTreeItem* item) const; 00472 00473 /// Return true if item is a leaf-item, i.e. has no children 00474 FXbool isItemLeaf(const FXTreeItem* item) const; 00475 00476 /// Return true if item is enabled 00477 FXbool isItemEnabled(const FXTreeItem* item) const; 00478 00479 /// Return item hit code: 0 outside, 1 icon, 2 text, 3 box 00480 FXint hitItem(const FXTreeItem* item,FXint x,FXint y) const; 00481 00482 /// Repaint item 00483 void updateItem(FXTreeItem* item) const; 00484 00485 /// Enable item 00486 virtual FXbool enableItem(FXTreeItem* item); 00487 00488 /// Disable item 00489 virtual FXbool disableItem(FXTreeItem* item); 00490 00491 /// Select item 00492 virtual FXbool selectItem(FXTreeItem* item,FXbool notify=false); 00493 00494 /// Deselect item 00495 virtual FXbool deselectItem(FXTreeItem* item,FXbool notify=false); 00496 00497 /// Toggle item selection 00498 virtual FXbool toggleItem(FXTreeItem* item,FXbool notify=false); 00499 00500 /// Extend selection from anchor item to item 00501 virtual FXbool extendSelection(FXTreeItem* item,FXbool notify=false); 00502 00503 /// Deselect all items 00504 virtual FXbool killSelection(FXbool notify=false); 00505 00506 /// Open item 00507 virtual FXbool openItem(FXTreeItem* item,FXbool notify=false); 00508 00509 /// Close item 00510 virtual FXbool closeItem(FXTreeItem* item,FXbool notify=false); 00511 00512 /// Collapse tree 00513 virtual FXbool collapseTree(FXTreeItem* tree,FXbool notify=false); 00514 00515 /// Expand tree 00516 virtual FXbool expandTree(FXTreeItem* tree,FXbool notify=false); 00517 00518 /// Change current item 00519 virtual void setCurrentItem(FXTreeItem* item,FXbool notify=false); 00520 00521 /// Return current item, if any 00522 FXTreeItem* getCurrentItem() const { return currentitem; } 00523 00524 /// Change anchor item 00525 void setAnchorItem(FXTreeItem* item); 00526 00527 /// Return anchor item, if any 00528 FXTreeItem* getAnchorItem() const { return anchoritem; } 00529 00530 /// Return item under cursor, if any 00531 FXTreeItem* getCursorItem() const { return cursoritem; } 00532 00533 /// Sort all items recursively 00534 void sortItems(); 00535 00536 /// Sort root items 00537 void sortRootItems(); 00538 00539 /// Sort children of item 00540 void sortChildItems(FXTreeItem* item); 00541 00542 /// Return sort function 00543 FXTreeListSortFunc getSortFunc() const { return sortfunc; } 00544 00545 /// Change sort function 00546 void setSortFunc(FXTreeListSortFunc func){ sortfunc=func; } 00547 00548 /// Change text font 00549 void setFont(FXFont* fnt); 00550 00551 /// Return text font 00552 FXFont* getFont() const { return font; } 00553 00554 /// Change parent-child indent amount 00555 void setIndent(FXint in); 00556 00557 /// Return parent-child indent amount 00558 FXint getIndent() const { return indent; } 00559 00560 /// Return normal text color 00561 FXColor getTextColor() const { return textColor; } 00562 00563 /// Change normal text color 00564 void setTextColor(FXColor clr); 00565 00566 /// Return selected text background 00567 FXColor getSelBackColor() const { return selbackColor; } 00568 00569 /// Change selected text background 00570 void setSelBackColor(FXColor clr); 00571 00572 /// Return selected text color 00573 FXColor getSelTextColor() const { return seltextColor; } 00574 00575 /// Change selected text color 00576 void setSelTextColor(FXColor clr); 00577 00578 /// Return line color 00579 FXColor getLineColor() const { return lineColor; } 00580 00581 /// Change line color 00582 void setLineColor(FXColor clr); 00583 00584 /// Return list style 00585 FXuint getListStyle() const; 00586 00587 /// Change list style 00588 void setListStyle(FXuint style); 00589 00590 /// Set the status line help text for this list 00591 void setHelpText(const FXString& text); 00592 00593 /// Get the status line help text for this list 00594 const FXString& getHelpText() const { return help; } 00595 00596 /// Save object to a stream 00597 virtual void save(FXStream& store) const; 00598 00599 /// Load object from a stream 00600 virtual void load(FXStream& store); 00601 00602 /// Destructor 00603 virtual ~FXTreeList(); 00604 }; 00605 00606 } 00607 00608 #endif
![]() |