1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_LockApplyMgr.h
4 // Created: 25 Jun 2015
5 // Author: Natalia Ermolaeva
7 #ifndef PartSet_LockApplyMgr_H
8 #define PartSet_LockApplyMgr_H
14 class ModuleBase_IWorkshop;
15 class XGUI_OperationMgr;
19 * Customosation of ModuleBase_WidgetShapeSelector in order to provide
20 * working with sketch specific objects.
22 class PARTSET_EXPORT PartSet_LockApplyMgr : public QObject
28 /// \param theParent a parent object
29 /// \param theWorkshop a reference to workshop
30 PartSet_LockApplyMgr(QObject* theParent,
31 ModuleBase_IWorkshop* theWorkshop);
33 virtual ~PartSet_LockApplyMgr() {}
35 /// Activates the object
38 /// Deactivates the object
41 /// Unlocks validation in operations manager
45 /// Set lock validating in the operation manager. Set apply is disabled
46 void onLockValidating();
48 /// Set unlock validating in the operation manager. Call method to update the apply state.
49 void onUnlockValidating();
52 XGUI_OperationMgr* operationMgr() const;
55 ModuleBase_IWorkshop* myWorkshop; // the current application workshop