MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrGui
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
39
class
DT_DLL_LGRGUI
DtLgrAppGui
:
public
DtLgrAppGuiInterface
40
{
41
42
public
:
43
static
DtLgrAppGui
* getQtGui(
DtLoggerApplication
&);
44
45
//\brief Constructor that creates a QApplications and sets qApp.
46
DT_VIRTUAL_CTR
(
DtLgrAppGui
,(
DtLoggerApplication
*))
47
48
DT_VIRTUAL_BASE_CTR
(
DtLgrAppGuiInterface
,(
DtLoggerApplication
*))
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
101
DtLgrGuiModel
*
myModel
;
102
DtLgrMainWindow
*
myMainWindow
;
103
DtLgrSlots
*
mySlots
;
104
DtLoggerApplication
*
myLoggerApp
;
105
106
DtString
myLanguageSelection
;
107
DtString
myProtocol
;
108
109
bool
myRunningFlag
;
110
111
typedef
std::list<DtLgrAppGuiEvent*>
EventList
;
112
EventList
myQueuedEvents
;
113
};
114
115
typedef
DtBoost::shared_ptr<DtLgrAppGui>
DtLgrAppGuiSP
;
116
}
117
118
#endif
Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)