Commit adf9b1de authored by Henrik Zimmer's avatar Henrik Zimmer
Browse files

adapted to new ToolBar setup of openflipper

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@28 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent cd35d6f6
...@@ -57,17 +57,8 @@ ...@@ -57,17 +57,8 @@
void HarmonicExamplePlugin::initializePlugin() void HarmonicExamplePlugin::initializePlugin()
{
}
//-----------------------------------------------------------------------------
bool HarmonicExamplePlugin::initializeToolbox(QWidget*& _widget)
{ {
tool_ = new HarmonicExampleToolbar(); tool_ = new HarmonicExampleToolbar();
_widget = tool_;
QSize size(300,300); QSize size(300,300);
tool_->resize(size); tool_->resize(size);
...@@ -75,7 +66,7 @@ bool HarmonicExamplePlugin::initializeToolbox(QWidget*& _widget) ...@@ -75,7 +66,7 @@ bool HarmonicExamplePlugin::initializeToolbox(QWidget*& _widget)
// connect button press event to function slotCompute() // connect button press event to function slotCompute()
connect(tool_->compute_pb, SIGNAL( clicked() ), this, SLOT( slotCompute() ) ); connect(tool_->compute_pb, SIGNAL( clicked() ), this, SLOT( slotCompute() ) );
return true; emit addToolbox( tr("HarmonicExample") , tool_ );
} }
......
...@@ -79,6 +79,7 @@ class HarmonicExamplePlugin : public QObject, BaseInterface, ToolboxInterface, K ...@@ -79,6 +79,7 @@ class HarmonicExamplePlugin : public QObject, BaseInterface, ToolboxInterface, K
signals: signals:
void updateView(); void updateView();
void updatedObject(int); void updatedObject(int);
void addToolbox( QString _name , QWidget* _widget );
private slots: private slots:
...@@ -97,8 +98,6 @@ public : ...@@ -97,8 +98,6 @@ public :
~HarmonicExamplePlugin() {}; ~HarmonicExamplePlugin() {};
bool initializeToolbox(QWidget*& _widget);
QString name() { return (QString("HarmonicExample")); }; QString name() { return (QString("HarmonicExample")); };
QString description( ) { return (QString("Computes the HarmonicExample of the the active Mesh")); }; QString description( ) { return (QString("Computes the HarmonicExample of the the active Mesh")); };
......
Supports Markdown
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