+bool AbstractBoxItem::isSourceItem() {
+ return false;
+}
+
+void AbstractBoxItem::setRstClkVisible(bool b) {
+ rstClkVisible = b;
+ foreach(InterfaceItem* ifaceItem, interfaces) {
+ if ((ifaceItem->refInter->getPurpose() == AbstractInterface::Clock) ||
+ (ifaceItem->refInter->getPurpose() == AbstractInterface::Reset) ) {
+ ifaceItem->visible = b;
+ }
+ }
+ resetInterfaceItemsPosition();
+ updateGeometry(InterfaceMove);
+ update();
+ getScene()->updateConnectionItemsShape();
+ (getScene()->getGroupItem())->updateShape();
+
+}
+
+void AbstractBoxItem::setWishboneVisible(bool b) {
+ wishboneVisible = b;
+ foreach(InterfaceItem* ifaceItem, interfaces) {
+ if (ifaceItem->refInter->getPurpose() == AbstractInterface::Wishbone) {
+ ifaceItem->visible = b;
+ }
+ }
+ resetInterfaceItemsPosition();
+ updateGeometry(InterfaceMove);
+ update();
+ getScene()->updateConnectionItemsShape();
+ (getScene()->getGroupItem())->updateShape();
+}
+
+void AbstractBoxItem::setRefBlock(AbstractBlock* _refBlock) {
+ refBlock = _refBlock;
+ QFontMetrics fmId(params->defaultBlockFont);
+ nameWidth = fmId.width(refBlock->getName());
+ nameHeight = fmId.height();
+}
+
+void AbstractBoxItem::initInterfaceItems() {