Salome HOME
[bos #24677] : fix compilation bug due to KERNEL modification ef6e9ece004bd054
[modules/yacs.git] / src / genericgui / FormContainer.cxx
index e649ecfbb4b2c5ecee06f97620b51eafa9cf7dd4..dbd40645c91989a78c9808a7fa585cf0e836ed25 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2006-2021  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
@@ -36,7 +36,6 @@ FormContainer::FormContainer(QWidget *parent):FormContainerBase(parent),cb_type(
   FormContainer::FillPanel(0); // --- set widgets before signal connexion to avoid false modif detection
   connect(cb_type, SIGNAL(activated(const QString&)),this, SLOT(onModifyType(const QString&)));
   connect(ch_aoc,SIGNAL(stateChanged(int)),this,SLOT(onModifyAOC(int)));
-  connect(ch_pycache,SIGNAL(stateChanged(int)),this,SLOT(onModifyStorePyCache(int)));
 }
 
 FormContainer::~FormContainer()
@@ -50,7 +49,6 @@ void FormContainer::FillPanel(YACS::ENGINE::Container *container)
   if(container)
   {
     ch_aoc->setCheckState(container->isAttachedOnCloning()?Qt::Checked:Qt::Unchecked);
-    ch_pycache->setCheckState(container->storeContext()?Qt::Checked:Qt::Unchecked);
   }
   cb_type->clear();
   cb_type->addItem("mono");
@@ -96,21 +94,3 @@ void FormContainer::onModifyAOC(int val)
   if(prop!=val2)
     onModified();
 }
-
-void FormContainer::onModifyStorePyCache(int val)
-{
-  if (!_container)
-    return;
-  bool val2(false);
-  if(val==Qt::Unchecked)
-    val2=false;
-  if(val==Qt::Checked)
-    val2=true;
-  bool prop = _container->storeContext();
-  int prop2((int)val2);
-  std::ostringstream oss; oss << prop2;
-  //_properties[YACS::ENGINE::Container::AOC_ENTRY]=oss.str();
-  _container->setStoreContext(val2);
-  if(prop!=val2)
-    onModified();
-}