]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
CSC17119
authorptv <ptv@opencascade.com>
Wed, 3 Oct 2007 11:52:30 +0000 (11:52 +0000)
committerptv <ptv@opencascade.com>
Wed, 3 Oct 2007 11:52:30 +0000 (11:52 +0000)
src/Plot2d/Plot2d_SetupCurveDlg.cxx
src/Plot2d/resources/Plot2d_msg_en.po

index 375c09d2e97faeb054249a955bfd65f8e6de6054..189c508521493ad4b0689ad5e618b84c0a8a3d6e 100644 (file)
@@ -83,7 +83,10 @@ Plot2d_SetupCurveDlg::~Plot2d_SetupCurveDlg()
 */
 void Plot2d_SetupCurveDlg::createControls( Plot2d_ViewFrame* vf )
 {
-  setCaption( tr("TLT_SETUP_CURVE") );
+  if ( vf )
+    setCaption( tr("TOT_PLOT2D_EDIT_LEGEND") );
+  else
+    setCaption( tr("TLT_SETUP_CURVE") );
   setSizeGripEnabled( TRUE );
 
   QFrame* main = mainFrame();
@@ -167,7 +170,7 @@ void Plot2d_SetupCurveDlg::createControls( Plot2d_ViewFrame* vf )
   setBorderEnabled( true, BottomArea );
        setButtonPosition( Left,  OK  );
        setButtonPosition( Right, Cancel );
-  ((QPushButton*)(button( Cancel )))->setAutoDefault( true );
+  ((QPushButton*)(button( OK )))->setAutoDefault( true );
 
   connect( myName, SIGNAL( textChanged( const QString& ) ), this, SLOT( onNameChanged( const QString& ) ) );
   connect( myColorBtn,  SIGNAL( clicked() ), this, SLOT( onColorChanged() ) );
index 0df89850e235be55f5489cb4503feed7d36cb9f7..0d43c397b82a7f90aa8b5f4056ea9a97eae51e52 100755 (executable)
@@ -76,13 +76,13 @@ msgid "PRP_PLOT2D_SHOW_LEGEND"
 msgstr "Enables/disables legend"
 
 msgid "TOT_PLOT2D_EDIT_LEGEND"
-msgstr "Edit Legend"
+msgstr "Set up curves"
 
 msgid "MEN_PLOT2D_EDIT_LEGEND"
-msgstr "Edit &Legend"
+msgstr "Set up curves"
 
 msgid "PRP_PLOT2D_EDIT_LEGEND"
-msgstr "Edit curves legend"
+msgstr "Set up curves"
 
 msgid "TOT_PLOT2D_CURVES_POINTS"
 msgstr "Draw points"