myPopup->insertItem("Zoom", aZoomPopup);
myPopup->insertSeparator();*/
- myAddStudyItem = myPopup->insertItem(tr("MSG_ADD_STUDY"), this, SLOT(addToStudy()));
+ myAddStudyItem = myPopup->insertItem(tr("MSG_ADD_STUDY"), myMain, SLOT(addDataflowToStudy()));
myPopup->insertItem(tr("MSG_CHANGE_INFO"), myMain, SLOT(changeInformation()));
myPopup->insertSeparator();
setWorldMatrix(m);
}
-void SUPERVGUI_ArrayView::addToStudy()
-{
- if (myMain->addStudy()) myMain->setAsFromStudy(true);
-}
-
void SUPERVGUI_ArrayView::changeBackground()
{
QColor aColor = QColorDialog::getColor(canvas()->backgroundColor(), this );
}
}
- myPopup->setItemEnabled(myAddStudyItem, !myMain->isFromStudy());
+ myPopup->setItemEnabled(myAddStudyItem, !myMain->isDataflowInStudy());
myMain->showPopup(myPopup, theEvent);
return;
}