40 using namespace YACS::ENGINE;
41 using namespace YACS::HMI;
121 DEBTRACE(
"SchemaInPortItem::update");
123 QModelIndex index = QModelIndex();
231 Qt::ItemFlags pflag = Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDropEnabled;
233 Qt::ItemFlags flagEdit = 0;
234 int column = index.column();
242 if ( (dynamic_cast<DataNode*>(parent) || dynamic_cast<InlineNode*>(parent)) &&
244 flagEdit = Qt::ItemIsEditable;
249 flagEdit = Qt::ItemIsEditable;
251 return pflag | flagEdit;
256 DEBTRACE(
"SchemaInPortItem::dropMimeData");
257 if (!data)
return false;
259 if (!myData)
return false;
260 if(!myData->hasFormat(
"yacs/subjectOutPort"))
return false;
262 if (!to)
return false;
264 if (!toport)
return false;
298 answer =
"Edition, DataStream input port ";
300 answer =
"Edition, DataFlow input port ";
305 answer +=
_itemData.value(column).toString();
306 answer +=
"\nInput port is edited in the input panel of the node.\n" \
307 "Select the node to get access to it's input panel.";
311 answer +=
_itemData.value(column).toString();
312 answer +=
"\nInput port is edited in the input panel of the node.\n" \
313 "Select the node to get access to it's input panel.\n" \
314 "Type is not modifiable, you must delete and recreate the port. Existing links will be lost.";
318 answer +=
_itemData.value(column).toString();
319 answer +=
"\nInput port is edited in the input panel of the node.\n" \
320 "Select the node to get access to it's input panel.\n";
322 answer +=
"DataStream ports have no editable value, they must be linked to an output DataStream port.";
325 answer +=
"DataFlow ports must be either manually initialized or linked to an output DataFlow port. ";
326 answer +=
"If the port is manually initialized and linked, the value from the link will prevail ";
327 answer +=
"if it is available when the node is executed.";