Scribus
Open source desktop publishing at your fingertips
ScripterCore Class Reference
Inheritance diagram for ScripterCore:
Collaboration diagram for ScripterCore:

Public Slots

void runScriptDialog ()
 
void StdScript (QString filebasename)
 
void RecentScript (QString fn)
 
void slotRunScriptFile (QString fileName, bool inMainInterpreter=false)
 
void slotRunScriptFile (QString fileName, QStringList arguments, bool inMainInterpreter=false)
 
void slotRunPythonScript ()
 
void slotRunScript (const QString script)
 
void slotInteractiveScript (bool)
 
void slotExecute ()
 
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.
 
bool setupMainInterpreter ()
 Does setup for the main interpreter, particularly the interactive console. True for success.
 
void initExtensionScripts ()
 Sets up the plugin for extension scripts, if enabled.
 
void runStartupScript ()
 Runs the startup script, if enabled.
 
void languageChange ()
 
const QString & startupScript () const
 
bool extensionsEnabled () const
 
void setStartupScript (const QString &newScript)
 
void setExtensionsEnabled (bool enable)
 
void updateSyntaxHighlighter ()
 

Public Member Functions

 ScripterCore (QWidget *parent)
 
void addToMainWindowMenu (ScribusMainWindow *)
 
void enableMainWindowMenu ()
 
void disableMainWindowMenu ()
 

Public Attributes

QString returnString
 String representation of result returned by last python console command.
 
QString inValue
 String representation of line of code to be passed to the Python interactive interpreter.
 

Protected Member Functions

void FinishScriptRun ()
 
void ReadPlugPrefs ()
 
void SavePlugPrefs ()
 
void rebuildRecentScriptsMenu ()
 
void buildScribusScriptsMenu ()
 
void rebuildScribusScriptsMenu ()
 

Protected Attributes

PythonConsolepcon
 Reference to the "IDE" widget.
 
QStringList SavedRecentScripts
 
QStringList RecentScripts
 
MenuManagermenuMgr
 
QMap< QString, QPointer< ScrAction > > scrScripterActions
 
QMap< QString, QPointer< ScrAction > > scrRecentScriptActions
 
bool m_enableExtPython
 pref: Enable access to main interpreter and 'extension scripts'
 
bool m_importAllNames
 pref: Run 'from scribus import *' at scripter startup
 
QString m_startupScript
 pref: Load this script on startup
 

Member Function Documentation

void ScripterCore::slotRunScriptFile ( QString  fileName,
QStringList  arguments,
bool  inMainInterpreter = false 
)
slot

run "filename" python script with the additional arguments provided in "arguments"


The documentation for this class was generated from the following files: