#include <ScriptRunner.h>
Public Member Functions | |
| bool | processError () |
| bool | processRunning () |
| ScriptRunner (QWidget *parent, QString scriptName, QString mainWorkDir) | |
| ~ScriptRunner () | |
Private Slots | |
| void | okButtonPressed () |
| void | processExited () |
| void | readFromStderr () |
| void | readFromStdout () |
| void | stopButtonPressed () |
Private Member Functions | |
| ScriptRunner | operator= (const ScriptRunner &) |
| void | runScript (QString scriptName, QStringList scriptParameters) |
| void | runScript (QString scriptName) |
| void | runScript (const char *scriptName) |
| ScriptRunner (const ScriptRunner &) | |
| bool | stopScript () |
Private Attributes | |
| QPushButton * | okButton |
| bool | procErr |
| QProcess * | process |
| QTextEdit * | scriptMessages |
| QString | workingDirectory |
Definition at line 41 of file ScriptRunner.h.
|
||||||||||||||||
|
Constructor. Definition at line 36 of file ScriptRunner.cpp. References okButton, okButtonPressed(), process, processExited(), readFromStderr(), readFromStdout(), runScript(), scriptMessages, stopButtonPressed(), and workingDirectory. |
|
|
Destructor. Definition at line 78 of file ScriptRunner.cpp. References process. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Slot for when ok button is pressed. Definition at line 108 of file ScriptRunner.cpp. Referenced by ScriptRunner(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
|
Returns true if there has been an error running the script. Definition at line 92 of file ScriptRunner.cpp. References procErr. |
|
|
Slot called when process exits. Definition at line 114 of file ScriptRunner.cpp. References okButton, and scriptMessages. Referenced by ScriptRunner(). |
|
|
Returns true if process is running. Definition at line 98 of file ScriptRunner.cpp. References process. |
|
|
Prints out error from process. Definition at line 124 of file ScriptRunner.cpp. References process, and scriptMessages. Referenced by ScriptRunner(). |
|
|
Slot called when there is something to read from standard out. Definition at line 134 of file ScriptRunner.cpp. References process, and scriptMessages. Referenced by ScriptRunner(). |
|
||||||||||||
|
Runs a script with a given set of parameters. Definition at line 195 of file ScriptRunner.cpp. References okButton, procErr, process, scriptMessages, and workingDirectory. |
|
|
Runs the named script. Definition at line 163 of file ScriptRunner.cpp. References okButton, procErr, process, scriptMessages, and workingDirectory. |
|
|
Overloaded run script method. Definition at line 157 of file ScriptRunner.cpp. Referenced by ScriptRunner(). |
|
|
Slot for when stop button is pressed. Definition at line 146 of file ScriptRunner.cpp. References okButton, and stopScript(). Referenced by ScriptRunner(). |
|
|
Politely ask process to quit and kill it if it does not respond. Definition at line 228 of file ScriptRunner.cpp. References process. Referenced by stopButtonPressed(). |
|
|
Hides the dialog. This is disabled whilst the script is running. Definition at line 75 of file ScriptRunner.h. Referenced by processExited(), runScript(), ScriptRunner(), and stopButtonPressed(). |
|
|
Flag to record errors executing the script. Definition at line 66 of file ScriptRunner.h. Referenced by processError(), and runScript(). |
|
|
The process that executes the script. Definition at line 69 of file ScriptRunner.h. Referenced by processRunning(), readFromStderr(), readFromStdout(), runScript(), ScriptRunner(), stopScript(), and ~ScriptRunner(). |
|
|
QTextEdit to display the output from the script. Definition at line 72 of file ScriptRunner.h. Referenced by processExited(), readFromStderr(), readFromStdout(), runScript(), and ScriptRunner(). |
|
|
The main directory of the application. This should contain containing the scripts in a scripts subdirectory. Definition at line 63 of file ScriptRunner.h. Referenced by runScript(), and ScriptRunner(). |
1.4.4