}
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;
InterfaceItem* ifaceItem = getInterfaceItemFromCursor(event->pos().x(), event->pos().y());
// menu for interface
}
}
}
+ if ((iface->getAssociatedIface() != NULL) && (iface->getDirection() == AbstractInterface::Output)) {
+ showPatterns = menu.addAction("Show patterns");
+ }
}
// menu for blocks (group or func)
else {
else if(selectedAction == showWishboneIface) {
dispatcher->showWishboneIface(this);
}
- else if(selectedAction == showParameters) {
- if (refBlock->isFunctionalBlock()) {
- FunctionalBlock* fun = AB_TO_FUN(refBlock);
- fun->createDelta();
- }
+ else if(selectedAction == showParameters) {
new ParametersWindow(refBlock, params, NULL);
- }
+ }
+ else if(selectedAction == showPatterns) {
+ dispatcher->showPatterns(ifaceItem);
+ }
}
void BoxItem::loadFunctional(QDomElement funcElement) throw(Exception) {
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);