Plugins can add its own toolbox to the main widget's toolbox area by using this interface. More...
#include <ToolboxInterface.hh>

Signals | |
| virtual void | addToolbox (QString, QWidget *) |
| Add a toolbox widget to the gui with the given name. | |
Public Member Functions | |
| virtual | ~ToolboxInterface () |
| Destructor. | |
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.
| 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.