Commit 9c4f7056 authored by Jan Möbius's avatar Jan Möbius

New Toolbox Interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7258 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1117227c
......@@ -67,15 +67,9 @@
//== IMPLEMENTATION ==========================================================
/** \brief Initialize the Toolbox
*
* @param _widget reference to the generated toolbox
* @return return if the toolbox was generated successfully
*/
bool DecimaterPlugin::initializeToolbox(QWidget*& _widget)
void DecimaterPlugin::initializePlugin()
{
tool_ = new DecimaterToolbarWidget();
_widget = tool_;
QSize size(100, 100);
tool_->resize(size);
......@@ -93,7 +87,7 @@ bool DecimaterPlugin::initializeToolbox(QWidget*& _widget)
// Force update if the Toolbox gets visible
connect(tool_, SIGNAL(showing()), this, SLOT( slotUpdateNumVertices() ) );
return true;
emit addToolbox( tr("Decimater") , tool_ );
}
/** \brief Initialization of the plugin when it is loaded by the core
......
......@@ -91,9 +91,13 @@ signals:
// RPC Interface
void pluginExists( QString _pluginName , bool& _exists ) ;
void functionExists( QString _pluginName , QString _functionName , bool& _exists );
// ToolboxInterface
void addToolbox( QString _name , QWidget* _widget );
private slots:
// BaseInterface
void initializePlugin();
void pluginsInitialized();
void slotObjectUpdated( int _identifier ); // BaseInterface
......@@ -107,9 +111,6 @@ public :
/// Default destructor
~DecimaterPlugin() {};
/// Initialize the toolbar (create a widget in the right side toolbox)
bool initializeToolbox(QWidget*& _widget);
/// Name of the Plugin
QString name(){ return (QString("Decimater")); };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment