ToolboxInterface Class Reference

Plugins can add its own toolbox to the main widget's toolbox area by using this interface. More...

#include <ToolboxInterface.hh>

Inheritance diagram for ToolboxInterface:
Inheritance graph
[legend]

List of all members.

Signals

virtual void addToolbox (QString, QWidget *)
 Add a toolbox widget to the gui with the given name.

Public Member Functions

virtual ~ToolboxInterface ()
 Destructor.

Detailed Description

Plugins can add its own toolbox to the main widget's toolbox area by using this interface.

This Interface should be used by plugins which will provide a toolbox widget. Each Plugin can create own Widgets in the Toolbox area. Just create your widget and then add it with
emit addToolbox( QString _name , QWidget* _widget )
to the user interface. You can create extra Signals and slots in your Plugin. These can be connected between your toolbox and your plugin. Signals and slots across plugins are currently not available but may be possible via an internal message system later.

See our tutorials Implementing a mesh smoother plugin and Implementing mouse and keyboard interaction for an example of to add custom toolboxes to OpenFlipper.

Definition at line 76 of file ToolboxInterface.hh.


Member Function Documentation

virtual void ToolboxInterface::addToolbox ( QString  ,
QWidget *   
) [inline, virtual, signal]

Add a toolbox widget to the gui with the given name.

This signal adds a toolbox widget to the toolbar on the right.

Reimplemented in MouseAndKeyPlugin, and SmootherPlugin.

Definition at line 91 of file ToolboxInterface.hh.


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

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