Salome HOME
Fix for solids color changing after sketch modification
[modules/shaper.git] / src / PartSet / PartSet_LockApplyMgr.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        PartSet_LockApplyMgr.h
4 // Created:     25 Jun 2015
5 // Author:      Natalia Ermolaeva
6
7 #ifndef PartSet_LockApplyMgr_H
8 #define PartSet_LockApplyMgr_H
9
10 #include "PartSet.h"
11
12 #include <QObject>
13
14 class ModuleBase_IWorkshop;
15 class XGUI_OperationMgr;
16
17 /**
18 * \ingroup Modules
19 * Customosation of ModuleBase_WidgetShapeSelector in order to provide 
20 * working with sketch specific objects.
21 */
22 class PARTSET_EXPORT PartSet_LockApplyMgr : public QObject
23 {
24   Q_OBJECT
25
26 public:
27   /// Constructor
28   /// \param theParent a parent object
29   /// \param theWorkshop a reference to workshop
30   PartSet_LockApplyMgr(QObject* theParent,
31                        ModuleBase_IWorkshop* theWorkshop);
32
33   virtual ~PartSet_LockApplyMgr() {}
34
35   /// Activates the object
36   void activate();
37
38   /// Deactivates the object
39   void deactivate();
40
41   /// Unlocks validation in operations manager
42   void valuesChanged();
43
44 protected slots:
45   /// Set lock validating in the operation manager. Set apply is disabled
46   void onLockValidating();
47
48   /// Set unlock validating in the operation manager. Call method to update the apply state.
49   void onUnlockValidating();
50
51 private:
52   XGUI_OperationMgr* operationMgr() const;
53
54 private:
55   ModuleBase_IWorkshop* myWorkshop; // the current application workshop
56 };
57
58 #endif