34 # include <QApplication>
70 static QApplication*
app( ) {
77 QCoreApplication* qcapp = QApplication::instance();
78 if(QApplication::startingUp() || qcapp==0) {
79 qcapp =
new QApplication(argc, argv);
82 QApplication* qapp =
dynamic_cast<QApplication*
>(qcapp);
91 qapp =
new QApplication(argc, argv);
99 static QApplication*
init( ) {
106 return app()->exec();
112 app()->exit(returnCode);
118 if(!QApplication::startingUp())
delete QApplication::instance();
125 return !QApplication::startingUp() &&
126 dynamic_cast<QApplication*
>(QApplication::instance())!=0;
133 return exists() &&
app()->thread()->isRunning();
static QApplication * init()
Another name for app() that may be clearer during initialization....
static QApplication * app()
Return the program's [unique] QApplication object, creating it if it doesn't yet exist.
static casacore::Int exec()
Enter the QApp's event loop.
static void exit(casacore::Int returnCode=0)
Exit the QApp's event loop.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
static casacore::Bool isInLoop()
Is the QApp executing its event loop? (In many cases, caller probably ought to know this already...
bool Bool
Define the standard types used by Casacore.
static casacore::Bool exists()
If true, a full-fledged QApplication has been created (though it may not necessarily be executing its...
Management of the QApp object needed by any Qt application.
static void destroy()
Call when completely finished with Qt, if you're a stickler for cleanup.