42 using namespace YACS::ENGINE;
43 using namespace YACS::HMI;
46 QString label,
Subject *subject)
74 const QStyleOptionGraphicsItem *option,
85 painter->drawRect(QRectF(Resource::Border_Margin, Resource::Border_Margin, w, h));
91 DEBTRACE(
"SceneElementaryNodeItem::update "<<
eventName(event)<<
" "<<type<<
" "<<son);
145 DEBTRACE(
"SceneElementaryNodeItem::autoPosNewPort "<<
_label.toStdString());
166 DEBTRACE(
"SceneElementaryNodeItem::autoPosNewPort _height=" <<
_height);
207 DEBTRACE(
"SceneElementaryNodeItem::shrinkExpandRecursive " << toExpand <<
" " << fromHere <<
" " <<
isExpanded() <<
" " <<
_label.toStdString());
209 bool toChangeShrinkState =
false;
210 switch (theShrinkMode) {
213 toChangeShrinkState =
true;
217 toChangeShrinkState =
true;
220 toChangeShrinkState =
true;
223 if (toChangeShrinkState && toExpand !=
isExpanded())
227 if (toChangeShrinkState) {
255 DEBTRACE(
"SceneElementaryNodeItem::reorganize() " <<
_label.toStdString());
264 list<InPort*>::iterator iti = plisti.begin();
266 for (; iti != plisti.end(); ++iti)
275 list<OutPort*>::iterator ito = plisto.begin();
277 for (; ito != plisto.end(); ++ito)