From: akl Date: Fri, 21 Feb 2014 12:56:30 +0000 (+0400) Subject: Spinbox labels were corrected: 'DX'->'X' and 'DY'->'Y' (problem is described in 00224... X-Git-Tag: V7_4_0a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=477d68b231d6b6d08c0b2968c1da0ba9a5550a3d;p=modules%2Fgeom.git Spinbox labels were corrected: 'DX'->'X' and 'DY'->'Y' (problem is described in 0022497: EDF GEOM: Regression in 2D sketcher). --- diff --git a/src/EntityGUI/EntityGUI_SketcherDlg.cxx b/src/EntityGUI/EntityGUI_SketcherDlg.cxx index 16c7fe399..fde880b43 100644 --- a/src/EntityGUI/EntityGUI_SketcherDlg.cxx +++ b/src/EntityGUI/EntityGUI_SketcherDlg.cxx @@ -941,13 +941,13 @@ void EntityGUI_SketcherDlg::Dir2Clicked( int constructorId ) else if ( constructorId == 0 ) { // X mySketchType = DIR_ANGLE_X; initSpinBox( Group2Spin->SpinBox_DY, COORD_MIN, COORD_MAX, step, "angle_precision" ); - Group2Spin->TextLabel2->setText( tr( "GEOM_SKETCHER_X3" ) ); + Group2Spin->TextLabel2->setText( tr( "GEOM_SKETCHER_X2" ) ); Group2Spin->SpinBox_DY->setValue( myX ); } else if ( constructorId == 1 ) { // Y mySketchType = DIR_ANGLE_Y; initSpinBox( Group2Spin->SpinBox_DY, COORD_MIN, COORD_MAX, step, "angle_precision" ); - Group2Spin->TextLabel2->setText( tr( "GEOM_SKETCHER_Y3" ) ); + Group2Spin->TextLabel2->setText( tr( "GEOM_SKETCHER_Y2" ) ); Group2Spin->SpinBox_DY->setValue( myY ); } } @@ -962,12 +962,12 @@ void EntityGUI_SketcherDlg::Dir2Clicked( int constructorId ) } else if ( constructorId == 0 ) { // X mySketchType = DIR_PER_X; - Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_X3" ) ); + Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_X2" ) ); Group1Spin->SpinBox_DX->setValue( myX ); } else if ( constructorId == 1 ) { // Y mySketchType = DIR_PER_Y; - Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_Y3" ) ); + Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_Y2" ) ); Group1Spin->SpinBox_DX->setValue( myY ); } } @@ -982,12 +982,12 @@ void EntityGUI_SketcherDlg::Dir2Clicked( int constructorId ) } else if ( constructorId == 0 ) { // X mySketchType = DIR_TAN_X; - Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_X3" ) ); + Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_X2" ) ); Group1Spin->SpinBox_DX->setValue( myX ); } else if ( constructorId == 1 ) { // Y mySketchType = DIR_TAN_Y; - Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_Y3" ) ); + Group1Spin->TextLabel1->setText( tr( "GEOM_SKETCHER_Y2" ) ); Group1Spin->SpinBox_DX->setValue( myY ); } } @@ -1009,12 +1009,12 @@ void EntityGUI_SketcherDlg::Dir2Clicked( int constructorId ) } else if ( constructorId == 0 ) { // X mySketchType = DIR_DXDY_X; - Group3Spin->TextLabel3->setText( tr( "GEOM_SKETCHER_X3" ) ); + Group3Spin->TextLabel3->setText( tr( "GEOM_SKETCHER_X2" ) ); Group3Spin->SpinBox_DZ->setValue( myX ); } else if ( constructorId == 1 ) { // Y mySketchType = DIR_DXDY_Y; - Group3Spin->TextLabel3->setText( tr( "GEOM_SKETCHER_Y3" ) ); + Group3Spin->TextLabel3->setText( tr( "GEOM_SKETCHER_Y2" ) ); Group3Spin->SpinBox_DZ->setValue( myY ); } }