VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsgEarthQt
DtOsgEarthStartupDialog.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtOsgEarthStartupDialog.h,v $ $Revision: 1.2 $ $State: Exp $
7
******************************************************************************/
8
11
12
#pragma once
13
14
#include <
vrvUtil/signalslib.h
>
15
#include <
vrvUtil/DtVirtualBaseClass.h
>
16
#include <
vrvOsgEarthQt/vrvOsgEarthQt.h
>
17
#include <
vrvOsgEarthQt/DtOsgEarthStartupDialogInterface.h
>
18
19
#include <QtGui/QDialog>
20
#include <QtGui/QPixmap>
21
22
class
QRadioButton;
23
class
QVBoxLayout;
24
class
QHBoxLayout;
25
class
QButton;
26
class
QCheckBox
;
27
class
QComboBox
;
28
class
QLabel
;
29
class
QGridLayout;
30
31
namespace
makVrv
32
{
33
class
DtDe;
34
class
DtOsgEarthStartupTitleBar;
35
40
class
DT_DLL_VRVOSGEARTHQT
DtOsgEarthStartupDialog
41
:
public
QDialog
42
,
public
DtOsgEarthStartupDialogInterface
43
{
44
Q_OBJECT
45
46
public
:
48
DtOsgEarthStartupDialog
(
DtDe
& de,
QWidget
* parent = 0,
49
const
Qt::WindowFlags& flags = 0);
50
52
virtual
~
DtOsgEarthStartupDialog
();
53
55
virtual
void
activate();
56
57
virtual
void
deactivate();
58
59
public
:
61
virtual
void
setServerAvailability(
62
const
std::string&,
ServerStatus
,
const
std::string& reason);
63
65
virtual
void
setCurrentServer(
const
std::string&);
66
68
virtual
void
addServer(
const
std::string& desc);
69
70
virtual
void
addTerrain(
const
std::string& desc);
71
73
virtual
void
setStartupPreference(
StartupPreference
);
74
76
virtual
void
setNeverShowAgain(
bool
neverShow);
77
79
virtual
void
showDialog();
80
82
virtual
void
clear();
83
84
protected
slots:
85
virtual
void
currentServerChanged();
86
87
virtual
void
serverComboActivated();
88
virtual
void
terrainComboActivated();
89
90
protected
:
92
void
setupGui();
93
95
virtual
void
accept();
96
97
virtual
void
reject();
98
100
virtual
void
paintEvent(QPaintEvent*);
101
103
void
setupServersGui();
104
106
void
setupTerrainGui();
107
108
public
:
109
QVBoxLayout*
myMainLayout
;
110
111
QLabel
*
myServerConnectIcon
;
112
QRadioButton*
myServerConnectButton
;
113
114
QLabel
*
myLocalTerrainIcon
;
115
QRadioButton*
myLocalTerrainButton
;
116
117
QLabel
*
myDoNothingIcon
;
118
QRadioButton*
myDoNothingButton
;
119
120
QLabel
*
myServerStatus
;
121
QLabel
*
myServersLabel
;
122
QComboBox
*
myServers
;
123
QGridLayout*
myServerLayout
;
124
125
QLabel
*
myTerrainsLabel
;
126
QComboBox
*
myTerrains
;
127
QGridLayout*
myTerrainLayout
;
128
129
QCheckBox
*
myNeverShowAgain
;
130
QPushButton
*
myOk
;
131
QHBoxLayout*
myButtonLayout
;
132
133
QImage
myStartupImage
;
134
135
protected
:
136
DtDe
&
myDe
;
137
DtVirtualBaseClass
*
myLogic
;
138
};
139
142
class
DT_DLL_VRVOSGEARTHQT
DtOsgEarthStartupDialogCreator
:
public
DtVirtualBaseClass
143
{
144
public
:
146
DtOsgEarthStartupDialogCreator
();
147
149
virtual
~
DtOsgEarthStartupDialogCreator
();
150
152
static
DtOsgEarthStartupDialogCreator
& instance(
DtDe
&);
153
155
static
void
registerInstance(
DtDe
&,
DtOsgEarthStartupDialogCreator
*);
156
158
virtual
DtOsgEarthStartupDialog
* create(
DtDe
&,
QWidget
* window = 0);
159
};
160
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)