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
61
virtual
void
setConnectionDialog(
QDialog
* connectDialog);
62
virtual
QDialog
* connectionDialog();
64
66
virtual
bool
isConnectionDialogHidden()
const
;
67
69
virtual
void
raiseConnectionDialog();
70
72
virtual
void
setProtocol(
const
char
* protocol);
73
75
virtual
void
run();
76
78
virtual
void
stop();
79
81
DtLgrGuiModel
* model();
82
84
DtLgrMainWindow
* mainWindow();
85
87
DtLoggerApplication
* application();
88
90
QObject
* eventHandler();
91
95
virtual
void
postEvent(
DtLgrAppGuiEvent
* event);
96
98
100
101
virtual
const
DtLgrFullInterface
* fullInterface()
const
;
102
virtual
DtLgrFullInterface
* fullInterface();
104
106
virtual
const
DtString& languageSelection()
const
;
107
108
protected
:
109
110
static
void
messageOutput( QtMsgType type,
const
char
*msg );
111
112
void
addDefaultComponents();
113
114
DtLgrGuiModel
*
myModel
;
115
DtLgrMainWindow
*
myMainWindow
;
116
DtLgrSlots
*
mySlots
;
117
DtLoggerApplication
*
myLoggerApp
;
118
QDialog
*
myConnectDialog
;
119
120
DtString
myLanguageSelection
;
121
DtString
myProtocol
;
122
123
bool
myRunningFlag
;
124
125
typedef
std::list<DtLgrAppGuiEvent*>
EventList
;
126
EventList
myQueuedEvents
;
127
};
128
129
typedef
DtBoost::shared_ptr<DtLgrAppGui>
DtLgrAppGuiSP
;
130
}
131
132
#endif
Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)