VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtQApplicationProvider.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvCoreQt/vrvCoreQt.h>
13 
14 class QApplication;
15 class QTranslator;
16 
17 namespace makVrv
18 {
19 
20  class DtDe;
21 
26  {
27 
28  public:
29 
31  virtual ~DtQApplicationProvider();
32 
34  static DtQApplicationProvider& instance(DtDe& de);
35 
37  static void registerInstance(DtDe& de, DtQApplicationProvider* instance);
38 
43  QApplication* qAppInstance();
44 
46  virtual void setQAppInstance(QApplication* app);
47 
48  protected:
49 
52 
56  virtual void installEventListener();
57 
61  virtual void installTranslators();
62 
65  virtual void installFont();
66 
68  static bool customControlFilter(void* message,long* result);
69 
72  int argc;
73  char **argv;
75 
76  std::vector<QTranslator*> myTranslators;
77 
78  };
79 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)