Commit e0589a90 authored by Jan Möbius's avatar Jan Möbius

Dennis: Provide showScriptInEditor Function

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6583 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 67b4bb08
......@@ -452,5 +452,15 @@ void ScriptingPlugin::slotFunctionDoubleClicked(QListWidgetItem * _item)
scriptWidget_->currentScript->insertPlainText( _item->text() );
}
void ScriptingPlugin::showScriptInEditor(QString _code)
{
if ( OpenFlipper::Options::nogui() )
return;
showScriptWidget ();
scriptWidget_->currentScript->setText (_code);
}
Q_EXPORT_PLUGIN2( skriptingplugin , ScriptingPlugin );
......@@ -80,6 +80,8 @@ public slots:
void showScriptWidget();
void hideScriptWidget();
void showScriptInEditor (QString _code);
/** @} */
//===========================================================================
......
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