From: nds Date: Fri, 23 Dec 2005 06:56:20 +0000 (+0000) Subject: IPAL9991: It is wrong number of minor/major scale division in the Plot2d view. X-Git-Tag: T_Before_Join_BR_3_1_0deb~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08502f77621231be010abe761c8b37478f3abc8e;p=modules%2Fgui.git IPAL9991: It is wrong number of minor/major scale division in the Plot2d view. --- diff --git a/src/Plot2d/Plot2d_SetupViewDlg.cxx b/src/Plot2d/Plot2d_SetupViewDlg.cxx index ae80d526f..0969b6b44 100755 --- a/src/Plot2d/Plot2d_SetupViewDlg.cxx +++ b/src/Plot2d/Plot2d_SetupViewDlg.cxx @@ -121,18 +121,22 @@ Plot2d_SetupViewDlg::Plot2d_SetupViewDlg( QWidget* parent, bool showDefCheck, bo QGridLayout* aGridLayoutX = new QGridLayout( aGridGrpX->layout() ); aGridLayoutX->setMargin( MARGIN_SIZE ); aGridLayoutX->setSpacing( SPACING_SIZE ); myXGridCheck = new QCheckBox( tr( "PLOT2D_GRID_ENABLE_HOR_MAJOR" ), aGridGrpX ); + QLabel* aXMajLbl = new QLabel( tr( "PLOT2D_MAX_INTERVALS" ), aGridGrpX); myXGridSpin = new QSpinBox( 1, 100, 1, aGridGrpX ); myXGridSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); myXGridSpin->setMinimumWidth( MIN_SPIN_WIDTH ); myXMinGridCheck = new QCheckBox( tr( "PLOT2D_GRID_ENABLE_HOR_MINOR" ), aGridGrpX ); + QLabel* aXMinLbl = new QLabel( tr( "PLOT2D_MAX_INTERVALS" ), aGridGrpX); myXMinGridSpin = new QSpinBox( 1, 100, 1, aGridGrpX ); myXMinGridSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); myXMinGridSpin->setMinimumWidth( MIN_SPIN_WIDTH ); aGridLayoutX->addWidget( myXGridCheck, 0, 0 ); - aGridLayoutX->addWidget( myXGridSpin, 0, 1 ); + aGridLayoutX->addWidget( aXMajLbl, 0, 1 ); + aGridLayoutX->addWidget( myXGridSpin, 0, 2 ); aGridLayoutX->addWidget( myXMinGridCheck, 1, 0 ); - aGridLayoutX->addWidget( myXMinGridSpin, 1, 1 ); + aGridLayoutX->addWidget( aXMinLbl, 1, 1 ); + aGridLayoutX->addWidget( myXMinGridSpin, 1, 2 ); aXLayout->addMultiCellWidget( aGridGrpX, 3, 3, 0, 3 ); aTabWidget->addTab( aXWidget, tr( "INF_AXES_X" ) ); @@ -156,18 +160,22 @@ Plot2d_SetupViewDlg::Plot2d_SetupViewDlg( QWidget* parent, bool showDefCheck, bo QGridLayout* aGridLayoutY = new QGridLayout( aGridGrpY->layout() ); aGridLayoutY->setMargin( MARGIN_SIZE ); aGridLayoutY->setSpacing( SPACING_SIZE ); myYGridCheck = new QCheckBox( tr( "PLOT2D_GRID_ENABLE_VER_MAJOR" ), aGridGrpY ); + QLabel* aYMajLbl = new QLabel( tr( "PLOT2D_MAX_INTERVALS" ), aGridGrpY); myYGridSpin = new QSpinBox( 1, 100, 1, aGridGrpY ); myYGridSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); myYGridSpin->setMinimumWidth( MIN_SPIN_WIDTH ); myYMinGridCheck = new QCheckBox( tr( "PLOT2D_GRID_ENABLE_VER_MINOR" ), aGridGrpY ); + QLabel* aYMinLbl = new QLabel( tr( "PLOT2D_MAX_INTERVALS" ), aGridGrpY); myYMinGridSpin = new QSpinBox( 1, 100, 1, aGridGrpY ); myYMinGridSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); myYMinGridSpin->setMinimumWidth( MIN_SPIN_WIDTH ); aGridLayoutY->addWidget( myYGridCheck, 0, 0 ); - aGridLayoutY->addWidget( myYGridSpin, 0, 1 ); + aGridLayoutY->addWidget( aYMajLbl, 0, 1 ); + aGridLayoutY->addWidget( myYGridSpin, 0, 2 ); aGridLayoutY->addWidget( myYMinGridCheck, 1, 0 ); - aGridLayoutY->addWidget( myYMinGridSpin, 1, 1 ); + aGridLayoutY->addWidget( aYMinLbl, 1, 1 ); + aGridLayoutY->addWidget( myYMinGridSpin, 1, 2 ); aYLayout->addMultiCellWidget( aGridGrpY, 3, 3, 0, 3 ); aTabWidget->addTab( aYWidget, tr( "INF_AXES_Y_LEFT" ) ); @@ -193,18 +201,22 @@ Plot2d_SetupViewDlg::Plot2d_SetupViewDlg( QWidget* parent, bool showDefCheck, bo QGridLayout* aGridLayoutY2 = new QGridLayout( aGridGrpY2->layout() ); aGridLayoutY2->setMargin( MARGIN_SIZE ); aGridLayoutY2->setSpacing( SPACING_SIZE ); myY2GridCheck = new QCheckBox( tr( "PLOT2D_GRID_ENABLE_VER_MAJOR" ), aGridGrpY2 ); + QLabel* aY2MajLbl = new QLabel( tr( "PLOT2D_MAX_INTERVALS" ), aGridGrpY2); myY2GridSpin = new QSpinBox( 1, 100, 1, aGridGrpY2 ); myY2GridSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); myY2GridSpin->setMinimumWidth( MIN_SPIN_WIDTH ); myY2MinGridCheck = new QCheckBox( tr( "PLOT2D_GRID_ENABLE_VER_MINOR" ), aGridGrpY2 ); + QLabel* aY2MinLbl = new QLabel( tr( "PLOT2D_MAX_INTERVALS" ), aGridGrpY2); myY2MinGridSpin = new QSpinBox( 1, 100, 1, aGridGrpY2 ); myY2MinGridSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); myY2MinGridSpin->setMinimumWidth( MIN_SPIN_WIDTH ); aGridLayoutY2->addWidget( myY2GridCheck, 0, 0 ); - aGridLayoutY2->addWidget( myY2GridSpin, 0, 1 ); + aGridLayoutY2->addWidget( aY2MajLbl, 0, 1 ); + aGridLayoutY2->addWidget( myY2GridSpin, 0, 2 ); aGridLayoutY2->addWidget( myY2MinGridCheck, 1, 0 ); - aGridLayoutY2->addWidget( myY2MinGridSpin, 1, 1 ); + aGridLayoutY2->addWidget( aY2MinLbl, 1, 1 ); + aGridLayoutY2->addWidget( myY2MinGridSpin, 1, 2 ); aYLayout2->addMultiCellWidget( aGridGrpY2, 3, 3, 0, 3 ); aTabWidget->addTab( aYWidget2, tr( "INF_AXES_Y_RIGHT" ) ); diff --git a/src/Plot2d/resources/Plot2d_msg_en.po b/src/Plot2d/resources/Plot2d_msg_en.po index 8f7087732..a646152b5 100755 --- a/src/Plot2d/resources/Plot2d_msg_en.po +++ b/src/Plot2d/resources/Plot2d_msg_en.po @@ -237,6 +237,9 @@ msgstr "Horizontal minor" msgid "PLOT2D_GRID_ENABLE_VER_MINOR" msgstr "Vertical minor" +msgid "PLOT2D_MAX_INTERVALS" +msgstr "Max intervals" + msgid "PLOT2D_SET_AS_DEFAULT_CHECK" msgstr "Save settings as default"