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

Private GIT Repository
clkconvert OP compute done
[blast.git] / GroupItem.cpp
index f275f8ebc25865556bfce20b001e99612cf1d720..283e6b44187370e56adac0462b672f675cd8148e 100644 (file)
@@ -814,7 +814,12 @@ void GroupItem::load(QDomElement groupElement) throw(Exception) {
     
     GroupInterface *groupIface = new GroupInterface(groupBlock,name,direction,purpose);
     groupBlock->addInterface(groupIface);
-    InterfaceItem *interfaceItem = new InterfaceItem(position,orientation,groupIface,this,params);
+    bool show = false;
+    if ((groupBlock->isTopGroupBlock()) && (purpose == AbstractInterface::Clock)) {
+      show = true;
+    }
+
+    InterfaceItem *interfaceItem = new InterfaceItem(position,orientation,groupIface,this,params,show);
     interfaceItem->setId(id);
     addInterfaceItem(interfaceItem, false);
 
@@ -823,7 +828,7 @@ void GroupItem::load(QDomElement groupElement) throw(Exception) {
       groupCtlIface->setAssociatedIface(groupIface);
       groupBlock->addInterface(groupCtlIface);
     }
-    cout << "interface add to " << groupBlock->getName().toStdString() << endl;
+    cout << "interface " << qPrintable(name) << " added to " << groupBlock->getName().toStdString() << endl;
   }
 
 }