VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfGuiCoreQt
DtFormationSelectionEntryWidget.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include <
vrfGuiCoreQt/DtTaskSetVariableWidget.h
>
14
#include <
vrvCore/DtSimEntry.h
>
15
16
class
QLabel
;
17
class
QHBoxLayout;
18
class
QComboBox
;
19
class
QStringList;
20
21
namespace
makVrf
22
{
24
class
DT_DLL_VRFGUICOREQT
DtFormationSelectionEntryWidget
:
public
DtTaskSetVariableWidget
25
{
26
public
:
27
DtFormationSelectionEntryWidget
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
28
29
//DTOR
30
virtual
~
DtFormationSelectionEntryWidget
();
31
33
virtual
void
setLabel(
const
std::string&);
34
36
virtual
void
setRange(
double
bottom,
double
top);
37
39
virtual
void
setDefaultValue(
const
std::string&);
40
42
virtual
void
setVariableData(
const
std::string&);
43
45
virtual
void
setupFrom(
const
std::vector<makVrv::DtSimEntry*>& data);
46
48
virtual
std::string formation()
const
;
49
51
virtual
DtReaderWriter
* createBoundVariable(
const
std::string& variableName);
52
54
virtual
void
setupFromBoundVariable(
const
DtReaderWriter
* variableName);
55
56
static
makVrv::DtUnicode
codeVariableType()
57
{
58
return
makVrv::DtUnicode::tr
(
"String (formation name)"
);
59
}
60
61
protected
:
62
virtual
void
merge(
const
std::vector<std::string>&, QStringList&)
const
;
63
67
virtual
void
slot_receivedFormations(
const
std::string&);
68
69
public
:
70
QLabel
*
myFormationLabel
;
71
QComboBox
*
myFormations
;
72
QHBoxLayout*
myContentLayout
;
73
QString
myDefaultValue
;
74
75
protected
:
76
typedef
std::map<std::string, makVrv::DtSimEntry*>
AwaitingFormations
;
77
AwaitingFormations
myAwaitingFormations
;
78
};
79
80
typedef
DtTaskSetVariableWidgetCreator<DtFormationSelectionEntryWidget>
DtFormationSelectionEntryWidgetCreator
;
81
}
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
)