VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtQApplicationProvider.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2007 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtQApplicationProvider.h,v $ $Revision: 1.16 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #pragma once
00014 #include <vrvCoreQt/vrvCoreQt.h> 
00015 #include <vrvUtil/DtVirtualBaseClass.h> 
00016  
00017 class QApplication;
00018 class QTranslator;
00019 
00020 namespace makVrv 
00021 { 
00022 
00023    class DtDe;
00024 
00028    class DT_DLL_VRVCOREQT DtQApplicationProvider : public DtVirtualBaseClass
00029    { 
00030 
00031    public:
00032 
00034       virtual ~DtQApplicationProvider();
00035 
00037       static DtQApplicationProvider& instance(DtDe& de);
00038 
00040       static void registerInstance(DtDe& de, DtQApplicationProvider* instance);
00041 
00046       QApplication* qAppInstance();
00047 
00049       virtual void setQAppInstance(QApplication* app);
00050 
00051    protected:
00052 
00054       DtQApplicationProvider(DtDe& de);
00055 
00059       virtual void installEventListener();
00060 
00064       virtual void installTranslators();      
00065 
00068       virtual void installFont();
00069 
00071       static bool customControlFilter(void* message,long* result);    
00072 
00073       DtDe& myDe;
00074       QApplication* myQApp;
00075       int argc;
00076       char **argv;
00077       bool myDestroyQApp;
00078 
00079       std::vector<QTranslator*> myTranslators;
00080 
00081    }; 
00082 } 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)