20 #ifndef _STELSCRIPTMGR_HPP_
21 #define _STELSCRIPTMGR_HPP_
25 #include <QStringList>
29 #include <QScriptEngineAgent>
34 #ifdef ENABLE_SCRIPT_CONSOLE
43 #ifdef ENABLE_SCRIPT_CONSOLE
51 QStringList getScriptList();
62 bool preprocessScript(
const QString& input, QString& output,
const QString& scriptDir);
63 bool preprocessScript(QFile &input, QString& output,
const QString& scriptDir);
74 const QString
getName(
const QString& s);
82 const QString
getAuthor(
const QString& s);
114 bool runScript(
const QString& fileName,
const QString& includePath=
"");
133 void debug(
const QString& msg);
154 QMap<QString, QString> mappify(
const QStringList& args,
bool lowerKey=
false);
155 bool strToBool(
const QString& str);
157 #ifdef ENABLE_STRATOSCRIPT_COMPAT
158 bool preprocessStratoScript(QFile& input, QString& output,
const QString& scriptDir);
167 const QString getHeaderSingleLineCommentText(
const QString& s,
const QString&
id,
const QString& notFoundText=
"");
168 QScriptEngine engine;
173 QString scriptFileName;
186 void setPauseScript(
bool pause) { isPaused=pause; }
187 bool getPauseScript() {
return isPaused; }
189 void positionChange(qint64 scriptId,
int lineNumber,
int columnNumber);
196 #endif // _STELSCRIPTMGR_HPP_