VR-Forces 4.5 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
vrfGuiCoreQt
setStateResourcesPropertyDialog.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
11
12
13
#pragma once
14
15
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
16
#include <
vrfGuiCoreQt/setStatePropertyDialog.h
>
17
#include <
vrfGuiCoreQt/setStatePacingTrackingDialog.h
>
18
19
#include <
vrfutil/rwProperties.h
>
20
21
class
QSlider;
22
class
DtRwPropertiesMap
;
23
24
namespace
makVrf
25
{
26
struct
DtVrlinkSimulatedAggregateState;
27
30
class
DT_DLL_VRFGUICOREQT
DtSetStateResourcesPropertyDialog
:
public
DtSetStatePropertyDialog
31
{
32
Q_OBJECT
33
public
:
34
//CTOR
35
DtSetStateResourcesPropertyDialog
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
36
37
//DTOR
38
virtual
~
DtSetStateResourcesPropertyDialog
();
39
40
protected
:
41
42
protected
:
43
44
struct
ResourceValue
45
{
46
ResourceValue
() : rootProperty(
""
), amountItem(0), val(0) {};
47
ResourceValue
(
const
ResourceValue
& orig) :
48
rootProperty(orig.rootProperty), rootItem(orig.rootItem), amountItem(0), val(0) {};
49
50
QSlider* slider;
51
DtRwPropertyReal
rootProperty
;
52
PropertyItem
rootItem
;
53
DtReaderWriter
*
amountItem
;
54
double
val
;
55
};
56
58
typedef
std::map<std::string, ResourceValue>
ResourceValueMap
;
59
60
protected
:
62
virtual
void
setupGui(
const
std::vector<makVrv::DtSimEntry*>& data);
63
65
virtual
void
addResourcesItem(
DtVrlinkSimulatedAggregateState
*);
66
68
virtual
void
extractValues(
DtReaderWriter
*,
ResourceValueMap
& map);
69
70
virtual
void
modifyStateProperty();
71
73
virtual
void
sendRequest();
74
76
virtual
void
setupStatement(
const
DtSimStatement
* stmt);
77
78
protected
slots:
80
virtual
void
totalChanged();
81
82
protected
:
83
ResourceValueMap
myBaseValues
;
84
ResourceValueMap
myCurrentValues
;
85
};
86
87
class
DT_DLL_VRFGUICOREQT
DtSetStateResourcesPropertyDialogCreator
:
public
DtSetStatePropertyDialogCreator
88
{
89
public
:
90
DtSetStateResourcesPropertyDialogCreator
(
makVrv::DtDe
&);
91
DtSetStateResourcesPropertyDialogCreator
(
makVrv::DtDe
&,
const
DtString
& prop);
92
virtual
DtTaskSetDialogInterface
* create(
makVrv::DtDe
&,
QWidget
* parent);
93
virtual
bool
isValidFor(
makVrv::DtDe
& de,
const
makVrv::DtSelectionManager::IdSet
& ids,
int
partOfPlanDialog)
const
;
94
95
protected
:
97
virtual
bool
hasAValidResource(
const
DtRwPropertiesMap
*)
const
;
98
};
99
100
class
DT_DLL_VRFGUICOREQT
DtSetStateResourcesPacingTrackingDialogCreator
:
public
DtSetStatePacingTrackingDialogCreator
101
{
102
public
:
103
DtSetStateResourcesPacingTrackingDialogCreator
(
makVrv::DtDe
&,
const
DtString
& prop);
104
virtual
bool
isValidFor(
makVrv::DtDe
& de,
const
makVrv::DtSelectionManager::IdSet
& ids,
int
partOfPlanDialog)
const
;
105
};
106
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)