#include <PropertiesQWidgetWrapper.h>

Public Member Functions | |
| PropertiesQWidgetWrapper () | |
| ~PropertiesQWidgetWrapper () | |
| bool | initialize (SessionItem *pItem) |
| bool | applyChanges () |
Protected Member Functions | |
| QWidget * | createWidget () |
This templated class is used by writing a QWidget subclass and then doing the following to register the plug-in:
//assume SampleProperties is a subclass of QWidget and //the plug-in belongs to a module that was registered //using REGISTER_MODULE(SampleModule); REGISTER_PLUGIN(SampleModule, SampleProperties, PropertiesQWidgetWrapper<SampleProperties>());
The templated argument must meet the following requirements:
Definition at line 46 of file PropertiesQWidgetWrapper.h.
| PropertiesQWidgetWrapper< PropertiesWidget >::PropertiesQWidgetWrapper | ( | ) |
Instantiates this properties plug-in by querying the templated class using its provided static methods.
Definition at line 53 of file PropertiesQWidgetWrapper.h.
| PropertiesQWidgetWrapper< PropertiesWidget >::~PropertiesQWidgetWrapper | ( | ) |
| bool PropertiesQWidgetWrapper< PropertiesWidget >::initialize | ( | SessionItem * | pItem | ) | [virtual] |
Initializes the widget by calling initialize() on the templated class.
| pItem | The session item for which to initialize the widget's values. |
true if the widget was successfully initialized from the given session item; otherwise returns false. If this method returns false, the widget is not added to the properties dialog. Reimplemented from PropertiesShell.
Definition at line 84 of file PropertiesQWidgetWrapper.h.
| bool PropertiesQWidgetWrapper< PropertiesWidget >::applyChanges | ( | ) | [virtual] |
Applies the changes in the widget.
This method is called when the user clicks the OK or Apply buttons in the properties dialog. It applies the changes in the widget by calling applyChanges() on the templated class. The applyChanges() method of the templated class should return true if all changes were successfully applied to the object. It should also return true if no updates need to be made.
NULL if the widget has not been created. If false is returned, the widget will be activated in the properties dialog if necessary and the dialog will not be closed if the OK button was clicked. Implements Properties.
Definition at line 111 of file PropertiesQWidgetWrapper.h.
| QWidget* PropertiesQWidgetWrapper< PropertiesWidget >::createWidget | ( | ) | [protected, virtual] |
Creates the properties widget.
This method creates the properties widget by directly instantiating the templated class, which must be a subclass of QWidget.
Implements PropertiesShell.
Definition at line 129 of file PropertiesQWidgetWrapper.h.