VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvOsgEarthQt
DtOsgEarthSettingsWidget.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2012 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsgEarthQt/vrvOsgEarthQt.h
>
13
#include <
vrvOsgEarthQt/DtOsgEarthSettingsInterface.h
>
14
#include <QtGui/QWidget>
15
16
class
QPlainTextEdit;
17
class
QPushButton
;
18
class
QVBoxLayout;
19
class
QLabel
;
20
class
QHBoxLayout;
21
class
QGroupBox;
22
23
namespace
makVrv
24
{
25
26
class
DtOsgEarthSettingsLogic;
27
class
DtSelectInstanceWidget;
28
31
class
DT_DLL_VRVOSGEARTHQT
DtOsgEarthSettingsWidget
:
public
QWidget
,
32
public
DtOsgEarthSettingsInterface
33
{
34
35
Q_OBJECT
36
37
public
:
38
40
DtOsgEarthSettingsWidget
(
DtDe
& de,
QWidget
* parent );
41
43
virtual
~
DtOsgEarthSettingsWidget
();
44
45
49
51
virtual
void
setText(
const
std::string& desc);
52
54
virtual
void
addInstance(
const
std::string& name,
bool
select =
false
);
55
57
virtual
void
removeInstance(
const
std::string& name);
58
60
virtual
void
clearInstances();
61
63
64
public
slots:
65
69
71
virtual
void
onSaveClicked();
72
74
virtual
void
onCancelClicked();
75
77
78
protected
slots:
79
83
84
virtual
void
on_myContentsWidget_currentIndexChanged(
int
);
85
virtual
void
on_myContentsWidget_NewInstanceRequested();
86
virtual
void
on_myContentsWidget_DeleteInstanceRequested();
87
virtual
void
on_myContentsWidget_RenameInstanceRequested();
88
virtual
void
onTextChanged();
89
91
92
protected
:
93
96
void
setupGui();
97
98
int
saveOption();
99
100
protected
:
101
102
DtDe
&
myDe
;
103
104
DtOsgEarthSettingsLogic
*
myLogic
;
105
std::string
myContent
;
106
bool
myChanged
;
107
108
QVBoxLayout*
myMainLayout
;
109
QVBoxLayout*
myContentsLayout
;
110
QHBoxLayout*
myControlsLayout
;
111
112
DtSelectInstanceWidget
*
mySelectInstanceWidget
;
113
114
QPlainTextEdit*
myDescriptionText
;
115
QPushButton
*
mySaveButton
;
116
QPushButton
*
myCancelButton
;
117
118
};
119
120
}
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
)