ParaView
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions
pqPythonManager Class Reference

pqPythonManager is a class to faciliate the use of a python interpreter by various paraview GUI components. More...

#include <pqPythonManager.h>

List of all members.

Public Slots

void executeScript (const QString &filename)
void editMacro (const QString &fileName)
void updateStatusMessage ()

Signals

void paraviewPythonModulesImported ()
void canStartTrace (bool)
void canStopTrace (bool)
void startTraceDone ()
void stopTraceDone ()

Public Member Functions

 pqPythonManager (QObject *parent=NULL)
virtual ~pqPythonManager ()
bool interpreterIsInitialized ()
pqPythonDialogpythonShellDialog ()
void addWidgetForRunMacros (QWidget *widget)
void addWidgetForEditMacros (QWidget *widget)
void addWidgetForDeleteMacros (QWidget *widget)
bool canStartTrace ()
bool canStopTrace ()
void startTrace ()
void stopTrace ()
void editTrace ()
void saveTrace ()
void saveTraceState (const QString &filename)
void addMacro (const QString &fileName)
void updateMacroList ()

Protected Slots

void onPythonInterpreterInitialized ()
void onServerCreationFinished (pqServer *server)
void onRemovingServer (pqServer *server)

Protected Member Functions

void initializeParaviewPythonModules ()
QString getTraceString ()
QString getPVModuleDirectory ()

Detailed Description

pqPythonManager is a class to faciliate 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.


Constructor & Destructor Documentation

pqPythonManager::pqPythonManager ( QObject *  parent = NULL)
virtual pqPythonManager::~pqPythonManager ( ) [virtual]

Member Function Documentation

bool pqPythonManager::interpreterIsInitialized ( )
pqPythonDialog* pqPythonManager::pythonShellDialog ( )
void pqPythonManager::addWidgetForRunMacros ( QWidget *  widget)
void pqPythonManager::addWidgetForEditMacros ( QWidget *  widget)
void pqPythonManager::addWidgetForDeleteMacros ( QWidget *  widget)
bool pqPythonManager::canStartTrace ( )
bool pqPythonManager::canStopTrace ( )
void pqPythonManager::startTrace ( )
void pqPythonManager::stopTrace ( )
void pqPythonManager::editTrace ( )
void pqPythonManager::saveTrace ( )
void pqPythonManager::saveTraceState ( const QString &  filename)
void pqPythonManager::addMacro ( const QString &  fileName)
void pqPythonManager::updateMacroList ( )
void pqPythonManager::paraviewPythonModulesImported ( ) [signal]
void pqPythonManager::canStartTrace ( bool  ) [signal]
void pqPythonManager::canStopTrace ( bool  ) [signal]
void pqPythonManager::startTraceDone ( ) [signal]
void pqPythonManager::stopTraceDone ( ) [signal]
void pqPythonManager::executeScript ( const QString &  filename) [slot]
void pqPythonManager::editMacro ( const QString &  fileName) [slot]
void pqPythonManager::updateStatusMessage ( ) [slot]
void pqPythonManager::onPythonInterpreterInitialized ( ) [protected, slot]
void pqPythonManager::onServerCreationFinished ( pqServer server) [protected, slot]
void pqPythonManager::onRemovingServer ( pqServer server) [protected, slot]
void pqPythonManager::initializeParaviewPythonModules ( ) [protected]
QString pqPythonManager::getTraceString ( ) [protected]
QString pqPythonManager::getPVModuleDirectory ( ) [protected]

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