ObjectPtr Model_Objects::object(const std::string& theGroupID, const int theIndex)
{
createHistory(theGroupID);
+ //TODO: mpv stabilization hotfix
+ if (myHistory[theGroupID].size() <= theIndex)
+ return ObjectPtr();
return myHistory[theGroupID][theIndex];
}
{
}
+ //TODO: nds stabilization hotfix
+ virtual void disconnectSignals() {};
+
/// Fills the widget with default values
virtual void reset() {};
emit triggered(theState);
}
+//TODO: nds stabilization hotfix
+void ModuleBase_Operation::commitOperation()
+{
+ if(!myPropertyPanel) {
+ return;
+ }
+ ModuleBase_ModelWidget* aWidget = myPropertyPanel->activeWidget();
+ if (aWidget)
+ aWidget->disconnectSignals();
+}
+
void ModuleBase_Operation::activateByPreselection()
{
if (!myPropertyPanel || myPreSelection.empty()) {
virtual void abortOperation() {}
/// Virtual method called when operation committed (see commit() method for more description)
- virtual void commitOperation() {}
+ virtual void commitOperation();
/// Virtual method called after operation committed (see commit() method for more description)
virtual void afterCommitOperation() {}
delete myShapeValidator;
}
+//TODO: nds stabilization hotfix
+void ModuleBase_WidgetMultiSelector::disconnectSignals()
+{
+ disconnect(myWorkshop, SIGNAL(selectionChanged()), this, SLOT(onSelectionChanged()));
+}
+
//********************************************************************
void ModuleBase_WidgetMultiSelector::activateCustom()
{
const std::string& theParentId);
virtual ~ModuleBase_WidgetMultiSelector();
+ //TODO: nds stabilization hotfix
+ virtual void disconnectSignals();
+
virtual bool restoreValue();
/// Returns list of widget controls