15 #if !defined(Q_MOC_RUN)
26 #include <QGridLayout>
38 const Qt::WindowFlags& flags = 0);
44 virtual void setupGui(
const std::set<makVrv::DtUniqueID>& data)
override;
45 virtual QSize canvasSize()
override;
51 std::set<makVrv::DtUniqueID>::const_iterator iter = data.begin();
53 std::vector<DtString> props;
55 myProperty.tokenize(
';', props);
67 if (myDefaultPlatformFile.length())
69 DtEntityType objectType;
71 myIgnoreMaximum =
true;
73 objectType = myDefaultPlatformFile.c_str();
75 if (objectType != DtEntityType())
86 myUsingGeneric =
true;
92 if (myInvalidSelectionLabel)
94 delete myInvalidSelectionLabel;
95 myInvalidSelectionLabel = 0;
98 bool allAggregate =
true;
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();
235 virtual bool isValidFor(
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:63
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...
virtual void statePropertiesFor(DtSimObjectReference ref, DtRwProperties &) const
Returns the rolled up state properties or the state properties for the individual (if this is not a p...
DtString myProperty
Definition: setStatePropertyDialog.h:247
Definition: taskSetDialogInterface.h:82
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...
virtual void parameterData(DtSimObjectReference ref, DtRwProperties &) const
Given the state, if the state is an aggregate and has subordinates, return a total of all the paramet...
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 void statePropertiesForPlatform(const DtString &, DtRwProperties &) const
Returns a copy of the state properties for the given platform, if it exists.
static DtVrfGuiSimObjectManager & instance(makVrv::DtDe &)
[vrfGuiSimObjectManager instanceDefinition]
Sets up the set dialog to be able to change all state properties. If multiple items are selected only...
Definition: setStatePropertyDialog.h:32
class DtSimStatement:
Definition: simStatement.h:38
virtual DtSimObjectReference lookup(makVrv::DtUniqueID) const
[vrfGuiSimObjectManager instanceDefinition]
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:76
void setupProperties(const std::set< makVrv::DtUniqueID > &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
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.
const DtStatePropertiesStateComponent * currentFrameStatePropertiesStateComponent() const
Definition: stateDataWrapper.h:373