#include "GroupInterface.h"
#include "FunctionalInterface.h"
#include "BoxItem.h"
+#include "ReferenceInterface.h"
int InterfaceItem::counter = 0;
return refInter->getName();
}
+QString InterfaceItem::getReferenceName() {
+ if (!refInter->isFunctionalInterface()) {
+ return "no_refname_for_groupiface";
+ }
+ FunctionalInterface* iface = AI_TO_FUN(refInter);
+ ReferenceInterface* refIface = iface->getReference();
+ return refIface->getName();
+}
+
void InterfaceItem::updateName(QString name) {
QFontMetrics fmName(params->defaultIfaceFont);
nameWidth = fmName.width(refInter->getName());