scene = new GroupScene(NULL, this, dispatcher, params, true);
}
else {
- topGroup = true;
+ topGroup = false;
scene = new GroupScene(upperGroup->getScene(), this, dispatcher, params, false);
}
void GroupWidget::mousePressEvent(QMouseEvent *e) {
- dispatcher->setCurrentGroupWidget(this);
+ dispatcher->setCurrentGroupWidget(Dispatcher::Design, this);
QWidget::mousePressEvent(e);
}
}
void GroupWidget::slotEdit() {
- dispatcher->unselectAllItems();
+ dispatcher->unselectAllItems(Dispatcher::Design);
getScene()->setEditionMode(GroupScene::ItemEdition);
updateBlockButton();
}
void GroupWidget::slotCopyBlock() {
foreach (BoxItem *item, params->getCurrentScene()->getBoxItems()) {
if(item->isSelected()){
- dispatcher->duplicateBoxItem(item);
+ dispatcher->duplicateBoxItem(Dispatcher::Design, item);
}
}
}
void GroupWidget::slotAddConnection() {
- dispatcher->unselectAllItems();
+ dispatcher->unselectAllItems(Dispatcher::Design);
getScene()->setEditionMode(GroupScene::AddConnection);
updateBlockButton();
}
void GroupWidget::slotNewEmptyGroup() {
- dispatcher->addNewEmptyGroup(scene);
+ dispatcher->addNewEmptyGroup(Dispatcher::Design, scene);
}
void GroupWidget::slotNewGroup()
{
- dispatcher->addNewFullGroup();
+ dispatcher->addNewFullGroup(Dispatcher::Design );
}
void GroupWidget::slotDeleteItems() {
foreach (BoxItem *item, scene->getBoxItems()) {
if(item->isSelected()){
- dispatcher->removeBoxItem(item);
+ dispatcher->removeBoxItem(Dispatcher::Design, item);
}
}
foreach (ConnectionItem *item, scene->getConnectionItems()) {
if(item->isSelected()){
- dispatcher->removeConnection(item);
+ dispatcher->removeConnection(Dispatcher::Design, item);
}
}
}