Developer Documentation
|
Options Dialog interface. More...
#include <OpenFlipper/BasePlugin/OptionsInterface.hh>
Public Member Functions | |
virtual | ~OptionsInterface () |
Destructor. | |
virtual bool | initializeOptionsWidget (QWidget *&_widget)=0 |
Initialize the Options Widget. More... | |
virtual void | applyOptions ()=0 |
Apply changes to options. More... | |
Options Dialog interface.
Detailed description
This interface can be used to by plugins to add their own widget to OpenFlippers Options Dialog.
Definition at line 58 of file OptionsInterface.hh.
|
pure virtual |
Apply changes to options.
Called, when the user hits the apply/ok button in the options window of Openflipper.
use this slot to save the values of options currently entered in your options widget.
|
pure virtual |
Initialize the Options Widget.
Initialize the options widget (create a widget and return a pointer to it )
Example :
_widget = new QWidget();
In the widget you can add anything you want.
use the slot applyOptions() to save the values of options currently entered in your widget.
_widget | Pointer to the new Widget |
Implemented in MeshObjectSelectionPlugin, ColorPlugin, TypePolyhedralMeshPlugin, and RulerPlugin.