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 @@
void HarmonicExamplePlugin::initializePlugin()
{
}
//-----------------------------------------------------------------------------
bool HarmonicExamplePlugin::initializeToolbox(QWidget*& _widget)
{
tool_ = new HarmonicExampleToolbar();
_widget = tool_;
QSize size(300,300);
tool_->resize(size);
......@@ -75,7 +66,7 @@ bool HarmonicExamplePlugin::initializeToolbox(QWidget*& _widget)
// connect button press event to function 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
signals:
void updateView();
void updatedObject(int);
void addToolbox( QString _name , QWidget* _widget );
private slots:
......@@ -97,8 +98,6 @@ public :
~HarmonicExamplePlugin() {};
bool initializeToolbox(QWidget*& _widget);
QString name() { return (QString("HarmonicExample")); };
QString description( ) { return (QString("Computes the HarmonicExample of the the active Mesh")); };
......
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