From: ptv Date: Wed, 3 Oct 2007 11:52:30 +0000 (+0000) Subject: CSC17119 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d69c3626169612dbe0faf5109f56ebb90679d5f;p=modules%2Fgui.git CSC17119 --- diff --git a/src/Plot2d/Plot2d_SetupCurveDlg.cxx b/src/Plot2d/Plot2d_SetupCurveDlg.cxx index 375c09d2e..189c50852 100644 --- a/src/Plot2d/Plot2d_SetupCurveDlg.cxx +++ b/src/Plot2d/Plot2d_SetupCurveDlg.cxx @@ -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() ) ); diff --git a/src/Plot2d/resources/Plot2d_msg_en.po b/src/Plot2d/resources/Plot2d_msg_en.po index 0df89850e..0d43c397b 100755 --- a/src/Plot2d/resources/Plot2d_msg_en.po +++ b/src/Plot2d/resources/Plot2d_msg_en.po @@ -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"