Commit 6de1acbd authored by Matthias Möller's avatar Matthias Möller

nogui support

closes #2384

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20255 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e48de94b
......@@ -55,19 +55,21 @@ thread_(0)
/// init the Toolbox
void IsotropicRemesherPlugin::initializePlugin() {
tool_ = new IsotropicRemesherToolBox();
if ( OpenFlipper::Options::gui() ) {
tool_ = new IsotropicRemesherToolBox();
QSize size(300, 300);
tool_->resize(size);
QSize size(300, 300);
tool_->resize(size);
connect(tool_->remeshButton, SIGNAL(clicked()), this, SLOT(slotRemeshButtonClicked()) );
connect(tool_->remeshButton, SIGNAL(clicked()), this, SLOT(slotRemeshButtonClicked()) );
connect(tool_->minEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMinLength()) );
connect(tool_->maxEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMaxLength()) );
connect(tool_->meanEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMeanLength()) );
connect(tool_->minEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMinLength()) );
connect(tool_->maxEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMaxLength()) );
connect(tool_->meanEdgeLength, SIGNAL(clicked()), this, SLOT(slotSetMeanLength()) );
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"remesher.png");
emit addToolbox( tr("Isotropic Remesher") , tool_, toolIcon_ );
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"remesher.png");
emit addToolbox( tr("Isotropic Remesher") , tool_, toolIcon_ );
}
}
void IsotropicRemesherPlugin::slotRemeshButtonClicked() {
......
......@@ -153,6 +153,7 @@ public slots:
public slots:
QString version() { return QString("1.0"); };
void noguiSupported( ) {} ;
};
#endif //ISOTROPICREMESHERPLUGIN_HH
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