MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
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/lgrGui.h
>
14
15
#include "
lgrAppGuiEvent.h
"
16
17
#include <QString>
18
19
#include <
lgrApp/lgrAppGuiInterface.h
>
20
#include <
lgrUtil/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
class
DtLgrConnectionDialog;
37
40
class
DT_DLL_LGRGUI
DtLgrAppGui
:
public
DtLgrAppGuiInterface
41
{
42
43
public
:
44
static
DtLgrAppGui
* getQtGui(
DtLoggerApplication
&);
45
46
//\brief Constructor that creates a QApplications and sets qApp.
47
DT_VIRTUAL_CTR
(
DtLgrAppGui
,(
DtLoggerApplication
*))
48
49
DT_VIRTUAL_BASE_CTR
(
DtLgrAppGuiInterface
,(
DtLoggerApplication
*))
50
51
52
virtual
~
DtLgrAppGui
();
53
55
virtual
void
launchHelp(
const
char
* helpFile);
56
58
virtual
void
setTranslations(
const
char
* translationFile);
59
61
62
virtual
void
setConnectionDialog(
DtLgrConnectionDialog
* connectDialog);
63
virtual
DtLgrConnectionDialog
* connectionDialog();
65
67
virtual
bool
isConnectionDialogHidden()
const
;
68
70
virtual
void
raiseConnectionDialog();
71
73
virtual
void
setWaitOnLoadReconnect();
74
76
virtual
void
setProtocol(
const
char
* protocol);
77
79
virtual
void
run();
80
82
virtual
void
stop();
83
85
DtLgrGuiModel
* model();
86
88
DtLgrMainWindow
* mainWindow();
89
91
DtLoggerApplication
* application();
92
94
QObject
* eventHandler();
95
99
virtual
void
postEvent(
DtLgrAppGuiEvent
* event);
100
102
104
105
virtual
const
DtLgrFullInterface
* fullInterface()
const
;
106
virtual
DtLgrFullInterface
* fullInterface();
108
110
virtual
const
DtString& languageSelection()
const
;
111
112
protected
:
113
114
static
void
messageOutput( QtMsgType type,
const
QMessageLogContext &context,
const
QString& msg );
115
116
void
addDefaultComponents();
117
118
DtLgrGuiModel
*
myModel
;
119
DtLgrMainWindow
*
myMainWindow
;
120
DtLgrSlots
*
mySlots
;
121
DtLoggerApplication
*
myLoggerApp
;
122
DtLgrConnectionDialog
*
myConnectionDialog
;
123
124
DtString
myLanguageSelection
;
125
DtString
myProtocol
;
126
127
bool
myRunningFlag
;
128
129
typedef
std::list<DtLgrAppGuiEvent*>
EventList
;
130
EventList
myQueuedEvents
;
131
};
132
133
typedef
DtBoost::shared_ptr<DtLgrAppGui>
DtLgrAppGuiSP
;
134
}
135
136
#endif
Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (
www.mak.com
)