Salome HOME
Modify default icon for the module
[modules/gui.git] / src / Plot2d / Plot2d_ViewModel.cxx
index beadcac51497675e3db3c622e33e59359a651510..e5f1bf9679604f9bc441264f7b252cad83509dd9 100755 (executable)
@@ -36,7 +36,8 @@ void Plot2d_Viewer::contextMenuPopup(QPopupMenu* thePopup)
     aView->contextMenuPopup(thePopup);
 
   if (thePopup->count() > 0) thePopup->insertSeparator();
-  thePopup->insertItem("Change background...", this, SLOT(onChangeBgColor()));
+  thePopup->insertItem( tr( "MNU_DUMP_VIEW" ),                this, SLOT(onDumpView()));
+  thePopup->insertItem( tr( "MEN_PLOT2D_CHANGE_BACKGROUND" ), this, SLOT(onChangeBgColor()));
 
   if ( aView ) {
     if ( !aView->getToolBar()->isVisible() ) {
@@ -110,3 +111,11 @@ void Plot2d_Viewer::onShowToolbar() {
   if ( aView )
     aView->getToolBar()->show();    
 }
+
+//*********************************************************************
+void Plot2d_Viewer::onDumpView()
+{
+  Plot2d_ViewWindow* aView = (Plot2d_ViewWindow*)(myViewManager->getActiveView());
+  if ( aView )
+    aView->onDumpView();    
+}