MAK Data Logger API Documentation for DIS
lgrAppGui.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef lgrAppGui_H_
11 #define lgrAppGui_H_
12 
13 #include "lgrGui.h"
14 
15 #include "lgrAppGuiEvent.h"
16 
17 #include <QtCore/QString>
18 
19 #include <lgrAppGuiInterface.h>
20 #include <virtualConstructor.h>
21 #include <vlutil/vlSmartPointers.h>
22 
23 #include <list>
24 
25 class QApplication;
26 
27 namespace MAKLogger
28 {
29 
30  class DtLgrAppGuiEvent;
31  class DtLgrGuiComponent;
32  class DtLgrGuiModel;
33  class DtLgrMainWindow;
34  class DtLgrSlots;
35  class DtLoggerApplication;
36 
40  {
41 
42  public:
43  static DtLgrAppGui* getQtGui(DtLoggerApplication&);
44 
45  //\brief Constructor that creates a QApplications and sets qApp.
47 
49 
50 
51  virtual ~DtLgrAppGui();
52 
54  virtual void launchHelp(const char* helpFile);
55 
57  virtual void setTranslations(const char* translationFile);
58 
60  virtual void setProtocol(const char* protocol);
61 
63  virtual void run();
64 
66  virtual void stop();
67 
69  DtLgrGuiModel* model();
70 
72  DtLgrMainWindow* mainWindow();
73 
75  DtLoggerApplication* application();
76 
78  QObject* eventHandler();
79 
83  virtual void postEvent(DtLgrAppGuiEvent* event);
84 
86 
88 
89  virtual const DtLgrFullInterface* fullInterface() const;
91 
93  virtual const DtString& languageSelection() const;
94 
95  protected:
96 
97  static void messageOutput( QtMsgType type, const char *msg );
98 
99  void addDefaultComponents();
100 
105 
107  DtString myProtocol;
108 
110 
111  typedef std::list<DtLgrAppGuiEvent*> EventList;
113  };
114 
115  typedef DtBoost::shared_ptr<DtLgrAppGui> DtLgrAppGuiSP;
116 }
117 
118 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)