Commit 2095669e authored by Jan Möbius's avatar Jan Möbius

Made Smoother scriptable again



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12887 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1f7ade4c
......@@ -71,15 +71,17 @@ void
SmootherPlugin::
initializePlugin()
{
tool_ = new SmootherToolbarWidget();
QSize size(100, 100);
tool_->resize(size);
if ( OpenFlipper::Options::gui() ) {
tool_ = new SmootherToolbarWidget();
QSize size(100, 100);
tool_->resize(size);
// connect signals->slots
connect(tool_->pB_smooth,SIGNAL(clicked() ),this,SLOT(slot_smooth()));
// connect signals->slots
connect(tool_->pB_smooth,SIGNAL(clicked() ),this,SLOT(slot_smooth()));
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"smoother2.png");
emit addToolbox( tr("Smoother") , tool_, toolIcon_ );
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"smoother2.png");
emit addToolbox( tr("Smoother") , tool_, toolIcon_ );
}
}
//-----------------------------------------------------------------------------
......
......@@ -128,6 +128,9 @@ private slots:
/// Second initialization stage
void pluginsInitialized();
// Tell system that this plugin runs without ui
void noguiSupported( ) {} ;
private :
/// Widget for Toolbox
......
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