VCF::AbstractComponentEditor Class Reference
Basic implementation of the ComponentEditor interface. More...
#include <vcf/ApplicationKit/AbstractComponentEditor.h>
Inheritance diagram for VCF::AbstractComponentEditor:

Public Member Functions | |
| AbstractComponentEditor () | |
| virtual | ~AbstractComponentEditor () |
| virtual void | initialize () |
| This is called immediately after the component has been created, after the caller has made the setComponent() call on the editor. | |
| virtual int | getAttributes (const uint32 &index) |
| This method returns a mask of potential attributes for the command at the given index. | |
| virtual int | getCommandParentIndex (const uint32 &index) |
| Returns the index value of the command's parent if one exists. | |
| virtual Command * | createCommand (const uint32 &index) |
| Retreives a new command instance associated with this index. | |
| virtual uint32 | getCommandCount () |
| Returns the number of unique commands associated with this component editor. | |
| virtual int | getDefaultCommandIndex () |
| Returns the editors default command index. | |
| virtual Component * | getComponent () |
| virtual void | setComponent (Component *component) |
| Sets the component for this editor. | |
| virtual void | copy () |
| void | setCommandCount (uint32 val) |
| void | setAttributes (const uint32 &index, const int &attribute) |
| void | setParentIndex (const uint32 &index, const int &parentIndex) |
Protected Attributes | |
| int | defaultCommandIndex_ |
| std::vector< int > | attributes_ |
| std::vector< int > | parentIndices_ |
| Component * | component_ |
Detailed Description
Basic implementation of the ComponentEditor interface.Useful when creating custom component editors.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
Implements VCF::ComponentEditor. |
|
|
Retreives a new command instance associated with this index.
Implements VCF::ComponentEditor. |
|
|
This method returns a mask of potential attributes for the command at the given index.
Implements VCF::ComponentEditor. |
|
|
Returns the number of unique commands associated with this component editor.
Implements VCF::ComponentEditor. |
|
|
Returns the index value of the command's parent if one exists. If no parent exists, then the value returned is -1. Most comamnds will not have a parent. However this is used if you have a complex set of commands that make sense to nest in a heirarchy. Implements VCF::ComponentEditor. |
|
|
Implements VCF::ComponentEditor. |
|
|
Returns the editors default command index. This is the command that will be executed when the component is double clicked on. Return a value of -1 to indicate that there is no default command index. Implements VCF::ComponentEditor. |
|
|
This is called immediately after the component has been created, after the caller has made the setComponent() call on the editor.
Implements VCF::ComponentEditor. |
|
||||||||||||
|
|
|
|
|
|
|
Sets the component for this editor.
Implements VCF::ComponentEditor. |
|
||||||||||||
|
|
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/AbstractComponentEditor.h
