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())
71 DtObjectType objectType;
73 myIgnoreMaximum =
true;
75 objectType = myDefaultPlatformFile.c_str();
77 if (objectType != DtObjectType())
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())
145 if (iter == data.begin())
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);
192 myScrollArea->setFrameShadow(QFrame::Plain);
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:65
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. SpecificRwType must be a subc...
DtString myProperty
Definition: setStatePropertyDialog.h:247
Definition: taskSetDialogInterface.h:84
Definition: readerWriter.h:85
virtual void parameterPropertiesFor(const DtEntityType &, DtRwProperties &)
If there is parameter properties in the .ope file referenced by this entity, return them...
Definition: propertyInterface.h:62
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. The DtPropertyInterface class provid...
Definition: propertyInterface.h:53
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. In and of itself it does not populate itself wit...
Definition: setStatePropertiesDialog.h:77
Definition: setStatePropertyDialog.h:226
virtual bool merge(const DtPropertyInterface &target, MergeFlags, const DtMergePath &path=DtMergePath(), const std::set< DtString > &ignore=std::set< DtString >())
Takes the contents of the supplied properties and merges with the following rules if replace is false...
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. If multiple items are selected only...
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. This version can be given...
Definition: setStatePropertyDialog.h:49
class DtSimStatement:
Definition: simStatement.h:38
DtRwProperties myStateProperties
Definition: vrfObjectDataState.h:108
A list of properties. A DtPropertyInterface object that is a specialized version of DtRwVariableBindi...
Definition: rwProperties.h:122
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
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.
Definition: vrfObjectDataState.h:87