OptionsInterface Class Reference

#include <OptionsInterface.hh>

List of all members.

Public Member Functions

virtual ~OptionsInterface ()
 Destructor.
virtual bool initializeOptionsWidget (QWidget *&)=0
 Initialize the Options Widget.
virtual void applyOptions ()=0
 Apply changes to options.

Detailed Description

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.


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 *&   )  [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

Referenced by Core::loadPlugin().


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

acg pic Project OpenFlipper, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .