ParaView
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | List of all members
pqPythonManager Class Reference

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 ()
 
pqPythonDialogpythonShellDialog ()
 
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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

§ pqPythonManager()

pqPythonManager::pqPythonManager ( QObject *  parent = NULL)

§ ~pqPythonManager()

virtual pqPythonManager::~pqPythonManager ( )
virtual

Member Function Documentation

§ interpreterIsInitialized()

bool pqPythonManager::interpreterIsInitialized ( )

§ pythonShellDialog()

pqPythonDialog* pqPythonManager::pythonShellDialog ( )

§ addWidgetForRunMacros()

void pqPythonManager::addWidgetForRunMacros ( QWidget *  widget)

§ addWidgetForEditMacros()

void pqPythonManager::addWidgetForEditMacros ( QWidget *  widget)

§ addWidgetForDeleteMacros()

void pqPythonManager::addWidgetForDeleteMacros ( QWidget *  widget)

§ editTrace()

void pqPythonManager::editTrace ( const QString &  txt = QString(),
bool  update = false 
)

§ addMacro()

void pqPythonManager::addMacro ( const QString &  fileName)

§ updateMacroList()

void pqPythonManager::updateMacroList ( )

§ paraviewPythonModulesImported

void pqPythonManager::paraviewPythonModulesImported ( )
signal

§ executeScript

void pqPythonManager::executeScript ( const QString &  filename)
slot

§ editMacro

void pqPythonManager::editMacro ( const QString &  fileName)
slot

§ updateStatusMessage

void pqPythonManager::updateStatusMessage ( )
slot

§ onRemovingServer

void pqPythonManager::onRemovingServer ( pqServer server)
protectedslot

§ getTraceString()

QString pqPythonManager::getTraceString ( )
protected

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