]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Dialog for editing curve parameters moved here from For_CTH_V12 branch
authorsln <sln@opencascade.com>
Thu, 11 Sep 2008 11:58:07 +0000 (11:58 +0000)
committersln <sln@opencascade.com>
Thu, 11 Sep 2008 11:58:07 +0000 (11:58 +0000)
src/Plot2d/Plot2d_ViewWindow.cxx
src/Plot2d/Plot2d_ViewWindow.h

index 84f55130718ba1bf298c827534f403d198c3e2f0..cc31f985a3052d88c9e3c53a4cff074ed84f8be4 100755 (executable)
@@ -145,6 +145,7 @@ void Plot2d_ViewWindow::contextMenuPopup( QMenu* thePopup )
 
   // settings
   thePopup->addAction( mgr->action( CurvSettingsId ) );
+  thePopup->addAction( mgr->action( CurvesSettingsId ) );
 }
 
 /*!
@@ -362,6 +363,14 @@ void Plot2d_ViewWindow::createActions()
   connect( aAction, SIGNAL( triggered( bool ) ), myViewFrame, SLOT( onSettings() ) );
   mgr->registerAction( aAction, CurvSettingsId );
 
+  // 8. Curves Settings
+  aAction = new QtxAction( tr( "TOT_CURVES_SETTINGS"),
+                aResMgr->loadPixmap("Plot2d", tr("ICON_CURVES_SETTINGS")),
+                tr("MEN_CURVES_SETTINGS"), 0, this);
+  aAction->setStatusTip( tr( "PRP_CURVES_SETTINGS") );
+  connect( aAction, SIGNAL( activated() ), myViewFrame, SLOT( onCurvesSettings() ) );
+  mgr->registerAction( aAction, CurvesSettingsId );
+  
   // 9. Clone
   aAction = new QtxAction( tr( "MNU_CLONE_VIEW" ),
                           aResMgr->loadPixmap( "Plot2d", tr( "ICON_PLOT2D_CLONE_VIEW" ) ),
@@ -401,6 +410,7 @@ void Plot2d_ViewWindow::createToolBar()
   mgr->append( toolMgr()->separator(), myToolBar );
   mgr->append( LegendId, myToolBar );
   mgr->append( CurvSettingsId, myToolBar );
+  mgr->append( CurvesSettingsId, myToolBar );
   mgr->append( CloneId, myToolBar );
 }
 
index 68795cd494f92432bb5d9d1a1b0c84e603fcfe90..4cdb7c42908f472fe5e845808e7edf062365a156 100755 (executable)
@@ -27,7 +27,6 @@
 #include <SUIT_ViewWindow.h>
 #include <QMap>
 
-
 #ifdef WIN32
 #pragma warning( disable:4251 )
 #endif
@@ -52,7 +51,7 @@ public:
          PModeYLinearId, PModeYLogarithmicId,
         CurvPointsId, CurvLinesId, CurvSplinesId, 
         LegendId,
-        CurvSettingsId,
+        CurvSettingsId, CurvesSettingsId,
         CloneId };
 
 public: