VR-Forces 4.3.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCoreQt
DtAddTerrainPatchDialog.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtAddTerrainPatchDialog.h,v $ $Revision: 1.13 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtAddTerrainPatchDialog_H_
14
#define DtAddTerrainPatchDialog_H_
15
16
#include <
vrvCoreQt/vrvCoreQt.h
>
17
#include <
vrvCoreQt/DtAddTerrainPatchInterface.h
>
18
#include <
vrvCore/DtDe.h
>
19
#include <QtGui/QDialog>
20
21
class
QLineEdit
;
22
class
QLabel
;
23
class
QComboBox
;
24
class
QPushButton
;
25
class
QValidator
;
26
class
QCheckBox
;
27
28
namespace
makVrv
29
{
30
class
DtAddTerrainPatchLogic;
31
34
class
DT_DLL_VRVCOREQT
DtAddTerrainPatchDialog
35
:
public
QDialog
36
,
DtAddTerrainPatchInterface
37
{
38
39
Q_OBJECT;
40
41
public
:
42
44
DtAddTerrainPatchDialog
(
DtDe
& de,
QWidget
* parent, Qt::WindowFlags f = Qt::Tool);
45
47
virtual
~
DtAddTerrainPatchDialog
();
48
49
virtual
void
displayErrorMessage(
ErrorMessage
msg);
50
52
virtual
void
setFileLabel(
const
std::string& filePath);
53
55
virtual
void
setCoordSystemComboBox(
TerrainCoordinateSystemEnum
index);
56
58
virtual
void
setCoordSystemParams(
const
std::string& params );
59
61
void
virtual
setOkEnabled(
bool
flag);
62
63
public
slots:
64
67
bool
onBrowseClicked();
68
70
virtual
void
onOkClicked();
71
73
virtual
void
onCancelClicked();
74
76
virtual
void
onCoordSysComboChanged(
int
index);
77
79
virtual
void
onDdsFlipChanged(
int
checkState);
80
81
82
83
// This would be nice to have in a Qt utility lib someplace. It doesn't belong in the
84
// FileExtensionManager, because it really is building a *QT* file filter.
85
//
86
92
static
QString fileFilter(
DtDe
& de,
const
std::string& dialogType,
93
const
QString& allSpecifiedString,
bool
includeGlobal );
94
95
protected
:
96
98
void
setupGui();
99
100
protected
:
101
102
DtDe
&
myDe
;
103
DtAddTerrainPatchLogic
*
myLogic
;
104
QLineEdit
*
myFilenameLabel
;
105
QComboBox
*
myCoordSysCombo
;
106
QLineEdit
*
myCoordSysParamsEdit
;
107
QPushButton
*
myOkButton
;
108
QPushButton
*
myCancelButton
;
109
QValidator
*
myUtmValidator
;
110
QValidator
*
myFlatEarthValidator
;
111
QValidator
*
myOriginOffsetValidator
;
112
QValidator
*
myLambertValidator
;
113
QLabel
*
myParamInstructions
;
114
QCheckBox
*
myDdsFlipCheckbox
;
115
};
116
}
117
118
#endif
119
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)