X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUPERVGUI%2FSUPERVGUI_ArrayView.cxx;h=b2b0309cdeedef948b0e6b16eb1c59efc15d1b94;hb=ea7f29f75031ca13b9454f5e9ac73730f1f584eb;hp=16561b0555db6329549e64ac5909e90b5859ab8d;hpb=7d3931c54614b3d73351551e662ccbd3be07a0d8;p=modules%2Fsuperv.git diff --git a/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx b/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx index 16561b0..b2b0309 100644 --- a/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx +++ b/src/SUPERVGUI/SUPERVGUI_ArrayView.cxx @@ -60,7 +60,7 @@ SUPERVGUI_ArrayView::SUPERVGUI_ArrayView(SUPERVGUI_CanvasArray* theArray, SUPERV 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(); @@ -91,11 +91,6 @@ void SUPERVGUI_ArrayView::ResetView() setWorldMatrix(m); } -void SUPERVGUI_ArrayView::addToStudy() -{ - if (myMain->addStudy()) myMain->setAsFromStudy(true); -} - void SUPERVGUI_ArrayView::changeBackground() { QColor aColor = QColorDialog::getColor(canvas()->backgroundColor(), this ); @@ -137,7 +132,7 @@ void SUPERVGUI_ArrayView::contentsMousePressEvent(QMouseEvent* theEvent) { } } - myPopup->setItemEnabled(myAddStudyItem, !myMain->isFromStudy()); + myPopup->setItemEnabled(myAddStudyItem, !myMain->isDataflowInStudy()); myMain->showPopup(myPopup, theEvent); return; }