myModelWidgets.append(aDblWgt);
- // Init default values
- if (!myOperation->isEditOperation())
- aDblWgt->storeValue(myOperation->feature());
return aDblWgt->getControl();
}
myModelWidgets.append(aBoolWgt);
- // Init default values
- if (!myOperation->isEditOperation())
- aBoolWgt->storeValue(myOperation->feature());
return aBoolWgt->getControl();
}
\ No newline at end of file
QWidget* aContent = myPropertyPanel->contentWidget();
qDeleteAll(aContent->children());
aFactory.createWidget(aContent);
+
+ // Init default values
+ if (!aOperation->isEditOperation()) {
+ QList<ModuleBase_ModelWidget*> aWidgets = aFactory.getModelWidgets();
+ QList<ModuleBase_ModelWidget*>::const_iterator anIt = aWidgets.begin(), aLast = aWidgets.end();
+ for (; anIt != aLast; anIt++) {
+ (*anIt)->storeValue(aOperation->feature());
+ }
+ }
+
myPropertyPanel->setModelWidgets(aFactory.getModelWidgets());
myPropertyPanel->setWindowTitle(aOperation->getDescription()->description());
}