Commit f593b147 authored by Matthias Möller's avatar Matthias Möller

add nogui support

closes #2384

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20232 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d5550133
......@@ -61,17 +61,20 @@
RemesherPlugin::RemesherPlugin() :
progress_(0) {
progress_ = new ProgressEmitter();
if ( OpenFlipper::Options::gui() ) {
progress_ = new ProgressEmitter();
connect(progress_, SIGNAL(signalJobState(QString,int)), this, SIGNAL(setJobState(QString,int)), Qt::QueuedConnection);
connect(progress_, SIGNAL(changeDescription(QString,QString)), this, SIGNAL(setJobDescription(QString,QString)), Qt::QueuedConnection);
connect(progress_, SIGNAL(signalJobState(QString,int)), this, SIGNAL(setJobState(QString,int)), Qt::QueuedConnection);
connect(progress_, SIGNAL(changeDescription(QString,QString)), this, SIGNAL(setJobDescription(QString,QString)), Qt::QueuedConnection);
}
}
// ----------------------------------------------------------------------------------------
RemesherPlugin::~RemesherPlugin() {
delete progress_;
if ( OpenFlipper::Options::gui() ) {
delete progress_;
}
}
// ----------------------------------------------------------------------------------------
......
......@@ -204,6 +204,8 @@ public slots:
public slots:
QString version() { return QString("1.0"); };
void noguiSupported( ) {} ;
};
#endif //ADVANCEDREMESHERPLUGIN_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