#include <ItemEdition.hxx>
Public Slots | |
virtual void | onApply () |
virtual void | onCancel () |
virtual void | onModifyName (const QString &text) |
Public Member Functions | |
ItemEdition (Subject *subject, QWidget *parent=0, const char *name=0) | |
virtual | ~ItemEdition () |
virtual void | synchronize () |
virtual void | select (bool isSelected) |
virtual void | setName (std::string name) |
virtual void | update (GuiEvent event, int type, Subject *son) |
virtual void | setEdited (bool isEdited) |
Public Member Functions inherited from FormEditItem | |
FormEditItem (QWidget *parent=0) | |
virtual | ~FormEditItem () |
Public Member Functions inherited from YACS::HMI::ItemEditionBase | |
ItemEditionBase (Subject *subject) | |
virtual | ~ItemEditionBase () |
virtual Subject * | getSubject () |
Public Member Functions inherited from YACS::HMI::GuiObserver | |
GuiObserver () | |
virtual | ~GuiObserver () |
virtual void | incrementSubjects (Subject *subject) |
virtual void | decrementSubjects (Subject *subject) |
int | getNbSubjects () |
bool | isDestructible () |
Static Public Member Functions | |
static std::string | filterName (const std::string &name) |
Protected Attributes | |
bool | _isEdited |
bool | _haveScript |
Protected Attributes inherited from FormEditItem | |
WidEditItem * | _wid |
Protected Attributes inherited from YACS::HMI::ItemEditionBase | |
Subject * | _subject |
int | _stackId |
std::string | _name |
std::string | _type |
std::string | _category |
Protected Attributes inherited from YACS::HMI::GuiObserver | |
std::set< Subject * > | _subjectSet |
bool | _destructible |
Additional Inherited Members | |
Static Protected Attributes inherited from YACS::HMI::GuiObserver | |
static std::map< int, std::string > | _eventNameMap |
Definition at line 53 of file ItemEdition.hxx.
generic item edition based on a FormEditItem widget to be completed in derived classes. Apply - cancel edition buttons are not always relevants.
Definition at line 151 of file ItemEdition.cxx.
References _haveScript, _isEdited, YACS::HMI::QtGuiContext::_mapOfEditionItem, YACS::HMI::ItemEditionBase::_name, YACS::HMI::ItemEditionBase::_stackId, YACS::HMI::ItemEditionBase::_subject, YACS::HMI::ItemEditionBase::_type, FormEditItem::_wid, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getStackedWidget(), onApply(), onCancel(), onModifyName(), setEdited(), and YASSERT.
Referenced by update().
|
virtual |
Definition at line 180 of file ItemEdition.cxx.
References YACS::HMI::QtGuiContext::_mapOfEditionItem, YACS::HMI::ItemEditionBase::_name, YACS::HMI::ItemEditionBase::_subject, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::QtGuiContext::getStackedWidget().
|
static |
Definition at line 242 of file ItemEdition.cxx.
References gui.CONNECTOR::a, DEBTRACE, and CORBAEngineTest::i.
Referenced by YACS::HMI::NameEditor::GetStrValue(), onApply(), and YACS::HMI::NameEditor::setData().
|
virtualslot |
Definition at line 214 of file ItemEdition.cxx.
References _isEdited, YACS::HMI::ItemEditionBase::_name, YACS::HMI::ItemEditionBase::_subject, FormEditItem::_wid, DEBTRACE, filterName(), PMMLBasicsTestLauncher::ret, setEdited(), and YACS::HMI::Subject::setName().
Referenced by ItemEdition(), YACS::HMI::EditionElementaryNode::onApply(), and YACS::HMI::EditionContainer::onApply().
|
virtualslot |
Definition at line 235 of file ItemEdition.cxx.
References YACS::HMI::ItemEditionBase::_name, FormEditItem::_wid, DEBTRACE, and setEdited().
Referenced by ItemEdition(), YACS::HMI::EditionElementaryNode::onCancel(), and YACS::HMI::EditionContainer::onCancel().
|
virtualslot |
Definition at line 259 of file ItemEdition.cxx.
References YACS::HMI::ItemEditionBase::_name, and setEdited().
Referenced by ItemEdition().
|
virtual |
Reimplemented from YACS::HMI::ItemEditionBase.
Reimplemented in YACS::HMI::EditionInputPort, and YACS::HMI::EditionOutputPort.
Definition at line 198 of file ItemEdition.cxx.
References DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getStackedWidget(), and synchronize().
|
virtual |
Definition at line 264 of file ItemEdition.cxx.
References YACS::HMI::QtGuiContext::_mapOfSchemaItem, YACS::HMI::QtGuiContext::_setOfModifiedSubjects, YACS::HMI::ItemEditionBase::_subject, FormEditItem::_wid, DEBTRACE, YACS::HMI::EDIT, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSchemaModel(), YACS::HMI::GuiContext::getSubjectProc(), YACS::HMI::SchemaItem::modelIndex(), YACS::HMI::SchemaModel::setData(), YACS::HMI::Subject::update(), and YACS::HMI::SubjectNode::update().
Referenced by ItemEdition(), onApply(), onCancel(), YACS::HMI::EditionPyFunc::onFuncNameModified(), FormContainerBase::onModified(), FormAdvParamContainer::onModified(), onModifyName(), YACS::HMI::EditionScript::onScriptModified(), and setName().
|
virtual |
Definition at line 208 of file ItemEdition.cxx.
References YACS::HMI::ItemEditionBase::_name, and setEdited().
|
virtual |
used in derived nodes for synchronisation with schema model.
Reimplemented from YACS::HMI::ItemEditionBase.
Reimplemented in YACS::HMI::EditionScript, YACS::HMI::EditionSalomeNode, YACS::HMI::EditionElementaryNode, YACS::HMI::EditionSwitch, YACS::HMI::EditionOptimizerLoop, YACS::HMI::EditionProc, YACS::HMI::EditionForEachLoop, YACS::HMI::EditionLoop, and YACS::HMI::EditionWhile.
Definition at line 194 of file ItemEdition.cxx.
Referenced by YACS::HMI::EditionInputPort::select(), YACS::HMI::EditionOutputPort::select(), select(), and update().
when loading a schema, creation of all edition widgets is time and memory consuming, so, widget edition creation is differed until user select an item in tree or 2D vue.
Reimplemented from YACS::HMI::ItemEditionBase.
Reimplemented in YACS::HMI::EditionSalomeNode, YACS::HMI::EditionSwitch, YACS::HMI::EditionOptimizerLoop, YACS::HMI::EditionForEachLoop, YACS::HMI::EditionProc, YACS::HMI::EditionLoop, YACS::HMI::EditionNode, YACS::HMI::EditionWhile, YACS::HMI::EditionContainer, YACS::HMI::EditionComponent, YACS::HMI::EditionBloc, and YACS::HMI::EditionDataLink.
Definition at line 298 of file ItemEdition.cxx.
References YACS::HMI::ItemEditionBase::_name, YACS::HMI::ItemEditionBase::_subject, FormEditItem::_wid, YACS::HMI::ADD, YACS::HMI::ADDCONTROLLINK, YACS::HMI::ADDLINK, YACS::HMI::BLOC, YACS::HMI::COMPONENT, YACS::HMI::CONTAINER, YACS::HMI::CONTROLLINK, YACS::HMI::CORBANODE, YACS::HMI::CPPNODE, YACS::HMI::DATALINK, YACS::HMI::DATATYPE, DEBTRACE, YACS::HMI::DFTODSFORLOOPNODE, YACS::HMI::DSTODFFORLOOPNODE, YACS::HMI::GuiObserver::eventName(), YACS::HMI::FOREACHLOOP, YACS::HMI::FORLOOP, YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::INPUTDATASTREAMPORT, YACS::HMI::INPUTPORT, ItemEdition(), YACS::HMI::NEWROOT, YACS::HMI::OPTIMIZERLOOP, YACS::HMI::OUTNODE, YACS::HMI::OUTPUTDATASTREAMPORT, YACS::HMI::OUTPUTPORT, YACS::HMI::PRESETNODE, YACS::HMI::PYFUNCNODE, YACS::HMI::PYTHONNODE, YACS::HMI::REFERENCE, YACS::HMI::RENAME, YACS::HMI::SALOMENODE, YACS::HMI::SALOMEPROC, YACS::HMI::SALOMEPYTHONNODE, YACS::HMI::SPLITTERNODE, YACS::HMI::STUDYINNODE, YACS::HMI::STUDYOUTNODE, YACS::HMI::SWITCH, YACS::HMI::SYNCHRO, synchronize(), YACS::HMI::WHILELOOP, and YACS::HMI::XMLNODE.
Referenced by gui.graph.MyCanvas::customEvent(), YACS::HMI::EditionOutputPort::select(), YACS::HMI::EditionInputPort::select(), YACS::HMI::EditionContainer::update(), and YACS::HMI::EditionNode::update().
|
protected |
Definition at line 76 of file ItemEdition.hxx.
Referenced by YACS::HMI::EditionScript::EditionScript(), ItemEdition(), YACS::HMI::EditionScript::onApply(), and YACS::HMI::EditionScript::onCancel().
|
protected |
Definition at line 75 of file ItemEdition.hxx.
Referenced by ItemEdition(), YACS::HMI::EditionPyFunc::onApply(), YACS::HMI::EditionScript::onApply(), YACS::HMI::EditionContainer::onApply(), onApply(), YACS::HMI::EditionSalomeNode::onApply(), YACS::HMI::EditionScript::onScriptModified(), and YACS::HMI::EditionScript::synchronize().