Commit 2277b84f authored by Jan Möbius's avatar Jan Möbius

Added user flag to enable or disable qtscript debugger

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13504 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0d3953c0
if (QT_QTSCRIPTTOOLS_FOUND)
if ( NOT DEFINED OPENFLIPPER_ENABLE_SCRIPT_DEBUGGER )
set( OPENFLIPPER_ENABLE_SCRIPT_DEBUGGER false CACHE BOOL "Enable or disable qt script debugger in OpenFlippers scripting system" )
endif()
if ( OPENFLIPPER_ENABLE_SCRIPT_DEBUGGER )
add_definitions(ENABLE_SCRIPT_DEBUGGER)
endif()
endif()
include (plugin)
openflipper_plugin ( TRANSLATION_LANGUAGES de_DE
INSTALLDATA Icons )
......@@ -72,7 +72,7 @@ ScriptingPlugin::ScriptingPlugin() :
highlighterList_(0),
lastFile_(""),
debuggerButton_(0)
#ifdef QT_SCRIPTTOOLS_LIB
#ifdef ENABLE_SCRIPT_DEBUGGER
,debugger_(0)
#endif
{
......@@ -141,7 +141,7 @@ void ScriptingPlugin::pluginsInitialized() {
debuggerButton_->setCheckable(true);
toolBar->addAction(debuggerButton_);
#ifdef QT_SCRIPTTOOLS_LIB
#ifdef ENABLE_SCRIPT_DEBUGGER
if ( OpenFlipperSettings().value("Scripting/QtScriptDebugger",true).toBool() )
debuggerButton_->setChecked(true);
else
......@@ -218,7 +218,7 @@ void ScriptingPlugin::pluginsInitialized() {
// Setup scripting debugger if available
// ==================================================================
#ifdef QT_SCRIPTTOOLS_LIB
#ifdef ENABLE_SCRIPT_DEBUGGER
QScriptEngine* engine;
emit getScriptingEngine( engine );
debugger_ = new QScriptEngineDebugger;
......@@ -417,7 +417,7 @@ void ScriptingPlugin::slotExecuteScriptButton() {
void ScriptingPlugin::slotDebuggerButton() {
#ifdef QT_SCRIPTTOOLS_LIB
#ifdef ENABLE_SCRIPT_DEBUGGER
QScriptEngine* engine;
emit getScriptingEngine( engine );
......
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