]> SALOME platform Git repositories - modules/shaper.git/blob - src/ModuleBase/ModuleBase_IErrorMgr.cpp
Salome HOME
Issue #2052: Modification of parameters don't work (sketch, extrusion)
[modules/shaper.git] / src / ModuleBase / ModuleBase_IErrorMgr.cpp
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        ModuleBase_ErrorMgr.cpp
4 // Created:     22 July 2015
5 // Author:      Sergey POKHODENKO
6
7 #include "ModuleBase_IErrorMgr.h"
8
9 #include "ModuleBase_IPropertyPanel.h"
10 #include "ModuleBase_ModelWidget.h"
11
12 ModuleBase_IErrorMgr::ModuleBase_IErrorMgr(QObject* theParent /*= 0*/)
13   : QObject(theParent)
14   , myPropertyPanel(NULL)
15 {
16
17 }
18
19 ModuleBase_IErrorMgr::~ModuleBase_IErrorMgr()
20 {
21
22 }
23
24 void ModuleBase_IErrorMgr::setPropertyPanel(ModuleBase_IPropertyPanel* theProp)
25 {
26   myPropertyPanel = theProp;
27
28   if (myPropertyPanel) {
29     foreach(const ModuleBase_ModelWidget* aWgt, myPropertyPanel->modelWidgets()) {
30       connect(aWgt, SIGNAL(afterValuesChanged()), this, SLOT(onWidgetChanged()));
31       connect(aWgt, SIGNAL(afterValuesRestored()), this, SLOT(onWidgetChanged()));
32       connect(aWgt, SIGNAL(valueStateChanged(int)), this, SLOT(onWidgetChanged()));
33     }
34   }
35 }