-// 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
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()
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");
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();
-}