54 PyApp (
char * script );
static bool hasPendingEvents()
Returns true if the application object has pending events.
int exec()
Starts the QApplication event loop.
This class is the public interface the what the user sees as the canvas object from Python...
PyCanvas * currentCanvas()
Returns a pointer to the current CanvasWindow.
static void lock()
Obtains a lock on the application's mutex.
A derived class of QApplication that instantiates the components of HippoDraw.
A derived class of QThread that runs the QApplication object.
void quit()
Terminates the application.
void quitOnLastWindowClose(bool yes)
If yes is true, allows the application to quit when the last CanvasWindow is closed by the user...
static PyApp * instance()
Returns the application instance.
A class to interface Python to application running in separate thread.
bool hasTerminated() const
Returns true if the application as terminated, otherwise returns false.
HdThread * m_thread
The thread in which to run the GUI.
static void unlock()
Releases the lock on the application's mutex.
PyApp()
The default Constructor.
static bool locked()
returns true if the Application mutex is locked by different thread.
static QtApp * s_app
The QApplication object.
void openDocument(const std::string &filename)
Opens a new document from file filename.
static PyApp * s_instance
The instance of the application.