29 void enableMainWindowMenu();
30 void disableMainWindowMenu();
38 void runScriptDialog();
39 void StdScript(QString filebasename);
40 void RecentScript(QString fn);
41 void slotRunScriptFile(QString fileName,
bool inMainInterpreter =
false);
42 void slotRunScriptFile(QString fileName, QStringList arguments,
bool inMainInterpreter =
false);
43 void slotRunPythonScript();
44 void slotRunScript(
const QString script);
45 void slotInteractiveScript(
bool);
58 void languageChange();
60 const QString & startupScript()
const;
61 bool extensionsEnabled()
const;
62 void setStartupScript(
const QString& newScript);
63 void setExtensionsEnabled(
bool enable);
64 void updateSyntaxHighlighter();
68 void FinishScriptRun();
71 void rebuildRecentScriptsMenu();
72 void buildScribusScriptsMenu();
74 void rebuildScribusScriptsMenu();
79 QStringList SavedRecentScripts;
80 QStringList RecentScripts;
82 QMap<QString, QPointer<ScrAction> > scrScripterActions;
83 QMap<QString, QPointer<ScrAction> > scrRecentScriptActions;
bool m_enableExtPython
pref: Enable access to main interpreter and 'extension scripts'
Definition: scriptercore.h:87
QString returnString
String representation of result returned by last python console command.
Definition: scriptercore.h:33
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
QString m_startupScript
pref: Load this script on startup
Definition: scriptercore.h:91
bool m_importAllNames
pref: Run 'from scribus import *' at scripter startup
Definition: scriptercore.h:89
PythonConsole * pcon
Reference to the "IDE" widget.
Definition: scriptercore.h:78
Definition: scraction.h:33
void runStartupScript()
Runs the startup script, if enabled.
Definition: scriptercore.cpp:571
void aboutScript()
Show docstring of the script to the user. I don't know how to get docstring via e.g. pydoc because of it needs to run script => error cannot find scribus module.
Definition: scriptercore.cpp:536
bool setupMainInterpreter()
Does setup for the main interpreter, particularly the interactive console. True for success...
Definition: scriptercore.cpp:597
void initExtensionScripts()
Sets up the plugin for extension scripts, if enabled.
Definition: scriptercore.cpp:566
QString inValue
String representation of line of code to be passed to the Python interactive interpreter.
Definition: scriptercore.h:35
Definition: scriptercore.h:20