22 #include <QGridLayout>
34 const Qt::WindowFlags& flags = 0);
40 virtual void setupGui(
const std::vector<makVrv::DtSimEntry*>& data);
41 virtual QSize canvasSize();
45 template<
typename StateType>
46 void setupGui(
const std::vector<makVrv::DtSimEntry*>& data)
50 std::vector<makVrv::DtSimEntry*>::const_iterator iter = data.begin();
52 std::vector<DtString> props;
54 myProperty.tokenize(
';', props);
58 bool allAggregate =
true;
66 if (myDefaultPlatformFile.length())
70 myIgnoreMaximum =
true;
72 objectType = myDefaultPlatformFile.c_str();
85 myUsingGeneric =
true;
91 if (myInvalidSelectionLabel)
93 delete myInvalidSelectionLabel;
94 myInvalidSelectionLabel = 0;
97 while (iter != data.end())
101 allAggregate =
false;
116 while (iter != data.end())
120 if (iter == data.begin())
138 StateType* state = findStateFor<StateType*>(*iter);
142 if (iter == data.begin())
144 myStateProperties = state->myStateProperties;
158 if (myStateProperties.registry().registryData().size())
160 int iLimit = props.size();
162 for (i = 0; i < iLimit; i++)
164 DtString propString(props[i].c_str());
165 bool hasStar =
false;
168 if (propString[0] ==
'+')
170 propString =
DtString(&propString.c_str()[1], propString.length() - 1);
173 QString propStr(propString.c_str());
175 if ((index = propStr.indexOf(
'*')) == propStr.length() - 1)
181 DtReaderWriter* rw = myStateProperties.findVariableBinding(propStr.toStdString().c_str());
186 if (hasMoreThanDefaultValueInRegistry(rw))
188 myScrollArea->setFrameShape(QFrame::NoFrame);
196 if(myPropertyItems.size() == 0)
199 setupGuiWhenSelectionInvalid();
204 setupGuiWhenNoSelection();
210 virtual void setupGuiWhenNoSelection();
214 virtual void setupGuiWhenSelectionInvalid();
233 int partOfPlanDialog)
const;