#include "ConnectionItem.h"
#include "InterfaceItem.h"
#include "AbstractBlock.h"
+#include "Graph.h"
GroupScene::GroupScene(GroupScene *_parentScene, GroupWidget *_window, Dispatcher* _dispatcher, Parameters* _params, bool _topScene, QObject *parent) : QGraphicsScene(parent) {
dispatcher = _dispatcher;
groupItem->updateShape();
}
+BoxItem* GroupScene::searchBoxItemByName(QString name) {
+ foreach(BoxItem* item, boxItems) {
+ if (item->getRefBlock()->getName() == name) {
+ return item;
+ }
+ }
+ return NULL;
+}
+
StimuliItem *GroupScene::createStimuliItem(AbstractBlock *block) {
StimuliItem* item = new StimuliItem(block,dispatcher,params);
else {
writer.writeAttribute("upper_scene",QString::number(parentScene->getId()));
}
+ if (isTopScene()) {
+ QString clkList = "";
+ QList<double> lst = params->getGraph()->getClocks();
+ foreach(double d, lst) {
+ clkList += QString::number(d)+",";
+ }
+ clkList.chop(1);
+ writer.writeAttribute("clkList",clkList);
+
+ }
groupItem->save(writer);
if (isTopScene()) {