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

Public Types | |
| enum | TreeEvents { teItemExpanded = ITEM_EVENT_CHANGED + 200 } |
Public Member Functions | |
| DefaultTreeItem (const String &caption, Control *owningControl, TreeModel *model) | |
| DefaultTreeItem (const String &caption) | |
| DefaultTreeItem () | |
| virtual | ~DefaultTreeItem () |
| virtual bool | containsPoint (Point *pt) |
| This is called to determine if a given point is within the bounds of the item. | |
| virtual uint32 | getIndex () |
| Returns the index of the item within it's model. | |
| virtual void * | getData () |
| Returns some application defined data. | |
| virtual void | setData (void *data) |
| Sets the application defined data. | |
| virtual Color * | getTextColor () |
| virtual void | setTextColor (Color *color) |
| virtual void | setTextBold (const bool &bold) |
| virtual bool | getTextBold () |
| virtual bool | isLeaf () |
| virtual bool | isRoot () |
| virtual TreeItem * | getParent () |
| virtual void | setParent (TreeItem *parent) |
| virtual TreeItem * | getNextChildNodeItem () |
| gets the next sibling item in the tree node, i.e. | |
| virtual TreeItem * | getPrevChildNodeItem () |
| gets the previous sibling item in the tree node, i.e. | |
| virtual String | getCaption () |
| virtual void | setCaption (const String &caption) |
| virtual uint32 | getChildCount () |
| virtual Enumerator< TreeItem * > * | getChildren () |
| void | init () |
| This is going to be removed from the bext release. | |
| virtual void | addChild (TreeItem *child) |
| virtual void | insertChild (const uint32 &index, TreeItem *child) |
| virtual void | deleteChild (TreeItem *child) |
| virtual void | deleteChildAtIndex (const uint32 &index) |
| virtual void | clearChildren () |
| virtual void | setIndex (const uint32 &index) |
| virtual void | paint (GraphicsContext *context, Rect *paintRect) |
| virtual bool | isSelected () |
| virtual void | setSelected (const bool &selected) |
| virtual void | setModel (Model *model) |
| Sets the model that this item is a part of. | |
| virtual void | setControl (Control *control) |
| Sets the owning control for this item. | |
| virtual bool | isExpanded () |
| virtual void | expand (const bool &isExpanded) |
| virtual void | expandAllChildren (const bool &isExpanded) |
| virtual uint32 | getLevel () |
| virtual Rect * | getBounds () |
| returns the Bounds for the Item or NULL if not applicable. | |
| virtual int32 | getImageIndex () |
| virtual void | setImageIndex (const int32 &imageIndex) |
| virtual int32 | getSelectedImageIndex () |
| virtual void | setSelectedImageIndex (const int32 &selectedImageIndex) |
| virtual int32 | getExpandedImageIndex () |
| virtual void | setExpandedImageIndex (const int32 &expandedImageIndex) |
| virtual bool | canPaint () |
| indicates whether the item can paint itself. | |
| virtual void | setBounds (Rect *bounds) |
| virtual int32 | getStateImageIndex () |
| not supported | |
| virtual void | setStateImageIndex (const int32 &index) |
| virtual void | addSubItem (const String &caption, void *data) |
| virtual void | addSubItem (SubItem *subItem) |
| virtual void | removeSubItem (const uint32 &index) |
| virtual Enumerator< SubItem * > * | getSubItems () |
| virtual SubItem * | getSubItem (const uint32 &index) |
| virtual uint32 | getSubItemCount () |
| virtual void | subItemChanged (SubItem *item) |
Protected Member Functions | |
| virtual void | changed (const uint32 &eventType=ITEM_EVENT_CHANGED) |
Protected Attributes | |
| bool | textBold_ |
| Color | TextColor_ |
| String | caption_ |
| TreeItem * | parent_ |
| void * | userData_ |
| uint32 | index_ |
| EnumeratorContainer< std::vector< TreeItem * >, TreeItem * > | enumContainer_ |
| std::vector< TreeItem * > | childNodeItems_ |
| EnumeratorContainer< std::vector< SubItem * >, SubItem * > | enumSubItemsContainer_ |
| std::vector< SubItem * > | subItems_ |
| bool | selected_ |
| bool | isExpanded_ |
| Rect | bounds_ |
| int32 | imageIndex_ |
| int32 | selectedImageIndex_ |
| int32 | expandedImageIndex_ |
| int32 | stateImageIndex_ |
Member Enumeration Documentation
|
|
|
Constructor & Destructor Documentation
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
Member Function Documentation
|
|
Implements VCF::TreeItem. |
|
|
|
|
||||||||||||
|
Implements VCF::TreeItem. |
|
|
indicates whether the item can paint itself. In general this is often false, but when true, the control that contains the item should call the item's paint() method whenever the item needs repainting. Implements VCF::Item. |
|
|
|
|
|
Implements VCF::TreeItem. |
|
|
This is called to determine if a given point is within the bounds of the item. The bounds may be slightly different than what is returned by getBounds(). For example, an item may not support getBounds(), but may have a non-rectangular region and may implement containsPoint() accordingly. Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
returns the Bounds for the Item or NULL if not applicable.
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Returns some application defined data. This can be anything you want, hence the void* storage. Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::Item. |
|
|
Returns the index of the item within it's model.
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
gets the next sibling item in the tree node, i.e. an item with the same parent and at the same 'level' of this one.
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
gets the previous sibling item in the tree node, i.e. an item with the same parent and at the same 'level' of this one.
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
not supported
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
This is going to be removed from the bext release.
Reimplemented from VCF::Object. |
|
||||||||||||
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::Item. |
|
||||||||||||
|
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Sets the owning control for this item. It's made virtual so that subclasses can override the behaviour if they need to. Reimplemented from VCF::Item. |
|
|
Sets the application defined data.
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::Item. |
|
|
Implements VCF::Item. |
|
|
Sets the model that this item is a part of. Subclasses may need or want to customize this. Reimplemented from VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::Item. |
|
|
Implements VCF::TreeItem. |
|
|
Implements VCF::TreeItem. |
|
|
|
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/DefaultTreeItem.h
