39 using namespace YACS::HMI;
41 EditionElementaryNode::EditionElementaryNode(
Subject* subject,
77 DEBTRACE(
"EditionElementaryNode::onPortIndexChanged " << index);
88 QModelIndex parentIndex = schemaItem->
modelIndex();
89 int numRows = model->
rowCount(parentIndex);
94 _tvInPorts->tv_ports->setRootIndex(parentIndex);
95 for (
int row = 0; row < numRows; ++row)
97 QModelIndex index = model->
index(row, 0, parentIndex);
101 if (dynamic_cast<SubjectInputPort*>(sub)
104 _tvInPorts->tv_ports->setRowHidden(row, hidden);
113 for (
int row = 0; row < numRows; ++row)
115 QModelIndex index = model->
index(row, 0, parentIndex);
119 if (dynamic_cast<SubjectOutputPort*>(sub)
151 QModelIndex schemIndex = model->
index(0, 0, QModelIndex());
152 QModelIndex TypesDirIndex = model->
index(0, 0, schemIndex);
161 _tvInPorts->cb_insert->setRootModelIndex(TypesDirIndex);
172 _tvOutPorts->cb_insert->setRootModelIndex(TypesDirIndex);
176 connect(
_twPorts, SIGNAL(currentChanged(
int)),
191 DEBTRACE(
"EditionElementaryNode::onCommitData " << editor);
200 string strval = val.toStdString();