A class to interface Python to application running in separate thread.
More...
#include <PyApp.h>
|
| static bool | hasPendingEvents () |
| | Returns true if the application object has pending events. More...
|
| |
| static PyApp * | instance () |
| | Returns the application instance. More...
|
| |
| static void | lock () |
| | Obtains a lock on the application's mutex. More...
|
| |
| static bool | locked () |
| | returns true if the Application mutex is locked by different thread. More...
|
| |
| static void | unlock () |
| | Releases the lock on the application's mutex. More...
|
| |
◆ PyApp() [1/3]
The default Constructor.
- Requests:
- There's a better way to wait for application to be ready.
Saw it in Qt related documentation.
Definition at line 153 of file PyApp.cxx.
References run().
◆ PyApp() [2/3]
A constructor that created QtApp without threading.
Definition at line 230 of file PyApp.cxx.
◆ PyApp() [3/3]
A constructor taking script name as argument.
Definition at line 210 of file PyApp.cxx.
References run().
◆ ~PyApp()
The destructor.
Kills the application object running in the thread.
Definition at line 243 of file PyApp.cxx.
◆ currentCanvas()
◆ exec()
◆ hasPendingEvents()
| bool hasPendingEvents |
( |
| ) |
|
|
static |
◆ hasTerminated()
| bool hasTerminated |
( |
| ) |
const |
◆ instance()
Returns the application instance.
Definition at line 249 of file PyApp.cxx.
◆ lock()
Obtains a lock on the application's mutex.
For Qt 3, obtains a lock on the application's mutex, for Qt 4 does nothing.
Definition at line 331 of file PyApp.cxx.
References QApplication::closingDown().
Referenced by PyNTuple::addColumn(), QtDisplay::addDataRep(), QtDisplay::addDataRepStacked(), QtDisplay::addFunction(), PyNTuple::addRow(), PyDataSource::addRow(), QtCut::addTarget(), QtCut::addTargets(), PyCanvas::addText(), PyCanvas::addTextAt(), PyCanvas::addTextAtAbs(), PyCanvas::addTextRep(), QtDisplay::addValues(), PyNTuple::append(), PyDataSource::append(), QtDisplay::applyCut(), QtDisplay::applyCuts(), PyNTuple::clear(), PyCanvas::close(), QtDisplay::createDataArray(), QtCut::createFits(), QtRootController::createNTuple(), PyNTupleController::createNTuple(), QtCut::createNTuple(), QtDisplay::createNTuple(), QtCut::createTnt(), QtCut::cutRange(), QtDisplay::deleteView(), QtRootNTuple::expandIfNeeded(), QtRootNTuple::getColumn(), QtRootNTuple::getColumnShape(), QtDisplay::getDataRep(), QtDisplay::getDataReps(), PyCanvas::getDisplay(), PyCanvas::getDisplays(), QtDisplay::getLabel(), QtRootController::getNTupleNames(), PyCanvas::getPickTable(), QtDisplay::getRange(), QtRootNTuple::getRow(), PyCanvas::getSelPickTable(), QtRootNTuple::isMultiDimensional(), QtDisplay::nextView(), PyCanvas::print(), PyCanvas::PyCanvas(), QtCut::QtCut(), QtDisplay::QtDisplay(), PyNTupleController::registerNTuple(), PyNTuple::replaceColumn(), QtDisplay::reset(), QtDisplay::resize(), QtRootNTuple::rows(), PyCanvas::saveAs(), PyDataSource::saveColumnFromNumArray(), PyCanvas::saveSelectedImages(), PyCanvas::selectAllDisplays(), PyCanvas::selectDisplay(), QtDisplay::setAspectRatio(), QtDisplay::setAutoRanging(), QtDisplay::setAutoTicks(), QtDisplay::setBinWidth(), QtDisplay::setColorMap(), QtDisplay::setContourLevels(), QtCut::setCutRange(), QtCut::setEnabled(), PyCanvas::setHeight(), QtDisplay::setLabel(), QtDisplay::setLog(), QtDisplay::setNumberOfBins(), QtDisplay::setOffset(), PyCanvas::setPlotMatrix(), QtDisplay::setPointRep(), QtDisplay::setRange(), QtDisplay::setTicks(), PyNTuple::setTitle(), QtDisplay::setTitle(), QtDisplay::setTransform(), QtDisplay::setView(), PyCanvas::setWidth(), PyCanvas::setX(), PyCanvas::setY(), PyCanvas::show(), QtCut::toggleInverted(), QtDisplay::update(), and PyFitsController::writeToFile().
◆ locked()
◆ openDocument()
| void openDocument |
( |
const std::string & |
filename | ) |
|
Opens a new document from file filename.
Definition at line 319 of file PyApp.cxx.
◆ quit()
Terminates the application.
Definition at line 280 of file PyApp.cxx.
◆ quitOnLastWindowClose()
| void quitOnLastWindowClose |
( |
bool |
yes | ) |
|
If yes is true, allows the application to quit when the last CanvasWindow is closed by the user.
Definition at line 383 of file PyApp.cxx.
◆ unlock()
Releases the lock on the application's mutex.
For Qt 3, releases the lock on the application's mutex, for Qt 4 does nothing.
Definition at line 357 of file PyApp.cxx.
References QApplication::closingDown().
Referenced by PyNTuple::addColumn(), QtDisplay::addDataRep(), QtDisplay::addDataRepStacked(), QtDisplay::addFunction(), PyNTuple::addRow(), PyDataSource::addRow(), QtCut::addTarget(), QtCut::addTargets(), PyCanvas::addText(), PyCanvas::addTextAt(), PyCanvas::addTextAtAbs(), PyCanvas::addTextRep(), QtDisplay::addValues(), PyNTuple::append(), PyDataSource::append(), QtDisplay::applyCut(), QtDisplay::applyCuts(), PyNTuple::clear(), PyCanvas::close(), QtDisplay::createDataArray(), QtCut::createFits(), QtRootController::createNTuple(), PyNTupleController::createNTuple(), QtCut::createNTuple(), QtDisplay::createNTuple(), QtCut::createTnt(), QtCut::cutRange(), QtDisplay::deleteView(), QtRootNTuple::expandIfNeeded(), QtRootNTuple::getColumn(), QtRootNTuple::getColumnShape(), QtDisplay::getDataRep(), QtDisplay::getDataReps(), PyCanvas::getDisplay(), PyCanvas::getDisplays(), QtDisplay::getLabel(), QtRootController::getNTupleNames(), PyCanvas::getPickTable(), QtDisplay::getRange(), QtRootNTuple::getRow(), PyCanvas::getSelPickTable(), QtRootNTuple::isMultiDimensional(), QtDisplay::nextView(), PyCanvas::print(), PyCanvas::PyCanvas(), QtCut::QtCut(), QtDisplay::QtDisplay(), PyNTupleController::registerNTuple(), PyNTuple::replaceColumn(), QtDisplay::reset(), QtDisplay::resize(), QtRootNTuple::rows(), PyCanvas::saveAs(), PyCanvas::saveAsImage(), PyDataSource::saveColumnFromNumArray(), PyCanvas::saveSelectedImages(), PyCanvas::selectAllDisplays(), PyCanvas::selectDisplay(), QtDisplay::setAspectRatio(), QtDisplay::setAutoRanging(), QtDisplay::setAutoTicks(), QtDisplay::setBinWidth(), QtDisplay::setColorMap(), QtDisplay::setContourLevels(), QtCut::setCutRange(), QtCut::setEnabled(), PyCanvas::setHeight(), QtDisplay::setLabel(), QtDisplay::setLog(), QtDisplay::setNumberOfBins(), QtDisplay::setOffset(), PyCanvas::setPlotMatrix(), QtDisplay::setPointRep(), QtDisplay::setRange(), QtDisplay::setTicks(), PyNTuple::setTitle(), QtDisplay::setTitle(), QtDisplay::setTransform(), QtDisplay::setView(), PyCanvas::setWidth(), PyCanvas::setX(), PyCanvas::setY(), PyCanvas::show(), QtCut::toggleInverted(), QtDisplay::unlock(), QtDisplay::update(), and PyFitsController::writeToFile().
◆ m_thread
The thread in which to run the GUI.
Definition at line 43 of file PyApp.h.
◆ s_app
◆ s_instance
The instance of the application.
Definition at line 37 of file PyApp.h.
The documentation for this class was generated from the following files: