Commit 0a0a62ab authored by Jan Möbius's avatar Jan Möbius

New Toolbox Interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7250 383ad7c9-94d9-4d36-a494-682f7c89f535
parent edc6afa6
......@@ -67,24 +67,18 @@
//== IMPLEMENTATION ==========================================================
/** \brief Initialize the toolbox
*
* @param _widget reference to the toolbox
* @return was the toolbox successfully created?
*/
bool
void
SmootherPlugin::
initializeToolbox(QWidget*& _widget)
initializePlugin()
{
tool_ = new SmootherToolbarWidget();
_widget = tool_;
QSize size(100, 100);
tool_->resize(size);
// connect signals->slots
connect(tool_->pB_smooth,SIGNAL(clicked() ),this,SLOT(slot_smooth()));
connect(tool_->pB_smooth,SIGNAL(clicked() ),this,SLOT(slot_smooth()));
return true;
emit addToolbox( tr("Smoother") , tool_ );
}
//-----------------------------------------------------------------------------
......
......@@ -95,6 +95,9 @@ signals:
// LoggingInterface
void log(Logtype _type, QString _message);
void log(QString _message);
// ToolboxInterface
void addToolbox( QString _name , QWidget* _widget );
public :
......@@ -104,9 +107,6 @@ public :
/// default destructor
~SmootherPlugin() {};
/// Initialize the toolbar (create a widget in the right side toolbox)
bool initializeToolbox(QWidget*& _widget);
/// Name of the Plugin
QString name(){ return (QString("Smoother")); };
......@@ -115,6 +115,8 @@ public :
private slots:
void initializePlugin(); // BaseInterface
/// Second initialization stage
void pluginsInitialized();
......
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