}
break;
}
+ case Title:
+ cout << "abnormal case while resizing block" << endl;
+ break;
+ case BorderWest:
+ cout << "abnormal case while resizing block" << endl;
+ break;
+ case BorderNorth:
+ cout << "abnormal case while resizing block" << endl;
+ break;
case NoBorder:
cout << "abnormal case while resizing block" << endl;
break;
QAction* showRstClkIface = NULL;
QAction* showWishboneIface = NULL;
QAction* showParameters = NULL;
+ QAction* showPatterns = NULL;
+ QAction* showModifier = NULL;
+ QAction* removeModifier = NULL;
+ QAction* generateVHDL = NULL;
InterfaceItem* ifaceItem = getInterfaceItemFromCursor(event->pos().x(), event->pos().y());
// menu for interface
}
}
}
+ if (iface->getAssociatedIface() != NULL) {
+ if (iface->getDirection() == AbstractInterface::Output) {
+ showPatterns = menu.addAction("Show output pattern");
+ }
+ else if (iface->getDirection() == AbstractInterface::Input) {
+ showPatterns = menu.addAction("Show input pattern");
+ }
+ }
+
+ if (iface->getInputModifier() != NULL) {
+ removeModifier = menu.addAction("Remove input modifier");
+ }
+ if (iface->getInputModifier() != NULL) {
+ showModifier = menu.addAction("Show input modifier parameters");
+ }
+
}
// menu for blocks (group or func)
else {
showWishboneIface->setChecked(wishboneVisible);
}
removeAction = menu.addAction("Remove");
+ generateVHDL = menu.addAction("Generate VHDL");
}
QAction* selectedAction = NULL;
else if(selectedAction == showWishboneIface) {
dispatcher->showWishboneIface(this);
}
- else if(selectedAction == showParameters){
+ else if(selectedAction == showParameters) {
new ParametersWindow(refBlock, params, NULL);
- }
+ }
+ else if(selectedAction == showPatterns) {
+ dispatcher->showPatterns(ifaceItem);
+ }
+ else if(selectedAction == removeModifier) {
+ dispatcher->removeModifier(ifaceItem);
+ }
+ else if(selectedAction == showModifier) {
+ dispatcher->showModifier(ifaceItem);
+ }
+ else if(selectedAction == generateVHDL) {
+ dispatcher->generateBlockVHDL(this);
+ }
+
}
void BoxItem::loadFunctional(QDomElement funcElement) throw(Exception) {
*/
functionalBlock->setName(name);
setRefBlock(functionalBlock);
+ params->blockToItem.insert(functionalBlock,this);
setPos(posX,posY);
setDimension(dimX,dimY);
writer.writeAttribute("id",QString::number(id));
writer.writeAttribute("inside_group",QString::number(childGroupItem->getId()));
- QString attrPos = QString::number(pos().x()).append(",").append(QString::number(pos().y()));
+ QString attrPos = QString::number((int)(pos().x())).append(",").append(QString::number((int)(pos().y())));
writer.writeAttribute("position",attrPos);
QString attrDim = QString::number(getWidth()).append(",").append(QString::number(getHeight()));
writer.writeAttribute("dimension",attrDim);