|
Public Member Functions |
| | TreeListControl () |
| virtual | ~TreeListControl () |
| ColumnWidthChanged double | getColumnWidth (const uint32 &index) |
| void | setColumnWidth (const uint32 &index, const double &width) |
| ColumnItem * | addColumn (const String &caption) |
| ColumnItem * | addColumn (const String &caption, const double &width) |
| virtual ColumnItem * | getColumnItem (const uint32 &index) |
| void | setColumnItem (const uint32 &index, ColumnItem *item) |
| void | setHeaderVisible (const bool &val) |
| bool | isHeaderVisible () |
| void | showHierarchyLines (const bool &show) |
| bool | hierarchyLinesVisible () |
| void | showRowLines (const bool &show) |
| bool | rowLinesVisible () |
| void | showColumnLines (const bool &show) |
| bool | columnLinesVisible () |
| void | showFullRowSelection (const bool &show) |
| bool | fullRowSelectionVisible () |
| ImageList * | getHeaderImageList () |
| void | setHeaderImageList (ImageList *imageList) |
| virtual void | insertItemSubItem (TreeItem *item, const uint32 &index, TreeSubItem *subItem) |
| virtual void | removeItemSubItem (TreeItem *item, TreeSubItem *subItem) |
| virtual bool | getItemSubItems (TreeItem *item, std::vector< TreeSubItem * > &subItems) |
| virtual TreeSubItem * | getItemSubItem (TreeItem *item, const uint32 &index) |
| virtual uint32 | getItemSubItemIndex (TreeItem *item, TreeSubItem *subItem) |
| virtual uint32 | getItemSubItemCount (TreeItem *item) |
| virtual bool | subItemExists (const TreeModel::Key &key, const uint32 &subItemIndex) |
| virtual double | getItemWidth (ColumnItem *item) |
| virtual void | setItemWidth (ColumnItem *item, const double &val) |
| virtual TextAlignmentType | getItemTextAlignment (ColumnItem *item) |
| virtual void | setItemTextAlignment (ColumnItem *item, const TextAlignmentType &val) |
| virtual void | mouseDown (MouseEvent *event) |
| | Called when one (or more) of the mouse buttons are held down.
|
| virtual void | keyDown (KeyboardEvent *e) |
| | called when the user presses the key down
|
| virtual void | handleEvent (Event *event) |
| | This gets called by the ControlPeer for any windowing system mouse events, as well as for any windowing system keyboard events and for any windowing system events like size changes, position changes, etc.
|
| int | hitTestForEditColumn (const Point &pt) |
| Rect | getBoundsForEdit (TreeItem *item, int column) |
Public Attributes |
| VCF::Delegate | MouseDelegate |
| ColumnItemClicked VCF::Delegate | ItemDelegate |
Protected Types |
typedef std::multimap< TreeItem *,
TreeSubItem * > | SubItemMap |
typedef std::pair< SubItemMap::iterator,
SubItemMap::iterator > | SubItemIteratorPair |
| typedef SubItemMap::value_type | SubItemPair |
Protected Member Functions |
| void | onColumnItemAdded (ListModelEvent *event) |
| void | onColumnItemDeleted (ListModelEvent *event) |
| void | onEditingControlKeyPressed (KeyboardEvent *event) |
| void | onEditorFocusLost (Event *e) |
| void | postFinishedEditing (Event *e) |
| void | cancelEditing () |
| void | finishEditing (bool applyEdit=true) |
| void | editItem (TreeItem *item, Point *point) |
| virtual void | finishEditingItem (TreeItem *item, Control *editControl) |
| | this is a no-op - sub classes need to derive this
|
| virtual Control * | createEditor (TreeItem *item, int column) |
| | this is a no-op - sub classes need to derive this
|
| virtual bool | finishEditingFromFocusLoss (Control *lostFocusCtrl, Control *currentFocusedCtrl) |
| | virtual function to control whether or not to allow an edit to finish due to focus loss.
|
Protected Attributes |
| bool | allowLabelEditing_ |
| int | currentEditColumn_ |
| Control * | currentEditingControl_ |
| SubItemMap | subItems_ |
| Array< ColumnItem * > | columnItems_ |
| ImageList * | headerImageList_ |