From 7d69c3626169612dbe0faf5109f56ebb90679d5f Mon Sep 17 00:00:00 2001 From: ptv Date: Wed, 3 Oct 2007 11:52:30 +0000 Subject: [PATCH] CSC17119 --- src/Plot2d/Plot2d_SetupCurveDlg.cxx | 7 +++++-- src/Plot2d/resources/Plot2d_msg_en.po | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) 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" -- 2.39.2