#include <XGUI_Constants.h>
#include <XGUI_PropertyPanel.h>
-#include <ModuleBase_PropPanelOperation.h>
-
#include <QWidget>
#include <QVBoxLayout>
#include <QFrame>
{
}
-void XGUI_PropertyPanel::setModelWidgets(const QList<ModuleBase_IModelWidget*>& theWidgets)
+void XGUI_PropertyPanel::setModelWidgets(const QList<ModuleBase_ModelWidget*>& theWidgets)
{
myWidgets = theWidgets;
}
return myCustomWidget;
}
-void XGUI_PropertyPanel::updateContentWidget()
+void XGUI_PropertyPanel::updateContentWidget(boost::shared_ptr<ModelAPI_Feature> theFeature)
{
- foreach(ModuleBase_IModelWidget* eachWidget, myWidgets) {
- eachWidget->restoreValue();
+ foreach(ModuleBase_ModelWidget* eachWidget, myWidgets) {
+ eachWidget->restoreValue(theFeature);
}
+ // the repaint is used here to immediatelly react in GUI to the values change.
+ repaint();
}