1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModuleBase_ErrorMgr.cpp
4 // Created: 22 July 2015
5 // Author: Sergey POKHODENKO
7 #include "ModuleBase_IErrorMgr.h"
9 #include "ModuleBase_IPropertyPanel.h"
10 #include "ModuleBase_ModelWidget.h"
12 ModuleBase_IErrorMgr::ModuleBase_IErrorMgr(QObject* theParent /*= 0*/)
14 , myPropertyPanel(NULL)
19 ModuleBase_IErrorMgr::~ModuleBase_IErrorMgr()
24 void ModuleBase_IErrorMgr::setPropertyPanel(ModuleBase_IPropertyPanel* theProp)
26 myPropertyPanel = theProp;
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()));