ModuleBase_WidgetPoint2D* aPointWidget = dynamic_cast<ModuleBase_WidgetPoint2D*>(*anIt);
if (aPointWidget)
- connect(aPointWidget, SIGNAL(storedPoint2D(FeaturePtr, const std::string&)),
- this, SIGNAL(storedPoint2D(FeaturePtr, const std::string&)));
+ connect(aPointWidget, SIGNAL(storedPoint2D(ObjectPtr, const std::string&)),
+ this, SIGNAL(storedPoint2D(ObjectPtr, const std::string&)));
}
ModuleBase_ModelWidget* aLastWidget = theWidgets.last();
if (aLastWidget) {
void XGUI_PropertyPanel::updateContentWidget(FeaturePtr theFeature)
{
foreach(ModuleBase_ModelWidget* eachWidget, myWidgets) {
- eachWidget->restoreValue(theFeature);
+ eachWidget->setFeature(theFeature);
+ eachWidget->restoreValue();
}
// the repaint is used here to immediatelly react in GUI to the values change.
repaint();
}
emit widgetActivated(aNextWidget);
}
+
+void XGUI_PropertyPanel::setAcceptEnabled(bool isEnabled)
+{
+ QPushButton* anOkBtn = findChild<QPushButton*>(XGUI::PROP_PANEL_OK);
+ anOkBtn->setEnabled(isEnabled);
+}