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,6 +71,7 @@ void ...@@ -71,6 +71,7 @@ void
SmootherPlugin:: SmootherPlugin::
initializePlugin() initializePlugin()
{ {
if ( OpenFlipper::Options::gui() ) {
tool_ = new SmootherToolbarWidget(); tool_ = new SmootherToolbarWidget();
QSize size(100, 100); QSize size(100, 100);
tool_->resize(size); tool_->resize(size);
...@@ -80,6 +81,7 @@ initializePlugin() ...@@ -80,6 +81,7 @@ initializePlugin()
toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"smoother2.png"); toolIcon_ = new QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"smoother2.png");
emit addToolbox( tr("Smoother") , tool_, toolIcon_ ); emit addToolbox( tr("Smoother") , tool_, toolIcon_ );
}
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
......
...@@ -128,6 +128,9 @@ private slots: ...@@ -128,6 +128,9 @@ private slots:
/// Second initialization stage /// Second initialization stage
void pluginsInitialized(); void pluginsInitialized();
// Tell system that this plugin runs without ui
void noguiSupported( ) {} ;
private : private :
/// Widget for Toolbox /// 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