#include <OptionsInterface.hh>
Public Member Functions | |
| virtual | ~OptionsInterface () |
| Destructor. | |
| virtual bool | initializeOptionsWidget (QWidget *&)=0 |
| Initialize the Options Widget. | |
| virtual void | applyOptions ()=0 |
| Apply changes to options. | |
This Interface should be used by plugins which will provide their own options. For your options to show up in OpenFlippers Options window implement the initializeOptionsWidget() slot. The widget you return with this slot will be integrated into the options window and when the user hits the apply- or ok-button in the options window the slot applyOptions() is called and thus enables you to store the changes in your options.
Definition at line 56 of file OptionsInterface.hh.
| virtual void OptionsInterface::applyOptions | ( | ) | [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.
| virtual bool OptionsInterface::initializeOptionsWidget | ( | QWidget *& | ) | [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 |
Referenced by Core::loadPlugin().