FeaturePtr aFeature = theOperation->feature();
std::shared_ptr<SketchPlugin_Feature> aSPFeature =
std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
- if (aSPFeature && (myRestartingMode == RM_LastFeatureUse ||
- myRestartingMode == RM_LastFeatureUse)) {
+ if (aSPFeature && (myRestartingMode == RM_LastFeatureUsed ||
+ myRestartingMode == RM_EmptyFeatureUsed)) {
myLastOperationId = theOperation->id();
- myLastFeature = myRestartingMode == RM_LastFeatureUse ? theOperation->feature() : FeaturePtr();
+ myLastFeature = myRestartingMode == RM_LastFeatureUsed ? theOperation->feature() : FeaturePtr();
launchOperation(myLastOperationId);
}
breakOperationSequence();
void PartSet_Module::onEnterReleased()
{
- myRestartingMode = RM_LastFeatureEmpty;
+ myRestartingMode = RM_EmptyFeatureUsed;
}
void PartSet_Module::onNoMoreWidgets()
std::shared_ptr<SketchPlugin_Feature> aSPFeature =
std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
if (aSPFeature) {
- if (myRestartingMode != RM_ForbidRestarting)
- myRestartingMode = RM_LastFeatureUse;
+ if (myRestartingMode != RM_Forbided)
+ myRestartingMode = RM_LastFeatureUsed;
aOperation->commit();
}
}
ModuleBase_IPropertyPanel* aPanel = aOperation->propertyPanel();
const QList<ModuleBase_ModelWidget*>& aWidgets = aPanel->modelWidgets();
if (aWidgets.last() == aPanel->activeWidget()) {
- myRestartingMode = RM_ForbidRestarting;
+ myRestartingMode = RM_Forbided;
}
}
}
/// Enumeration to specify the restart operation properties.
enum RestartingMode {
RM_None, /// the operation should not be restarted
- RM_ForbidRestarting, /// the operation should not be restarted after there is no active widget
- RM_LastFeatureUse, /// the operation is restarted and use the previous feature for own initialization
- RM_LastFeatureEmpty /// the operation is restarted and does not use the previous feature
+ RM_Forbided, /// the operation should not be restarted after there is no active widget
+ RM_LastFeatureUsed, /// the operation is restarted and use the previous feature for own initialization
+ RM_EmptyFeatureUsed /// the operation is restarted and does not use the previous feature
};
public: