#include <NitfPropertiesQWidgetWrapper.h>

Public Member Functions | |
| PropertiesQWidgetWrapper () | |
| virtual | ~PropertiesQWidgetWrapper () |
| bool | initialize (SessionItem *pItem) |
| bool | applyChanges () |
| virtual std::string | getTypeName () const |
| virtual bool | canDisplayMetadata (const DynamicObject &metadata) |
| QWidget * | getWidget () |
| const std::string & | getPropertiesName () const |
This templated class is used by writing a QWidget subclass and then doing the following to register the plug-in:
//assume SampleTreProperties is a subclass of QWidget and //the plug-in belongs to a module that was registered //using REGISTER_MODULE(SampleTreModule); REGISTER_PLUGIN(SampleTreModule, SampleTreProperties, Nitf::PropertiesQWidgetWrapper<SampleTreProperties>());
The templated argument must meet the following requirements:
Definition at line 55 of file NitfPropertiesQWidgetWrapper.h.
| Nitf::PropertiesQWidgetWrapper< PropertiesWidget >::PropertiesQWidgetWrapper | ( | ) |
Instantiates this properties plug-in by querying the templated class using its provided static methods.
Definition at line 62 of file NitfPropertiesQWidgetWrapper.h.
| virtual Nitf::PropertiesQWidgetWrapper< PropertiesWidget >::~PropertiesQWidgetWrapper | ( | ) | [virtual] |
| bool Nitf::PropertiesQWidgetWrapper< PropertiesWidget >::initialize | ( | SessionItem * | pItem | ) | [virtual] |
Initializes the widget with a SessionItem 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. Implements Properties.
Definition at line 94 of file NitfPropertiesQWidgetWrapper.h.
| bool Nitf::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 or if the widget is for display purposes only.
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 121 of file NitfPropertiesQWidgetWrapper.h.
| virtual std::string Nitf::PropertiesQWidgetWrapper< PropertiesWidget >::getTypeName | ( | ) | const [virtual] |
The name of the TRE or DES this plug-in displays.
Implements Nitf::Properties.
Definition at line 135 of file NitfPropertiesQWidgetWrapper.h.
| virtual bool Nitf::PropertiesQWidgetWrapper< PropertiesWidget >::canDisplayMetadata | ( | const DynamicObject & | metadata | ) | [virtual] |
Determine if this plug-in can display and/or edit the specified metadata.
| metadata | The element metadata sub-tree for the named TRE or DES. This will be rooted at the metadata TRE or DES node with the same name as SubType(). |
True if the metadata can be displayed and/or edited, otherwise false. Implements Nitf::Properties.
Definition at line 143 of file NitfPropertiesQWidgetWrapper.h.
| QWidget* Nitf::PropertiesQWidgetWrapper< PropertiesWidget >::getWidget | ( | ) | [virtual] |
Returns the widget that will be displayed to the user.
The widget will be displayed when the user selects the applicable tab in the properties dialog. It is only instantiated once per instance of this plug-in. The widget will be owned by the plug-in and should be destroyed when the plug-in is destroyed. Please note, that the properties dialog in which the widget will be displayed in is resizable, so ensure that the Qt layout for the widget resizes properly.
Implements Properties.
Definition at line 156 of file NitfPropertiesQWidgetWrapper.h.
| const std::string& Nitf::PropertiesQWidgetWrapper< PropertiesWidget >::getPropertiesName | ( | ) | const [virtual] |
Returns the name of the properties.
This method is called by the properties dialog to get the name to display on the tab containing the widget returned by getWidget().
Implements Properties.
Definition at line 168 of file NitfPropertiesQWidgetWrapper.h.