ParaView
|
pqPythonManager is a class to facilitate the use of a python interpreter by various paraview GUI components. More...
#include <pqPythonManager.h>
Inherits QObject.
Public Slots | |
void | executeScript (const QString &filename) |
void | editMacro (const QString &fileName) |
void | updateStatusMessage () |
Signals | |
void | paraviewPythonModulesImported () |
Public Member Functions | |
pqPythonManager (QObject *parent=NULL) | |
virtual | ~pqPythonManager () |
bool | interpreterIsInitialized () |
pqPythonDialog * | pythonShellDialog () |
void | addWidgetForRunMacros (QWidget *widget) |
void | addWidgetForEditMacros (QWidget *widget) |
void | addWidgetForDeleteMacros (QWidget *widget) |
void | editTrace (const QString &txt=QString(), bool update=false) |
void | addMacro (const QString &fileName) |
void | updateMacroList () |
Protected Slots | |
void | onRemovingServer (pqServer *server) |
Protected Member Functions | |
QString | getTraceString () |
pqPythonManager is a class to facilitate the use of a python interpreter by various paraview GUI components.
The manager has a single instance of the pqPythonDialog. Currently the pqPythonDialog "owns" the python interpreter. Anyone who wants to execute python code should call pythonShellDialog() to get a pointer to the pqPythonDialog instance. This manager class provides global access to the python dialog and methods to ensure the python dialog's interpreter stays in sync with the current active server.
Note: because the interpreter is initialized lazily, a number of the member functions on this class have the side effect of initializing the python interpreter first.
Definition at line 55 of file pqPythonManager.h.
pqPythonManager::pqPythonManager | ( | QObject * | parent = NULL | ) |
|
virtual |
bool pqPythonManager::interpreterIsInitialized | ( | ) |
pqPythonDialog* pqPythonManager::pythonShellDialog | ( | ) |
void pqPythonManager::addWidgetForRunMacros | ( | QWidget * | widget | ) |
void pqPythonManager::addWidgetForEditMacros | ( | QWidget * | widget | ) |
void pqPythonManager::addWidgetForDeleteMacros | ( | QWidget * | widget | ) |
void pqPythonManager::editTrace | ( | const QString & | txt = QString() , |
bool | update = false |
||
) |
void pqPythonManager::addMacro | ( | const QString & | fileName | ) |
void pqPythonManager::updateMacroList | ( | ) |
|
signal |
|
slot |
|
slot |
|
slot |
|
protectedslot |
|
protected |