Salome HOME
Issue #710 fillet is wrong
[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 theExternal the external state
29   /// \param theDefaultValue the default value for the external object using
30   PartSet_LockApplyMgr(QObject* theParent,
31                        ModuleBase_IWorkshop* theWorkshop);
32
33   virtual ~PartSet_LockApplyMgr() {}
34
35   void activate();
36   void deactivate();
37   void valuesChanged();
38
39 protected slots:
40   // Set lock validating in the operation manager. Set apply is disabled
41   void onLockValidating();
42   // Set unlock validating in the operation manager. Call method to update the apply state.
43   void onUnlockValidating();
44
45 private:
46   XGUI_OperationMgr* operationMgr() const;
47
48 private:
49   ModuleBase_IWorkshop* myWorkshop; // the current application workshop
50 };
51
52 #endif