15 #if !defined(Q_MOC_RUN)
25 #include <QGridLayout>
37 const Qt::WindowFlags& flags = 0);
43 virtual void setupGui(
const std::vector<makVrv::DtSimEntry*>& data);
44 virtual QSize canvasSize();
48 template<
typename StateType>
49 void setupGui(
const std::vector<makVrv::DtSimEntry*>& data)
53 std::vector<makVrv::DtSimEntry*>::const_iterator iter = data.begin();
55 std::vector<DtString> props;
57 myProperty.tokenize(
';', props);
61 bool allAggregate =
true;
69 if (myDefaultPlatformFile.length())
73 myIgnoreMaximum =
true;
75 objectType = myDefaultPlatformFile.c_str();
88 myUsingGeneric =
true;
94 if (myInvalidSelectionLabel)
96 delete myInvalidSelectionLabel;
97 myInvalidSelectionLabel = 0;
100 while (iter != data.end())
104 allAggregate =
false;
119 while (iter != data.end())
123 if (iter == data.begin())
141 StateType* state = findStateFor<StateType*>(*iter);
145 if (iter == data.begin())
147 myStateProperties = state->myStateProperties;
161 if (myStateProperties.registry().registryData().size())
163 int iLimit = props.size();
165 for (i = 0; i < iLimit; i++)
167 DtString propString(props[i].c_str());
168 bool hasStar =
false;
171 if (propString[0] ==
'+')
173 propString =
DtString(&propString.c_str()[1], propString.length() - 1);
176 QString propStr(propString.c_str());
178 if ((index = propStr.indexOf(
'*')) == propStr.length() - 1)
184 DtReaderWriter* rw = myStateProperties.findVariableBinding(propStr.toStdString().c_str());
189 if (hasMoreThanDefaultValueInRegistry(rw))
191 myScrollArea->setFrameShape(QFrame::NoFrame);
199 if(myPropertyItems.size() == 0)
202 setupGuiWhenSelectionInvalid();
207 setupGuiWhenNoSelection();
213 virtual void setupGuiWhenNoSelection();
217 virtual void setupGuiWhenSelectionInvalid();
236 int partOfPlanDialog)
const;
QLabel * myInvalidSelectionLabel
Label displaying text indicating currently selected simulation objects are not valid for this propert...
Definition: setStatePropertyDialog.h:223
DtString myDefaultPlatformFile
Definition: setStatePropertyDialog.h:248
Definition: taskSetDialogInterface.h:64
virtual void statePropertiesFor(const makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *, DtRwProperties &) const
Returns the rolled up state properties or the state properties for the individual (if this is not a p...
SpecificRwType * addProperty(DtReaderWriter &properties, const DtString &propertyName)
Adds a property with the specified name to the given set of properties.
DtString myProperty
Definition: setStatePropertyDialog.h:247
Definition: taskSetDialogInterface.h:83
Definition: readerWriter.h:85
*virtual const DtObjectType & objectType() const
virtual void parameterPropertiesFor(const DtEntityType &, DtRwProperties &)
If there is parameter properties in the .ope file referenced by this entity, return them...
Definition: propertyInterface.h:57
virtual void statePropertiesFor(const DtEntityType &, DtRwProperties &) const
If there are state properties in the .ope file referenced by this entity, return them.
makVrv::DtDe & myDe
Definition: setStatePropertyDialog.h:249
static DtAggregateRollUpManager & instance(makVrv::DtDe &de)
Returns instance of the messager.
Interface class used to define minimal interface for a property.
Definition: propertyInterface.h:48
Definition: objectType.h:27
virtual bool hasStateProperties(makVrv::DtUniqueID) const
Returns true if the aggregate with the given unique ID has, or has any subordinates with...
This class is the base for setting state properties.
Definition: setStatePropertiesDialog.h:76
Definition: setStatePropertyDialog.h:226
virtual void setupGui(const std::vector< makVrv::DtSimEntry * > &data)
Initializes state and parameter data based on selection.
virtual void statePropertiesForPlatform(const DtString &, DtRwProperties &) const
Returns a copy of the state properties for the given platform, if it exists.
virtual void parameterData(makVrv::DtStateView< makVrv::DtVrlinkSimulatedBaseState > *, DtRwProperties &) const
Given the state, if the state is an aggregate and has subordinates, return a total of all the paramet...
Sets up the set dialog to be able to change all state properties.
Definition: setStatePropertyDialog.h:31
void setupGui(const std::vector< makVrv::DtSimEntry * > &data)
If there is a single entry, find it's location and convert to local to set.
Definition: setStatePropertyDialog.h:49
class DtSimStatement:
Definition: simStatement.h:35
Definition: DtTacticalGraphicUtilities.h:28
A list of properties.
Definition: rwProperties.h:126
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual void parameterPropertiesForPlatform(const DtString &, DtRwProperties &) const
Returns a copy of the parameter properties for the given platform, if it exists.
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32
static DtVrfModelSetManager & instance(makVrv::DtDe &de)
Returns instance of the messager.