_wid->gridLayout1->addWidget(_formEachLoop);
_formEachLoop->sb_nbranch->setMinimum(1);
_formEachLoop->sb_nbranch->setMaximum(INT_MAX);
+ if (!QtGuiContext::getQtCurrent()->isEdition())
+ _formEachLoop->setEnabled (false);
Node* node=_subjectNode->getNode();
ForEachLoop *fe = dynamic_cast<ForEachLoop*>(node);
if(fe)
_formLoop->sb_nsteps->setMinimum(0);
_formLoop->sb_nsteps->setMaximum(INT_MAX);
+ if (!QtGuiContext::getQtCurrent()->isEdition())
+ _formLoop->setEnabled (false);
+
connect(_formLoop->sb_nsteps, SIGNAL(editingFinished()),
this, SLOT(onNbStepsEdited()));
}
_valueDelegate = new ValueDelegate(parent);
_tvSwitch->tv_nodes->setItemDelegateForColumn(YValue, _valueDelegate);
_tvSwitch->setEditableCase(true);
+ if (!QtGuiContext::getQtCurrent()->isEdition())
+ _tvSwitch->setEnabled (false);
connect(_valueDelegate, SIGNAL(commitData(QWidget*)),
this, SLOT(onCommitData(QWidget*)));
#include "EditionWhile.hxx"
#include "FormLoop.hxx"
#include "guiObservers.hxx"
+#include "QtGuiContext.hxx"
//#define _DEVDEBUG_
#include "YacsTrace.hxx"
_formWhile->sb_nsteps->setMinimum(0);
_formWhile->sb_nsteps->setMaximum(1);
_formWhile->label->setText("Condition");
+ if (!QtGuiContext::getQtCurrent()->isEdition())
+ _formWhile->setEnabled (false);
connect(_formWhile->sb_nsteps, SIGNAL(editingFinished()),
this, SLOT(onConditionEdited()));
}