Salome HOME
Error label is added to solver
[modules/shaper.git] / src / ModuleBase / ModuleBase_IErrorMgr.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_IErrorMgr.h
4 // Created:     22 July 2015
5 // Author:      Sergey POKHODENKO
6
7 #ifndef ModuleBase_IErrorMgr_H
8 #define ModuleBase_IErrorMgr_H
9
10 #include "ModuleBase.h"
11 #include <QObject>
12
13 class ModuleBase_IPropertyPanel;
14
15 class MODULEBASE_EXPORT ModuleBase_IErrorMgr : public QObject
16 {
17   Q_OBJECT
18 public:
19   /// Default constructor
20   ModuleBase_IErrorMgr(QObject* theParent = 0);
21   /// Virtual destructor
22   virtual ~ModuleBase_IErrorMgr();
23
24   /// \brief Set property pane to the operation
25   /// \param theProp a property panel instance
26   virtual void setPropertyPanel(ModuleBase_IPropertyPanel* theProp);
27
28   /// \return Currently installed property panel
29   ModuleBase_IPropertyPanel* propertyPanel() const { return myPropertyPanel; }
30
31 public slots:
32   /// SLOT, that is called after the operation is validated and feature validation errors have changed.
33   virtual void onValidationStateChanged() = 0;
34
35 protected slots:
36   /// Process values changed event for processing feature attribute validation errors.
37   virtual void onWidgetChanged() = 0;
38
39 protected:
40   /// Access to property panel
41   ModuleBase_IPropertyPanel* myPropertyPanel;
42 };
43
44 #endif // ModuleBase_IErrorMgr_H