Developer Documentation

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
OptionsInterface Class Referenceabstract

Options Dialog interface. More...

`#include <OpenFlipper/BasePlugin/OptionsInterface.hh>`

Inheritance diagram for OptionsInterface:

## 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...

## Detailed Description

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 74 of file OptionsInterface.hh.

## Member Function Documentation

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 *& | _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.

Parameters

  _widget | Pointer to the new Widget

Returns
  Return true if a widget has been created

Implemented in MeshObjectSelectionPlugin, ColorPlugin, TypePolyhedralMeshPlugin, and RulerPlugin.

The documentation for this class was generated from the following file:

- OpenFlipper/BasePlugin/OptionsInterface.hh