void ScriptingWidget::executeCommand(const QString& strCommand) { Interpreter* pInterpreter = NULL; InterpreterManager* pInterMgr = dynamic_cast<InterpreterManager*>(mInterpreter.get()); if (pInterMgr != NULL) { pInterpreter = pInterMgr->getInterpreter(); } if (pInterpreter == NULL) { appendPrompt(); QMessageBox::critical(this, "Scripting Window", "Could not get the interpreter plug-in!"); return; } // Set the input values for the plug-in mExecutingCommand = true; pInterpreter->executeCommand(strCommand.toStdString()); mExecutingCommand = false; appendPrompt(); }