Salome HOME
Copyright update 2020
[modules/shaper.git] / src / ModuleBase / ModuleBase_IErrorMgr.cpp
index 1d1c8a8d25aa34d434f598a06582a6a1ad43ab4f..9feb0111034bbba3038bd481c634e0efb0ce3296 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        ModuleBase_ErrorMgr.cpp
-// Created:     22 July 2015
-// Author:      Sergey POKHODENKO
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #include "ModuleBase_IErrorMgr.h"
 
@@ -23,12 +36,13 @@ ModuleBase_IErrorMgr::~ModuleBase_IErrorMgr()
 
 void ModuleBase_IErrorMgr::setPropertyPanel(ModuleBase_IPropertyPanel* theProp)
 {
-  myPropertyPanel = theProp; 
+  myPropertyPanel = theProp;
 
   if (myPropertyPanel) {
     foreach(const ModuleBase_ModelWidget* aWgt, myPropertyPanel->modelWidgets()) {
       connect(aWgt, SIGNAL(afterValuesChanged()), this, SLOT(onWidgetChanged()));
       connect(aWgt, SIGNAL(afterValuesRestored()), this, SLOT(onWidgetChanged()));
+      connect(aWgt, SIGNAL(valueStateChanged(int)), this, SLOT(onWidgetChanged()));
     }
   }
 }