VCF::TreeControl Class Reference
#include <vcf/ApplicationKit/TreeControl.h>
Inheritance diagram for VCF::TreeControl:
List of all members.
Member Enumeration Documentation
|
|
- Enumerator:
-
| ITEM_STATECHANGE_REQUESTED |
|
|
Constructor & Destructor Documentation
| VCF::TreeControl::TreeControl |
( |
|
) |
|
|
| virtual VCF::TreeControl::~TreeControl |
( |
|
) |
[virtual] |
|
Member Function Documentation
| bool VCF::TreeControl::getAllowLabelEditing |
( |
|
) |
|
|
| ImageList* VCF::TreeControl::getImageList |
( |
|
) |
|
|
| double VCF::TreeControl::getItemIndent |
( |
|
) |
|
|
| TreeItem* VCF::TreeControl::getSelectedItem |
( |
|
) |
|
|
| ImageList* VCF::TreeControl::getStateImageList |
( |
|
) |
|
|
| TreeModel* VCF::TreeControl::getTreeModel |
( |
|
) |
|
|
| virtual void VCF::TreeControl::handleEvent |
( |
Event * |
event |
) |
[virtual] |
|
|
|
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. |
| void VCF::TreeControl::init |
( |
|
) |
|
|
| void VCF::TreeControl::onModelEmptied |
( |
ModelEvent * |
event |
) |
[protected] |
|
| void VCF::TreeControl::onTreeItemPaint |
( |
ItemEvent * |
event |
) |
[protected] |
|
| void VCF::TreeControl::onTreeNodeAdded |
( |
TreeModelEvent * |
event |
) |
[protected] |
|
| void VCF::TreeControl::onTreeNodeDeleted |
( |
TreeModelEvent * |
event |
) |
[protected] |
|
| void VCF::TreeControl::onTreeRootNodeChanged |
( |
TreeModelEvent * |
event |
) |
[protected] |
|
| virtual void VCF::TreeControl::paint |
( |
GraphicsContext * |
context |
) |
[virtual] |
|
|
|
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. - See also:
- getAllowPaintNotification
Implements VCF::Control. |
| void VCF::TreeControl::removeItem |
( |
TreeItem * |
item |
) |
|
|
| void VCF::TreeControl::setAllowLabelEditing |
( |
const bool & |
allowLabelEditing |
) |
|
|
| void VCF::TreeControl::setImageList |
( |
ImageList * |
imageList |
) |
|
|
| void VCF::TreeControl::setItemIndent |
( |
const double & |
indent |
) |
|
|
| void VCF::TreeControl::setStateImageList |
( |
ImageList * |
imageList |
) |
|
|
| void VCF::TreeControl::setTreeModel |
( |
TreeModel * |
model |
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following file: