VCF::TreeControl Class Reference
#include <vcf/ApplicationKit/TreeControl.h>
Inheritance diagram for VCF::TreeControl:

Public Types | |
| enum | TreeControlEvents |
Public Member Functions | |
| TreeControl () | |
| TreeControl (TreeModel *model) | |
| virtual | ~TreeControl () |
| 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. | |
| double | getItemIndent () |
| void | setItemIndent (const double &indent) |
| virtual void | modelChanged (Model *oldModel, Model *newModel) |
| TreeModel * | getTreeModel () |
| void | setTreeModel (TreeModel *tm) |
| ImageList * | getImageList () |
| ImageList * | getStateImageList () |
| void | setImageList (ImageList *imageList) |
| void | setStateImageList (ImageList *imageList) |
| virtual void | paint (GraphicsContext *context) |
| Paints the control. | |
| virtual TreeItem * | getItemParent (TreeItem *item) |
| virtual void | setItemParent (TreeItem *item, TreeItem *parent) |
| virtual Rect | getItemRect (const TreeModel::Key &item) |
| virtual void | addChildItem (TreeItem *item, TreeItem *child) |
| virtual void | removeChildItem (TreeItem *item, TreeItem *child) |
| virtual TreeItem * | getItemFromKey (const TreeModel::Key &key) |
| virtual void | setItemKey (TreeItem *item, const TreeModel::Key &key) |
| virtual bool | getItemChildren (TreeItem *item, std::vector< TreeItem * > &children) |
| 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 void | itemExpanded (TreeItem *item) |
| virtual void | itemSelected (TreeItem *item) |
| void | insertItem (TreeItem *parent, TreeItem *item) |
| TreeItem * | insertItem (TreeItem *parent, const String &caption, const uint32 imageIndex=-1) |
| void | removeItem (TreeItem *item) |
| TreeItem * | getSelectedItem () |
| Rect | getItemImageRect (const TreeModel::Key &item) |
| TreeModel::Key | hitTest (const Point &pt) |
| bool | getAllowLabelEditing () |
| void | setAllowLabelEditing (const bool &allowLabelEditing) |
| virtual uint64 | sizeOf () const |
| Returns the size of this instance. | |
| bool | itemExists (const TreeModel::Key &key) |
| virtual bool | subItemExists (const TreeModel::Key &key, const uint32 &subItemIndex) |
| ColumnModel * | getColumnModel () |
| virtual ColumnItem * | getColumnItem (const uint32 &index) |
| void | setDisplayOptions (const uint32 &displayOptions) |
| uint32 | getDisplayOptions () |
| virtual void | paintItem (GraphicsContext *ctx, const Rect &itemRect, const TreeModel::Key &key, const DrawUIState &state) |
| virtual void | paintSubItem (GraphicsContext *ctx, const Rect &itemRect, const TreeModel::Key &key, const uint32 &subItemIndex, const DrawUIState &state) |
Public Attributes | |
| VCF::Delegate | ItemDelegate |
| ItemSelected | |
| ItemStateChangeRequested | |
| ItemExpanded | |
| ItemStateChanged | |
Protected Member Functions | |
| void | onTreeItemPaint (ItemEvent *event) |
| void | onModelChanged (ModelEvent *event) |
Protected Attributes | |
| TreePeer * | treePeer_ |
| ImageList * | imageList_ |
| ImageList * | stateImageList_ |
| TreeItem * | currentSelectedItem_ |
| ColumnModel * | columnModel_ |
| bool | controlChangeToModel_ |
| std::map< TreeModel::Key, TreeItem * > | itemMap_ |
| bool | inCallbackChange_ |
| uint32 | displayOptions_ |
Member Enumeration Documentation
|
|
|
Constructor & Destructor Documentation
|
|
|
|
|
|
|
|
|
Member Function Documentation
|
||||||||||||
|
Implements VCF::TreeController. |
|
|
|
|
|
Reimplemented in VCF::TreeListControl. |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Implements VCF::TreeController. |
|
|
Implements VCF::TreeController. |
|
|
|
|
|
|
|
|
Implements VCF::TreeController. |
|
|
Implements VCF::TreeController. |
|
||||||||||||
|
Implements VCF::TreeController. Reimplemented in VCF::TreeListControl. |
|
|
Implements VCF::TreeController. Reimplemented in VCF::TreeListControl. |
|
||||||||||||
|
Implements VCF::TreeController. Reimplemented in VCF::TreeListControl. |
|
||||||||||||
|
Implements VCF::TreeController. Reimplemented in VCF::TreeListControl. |
|
|
|
|
|
|
|
|
|
|
|
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. Once inside the event the Control determines the type, and behaves accordingly, as well as notifying any appropriate listeners. Reimplemented from VCF::Control. Reimplemented in VCF::TreeListControl. |
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Implements VCF::TreeController. Reimplemented in VCF::TreeListControl. |
|
|
|
|
|
Implements VCF::TreeController. |
|
|
Implements VCF::TreeController. |
|
||||||||||||
|
Reimplemented from VCF::Control. |
|
|
|
|
|
|
|
|
Paints the control. Called by the underlying windowing system whenever the control needs to be painted. Note that in some cases the GraphicsContext passed in to this method may not be the same pointer as the GraphicsContext that the control holds itself. During the paint() method you should only use the context value for all your drawing and not the one returned in getContext(). The value returned by getContext() should be used for drawing that takes place outside of the paint() method. If the control allows paint notification, then the framework will fire an event to the BeforeControlPainted delegate prior to calling the control's paint() method. After the paint() method has returned, if the control allows paint notification, the framework will fire an event to the AfterControlPainted delegate. This allows outside observers to take part in the paint cycle, but beware that this does come at a bit of a cost, so use this feature sparingly. Note: This should NEVER be called by programmers using the VCF, it will be called for you during the course of your applications native event loop, and is only here for providing custom drawing routines for controls. In other words: you implement it, you never call it yourself.
Implements VCF::Control. |
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||
|
Implements VCF::TreeController. |
|
|
|
|
||||||||||||
|
Implements VCF::TreeController. Reimplemented in VCF::TreeListControl. |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Implements VCF::TreeController. |
|
||||||||||||
|
Implements VCF::TreeController. |
|
|
|
|
|
|
|
|
Returns the size of this instance. This may be signifigantly bigger than, say, sizeof(Object). For example, if your class derives from Object, and has list of other objects, (such as a Component), and various other bits, then these may not all show up in the value returned by sizeof(). Take a vector, a vector of ints or a vector of Object uses up 16 bytes, as reported by sizeof(). But the actual memory used will be quite different, partially dependent on how many items are in the vector. Hence the existence of this function, which allows people to implement something that does a better job of reporting how much memory the object in quest is actually using. The default implementation simply returns sizeof(Object). Reimplemented from VCF::Object. |
|
||||||||||||
|
Reimplemented in VCF::TreeListControl. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in VCF::TreeListControl. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/TreeControl.h
