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()
DEBTRACE("FormContainer::FillPanel");
FormContainerBase::FillPanel(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");
cb_type->addItem("multi");
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();
+}