Commit c7e1517e authored by Jan Möbius's avatar Jan Möbius
Browse files

New Toolbox Interface

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7260 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 124a47a2
......@@ -7,10 +7,9 @@
#include <OpenFlipper/BasePlugin/PluginFunctions.hh>
/// init the Toolbox
bool IsotropicRemesherPlugin::initializeToolbox(QWidget*& _widget) {
void IsotropicRemesherPlugin::initializePlugin() {
tool_ = new IsotropicRemesherToolBox();
_widget = tool_;
QSize size(300, 300);
tool_->resize(size);
......@@ -20,7 +19,7 @@ bool IsotropicRemesherPlugin::initializeToolbox(QWidget*& _widget) {
connect(tool_->maxEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMaxLength()) );
connect(tool_->meanEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMeanLength()) );
return true;
emit addToolbox( tr("Isotropic Remesher") , tool_ );
}
......
......@@ -22,32 +22,37 @@ Q_INTERFACES(ToolboxInterface)
Q_INTERFACES(LoggingInterface)
Q_INTERFACES(RPCInterface)
//BaseInterface
signals:
//BaseInterface
void updateView();
void updatedObject(int);
void setSlotDescription(QString _slotName, QString _slotDescription,
QStringList _parameters, QStringList _descriptions);
//LoggingInterface:
//LoggingInterface:
void log( Logtype _type, QString _message );
void log( QString _message );
// RPC Interface
// 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(); // BaseInterface
public :
~IsotropicRemesherPlugin() {};
bool initializeToolbox(QWidget*& _widget); // ToolboxInterface
QString name() { return (QString("IsotropicRemesher")); };
QString description( ) { return (QString("an isotropic remesher")); };
......
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