]> AND Private Git Repository - blast.git/blobdiff - InterfaceItem.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
add graph modif, progress on vhdl generation
[blast.git] / InterfaceItem.cpp
index 10158d7bd7a97a78fb4b3ce1d8e06d6d4559fee6..443cee06e4f022bd4ce944e716acfe8284ffe1a3 100644 (file)
@@ -128,6 +128,16 @@ void InterfaceItem::paint(QPainter *painter) {
       painter->drawPath(params->outArrow);
     }
 
       painter->drawPath(params->outArrow);
     }
 
+    // paint modifier box if needed
+
+    if (refInter->getInputModifier() != NULL) {
+      painter->save();
+      painter->translate(params->arrowWidth+params->arrowLineLength,0);
+      painter->drawRect(0,-5,10,10);
+      painter->restore();
+    }
+
+
     // draw names
     if(selected) {
       painter->setPen(QPen(Qt::red,2));
     // draw names
     if(selected) {
       painter->setPen(QPen(Qt::red,2));
@@ -164,7 +174,9 @@ void InterfaceItem::paint(QPainter *painter) {
       else if((owner->isBoxItem()) || (owner->isSourceItem())){     
         painter->drawText(-w,-h/2,w,h,Qt::AlignLeft | Qt::TextWordWrap, refInter->getName());
       }
       else if((owner->isBoxItem()) || (owner->isSourceItem())){     
         painter->drawText(-w,-h/2,w,h,Qt::AlignLeft | Qt::TextWordWrap, refInter->getName());
       }
-    }    
+    }
+
+
 
     painter->restore();
   }
 
     painter->restore();
   }