![]() |
VR-Forces 4.0.4 Class Documentation
|
This class provides a way of getting the QApplication for a DisplayEngine. More...

Public Member Functions | |
| virtual | ~DtQApplicationProvider () |
| Virtual Destructor. | |
| QApplication * | qAppInstance () |
| Return a QApplication* creating one if it doesn't exist. | |
| virtual void | setQAppInstance (QApplication *app) |
| User override of qApp. | |
Static Public Member Functions | |
| static DtQApplicationProvider & | instance (DtDe &de) |
| Get the instance of a DtQApplicationProvider. | |
| static void | registerInstance (DtDe &de, DtQApplicationProvider *instance) |
| Register the provider with a DtDe. | |
Protected Member Functions | |
| DtQApplicationProvider (DtDe &de) | |
| Constructor, use the instance function to. | |
| virtual void | installEventListener () |
| On MS Windows this call installs a low level even listener. | |
| virtual void | installTranslators () |
| Install translators from the languages install directory. | |
| virtual void | installFont () |
| Installs the system wide font. | |
Static Protected Member Functions | |
| static bool | customControlFilter (void *message, long *result) |
| NOTE: non-reentrant. | |
Protected Attributes | |
| DtDe & | myDe |
| QApplication * | myQApp |
| int | argc |
| char ** | argv |
| bool | myDestroyQApp |
| std::vector< QTranslator * > | myTranslators |
This class provides a way of getting the QApplication for a DisplayEngine.
| virtual makVrv::DtQApplicationProvider::~DtQApplicationProvider | ( | ) | [virtual] |
Virtual Destructor.
| makVrv::DtQApplicationProvider::DtQApplicationProvider | ( | DtDe & | de | ) | [protected] |
Constructor, use the instance function to.
| static DtQApplicationProvider& makVrv::DtQApplicationProvider::instance | ( | DtDe & | de | ) | [static] |
Get the instance of a DtQApplicationProvider.
| static void makVrv::DtQApplicationProvider::registerInstance | ( | DtDe & | de, |
| DtQApplicationProvider * | instance | ||
| ) | [static] |
Register the provider with a DtDe.
Return a QApplication* creating one if it doesn't exist.
If a QApplication is created, it will be destroyed when this provider is destroyed (at the end of the lifetime of the DtDe instance that created it).
| virtual void makVrv::DtQApplicationProvider::setQAppInstance | ( | QApplication * | app | ) | [virtual] |
User override of qApp.
| virtual void makVrv::DtQApplicationProvider::installEventListener | ( | ) | [protected, virtual] |
On MS Windows this call installs a low level even listener.
If this is not desired behavior subclass and override this function to be a NO-OP.
| virtual void makVrv::DtQApplicationProvider::installTranslators | ( | ) | [protected, virtual] |
Install translators from the languages install directory.
All installed translators MUST be added to the myTranslators member so they are properly removed and deallocated during destruction.
| virtual void makVrv::DtQApplicationProvider::installFont | ( | ) | [protected, virtual] |
Installs the system wide font.
By default uses the font found in the font manager
| static bool makVrv::DtQApplicationProvider::customControlFilter | ( | void * | message, |
| long * | result | ||
| ) | [static, protected] |
NOTE: non-reentrant.
DtDe& makVrv::DtQApplicationProvider::myDe [protected] |
QApplication* makVrv::DtQApplicationProvider::myQApp [protected] |
int makVrv::DtQApplicationProvider::argc [protected] |
char** makVrv::DtQApplicationProvider::argv [protected] |
bool makVrv::DtQApplicationProvider::myDestroyQApp [protected] |
std::vector<QTranslator*> makVrv::DtQApplicationProvider::myTranslators [protected] |