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

Private GIT Repository
started VHDL generation of GroupBlock
[blast.git] / InterfacePropertiesWindow.cpp
index 2200bf67abb8c9e1d4253981fecb5c893c995e4e..5a571c0a2146afd5224f3fb867a094fc35ccd577 100644 (file)
@@ -9,6 +9,15 @@ InterfacePropertiesWindow::InterfacePropertiesWindow(InterfaceItem *_inter, QWid
 
   layout = new QGridLayout;
 
+  int w = inter->refInter->getWidth();
+  QString wStr = "";
+  if (w == -1) {
+    wStr = "invalid_size";
+  }
+  else {
+    if (w == 0) w++; // 0 means a boolean thus, size of 1 bit
+    wStr.setNum(w);
+  }
 
   layout->addWidget(new QLabel("Interface properties"), 0, 0);
   layout->addWidget(new QLabel(" "), 1, 0);
@@ -16,13 +25,13 @@ InterfacePropertiesWindow::InterfacePropertiesWindow(InterfaceItem *_inter, QWid
   layout->addWidget(new QLabel("Name :"), 2, 0);
   layout->addWidget(new QLabel(inter->getName()), 2, 1);
   layout->addWidget(new QLabel("Width :"), 3, 0);
-  layout->addWidget(new QLabel(inter->refInter->getWidth()), 3, 1);
+  layout->addWidget(new QLabel(wStr), 3, 1);
   layout->addWidget(new QLabel("Direction :"), 4, 0);
   layout->addWidget(new QLabel(inter->refInter->getDirectionString()), 4, 1);
   layout->addWidget(new QLabel("Purpose :"), 5, 0);
-  layout->addWidget(new QLabel(inter->refInter->getPurposeString()), 5, 1);
-  layout->addWidget(new QLabel("Level :"), 6, 0);
-  layout->addWidget(new QLabel(inter->refInter->getLevelString()), 6, 1);
+  layout->addWidget(new QLabel(inter->refInter->getPurposeString()), 5, 1);  
+  layout->addWidget(new QLabel("Type :"), 6, 0);
+  layout->addWidget(new QLabel(inter->refInter->getTypeString()), 6, 1);
 
   this->setLayout(layout);