VCF::PropertyEditorManager Class Reference
This is the class for managing the current list of property editors available for use in editing a property. More...
#include <vcf/ApplicationKit/PropertyEditorManager.h>
Inheritance diagram for VCF::PropertyEditorManager:

Static Public Member Functions | |
| static PropertyEditorManager * | create () |
| Called by the UIToolkit to create the singleton instance for the framework. | |
| static void | initPropertyEditorManager () |
| initializes the Property editor for use - must be called at start up | |
| static void | closePropertyEditorManager () |
| Frees any memory used by initPropertyEditorManager(). | |
| static PropertyEditor * | createEditor (const String &className) |
| create a suitable property editor for a given classname. | |
| static bool | registerPropertyEditor (Class *editorClass, const String &className) |
| Registers a property editor for a given class name. | |
| static bool | registerPropertyEditor (const String &editorClassName, const String &className) |
| Registers a property editor for a given class/type name. | |
| static void | removePropertyEditor (const String &editorClassName, const String &className) |
| Removes a PropertyEditor with a given class/type name from the list of registered propertyEditors. | |
Detailed Description
This is the class for managing the current list of property editors available for use in editing a property.Some of the default editors are provided by the framework itself, while other will be added by 3rd parties.
This is a singleton class, and it's lifetime is managed by the UIToolkit, not by any other direct means or by developers using the framework.
The class allows the registration of property editor's at run time. The usage is something like this:
//define you cool PropertyEditor derived class class MyCoolEditor : public PropertyEditor { //rest of code ommitted }; //in some initialization function: PropertyEditorManager::registerPropertyEditor( new MyCoolEditor(), "Foo" );
Member Function Documentation
|
|
Frees any memory used by initPropertyEditorManager(). Must be called before the runtime shuts down. |
|
|
Called by the UIToolkit to create the singleton instance for the framework.
|
|
|
create a suitable property editor for a given classname.
|
|
|
initializes the Property editor for use - must be called at start up
|
|
||||||||||||
|
Registers a property editor for a given class/type name. If an existing property editor already exists with the same name type name, then the function returns false.
|
|
||||||||||||
|
Registers a property editor for a given class name. If an existing property editor already exists with the same name type name, then the function returns false.
|
|
||||||||||||
|
Removes a PropertyEditor with a given class/type name from the list of registered propertyEditors.
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/PropertyEditorManager.h
