From c33677505363ee86cbc48f1f91a407f1183cbca6 Mon Sep 17 00:00:00 2001 From: nkv Date: Tue, 18 Mar 2008 09:17:11 +0000 Subject: [PATCH] BUG 19145 - Error message after call "Selection Info" dialog --- src/VISUGUI/VISU_msg_en.ts | 4 ++++ src/VISUGUI/VisuGUI_Selection.cxx | 13 ++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VISU_msg_en.ts b/src/VISUGUI/VISU_msg_en.ts index 4b926fc8..df419dc2 100644 --- a/src/VISUGUI/VISU_msg_en.ts +++ b/src/VISUGUI/VISU_msg_en.ts @@ -3106,6 +3106,10 @@ POINT_DATA_TITLE Data of Point + + DATA_ID_LBL + ID: + DATA_SCALAR_LBL Scalar Value: diff --git a/src/VISUGUI/VisuGUI_Selection.cxx b/src/VISUGUI/VisuGUI_Selection.cxx index a758cc27..39c77fb4 100644 --- a/src/VISUGUI/VisuGUI_Selection.cxx +++ b/src/VISUGUI/VisuGUI_Selection.cxx @@ -131,6 +131,7 @@ VisuGUI_SelectionDlg::VisuGUI_SelectionDlg (const SalomeApp_Module* theModule): connect(aBtnGroup, SIGNAL(buttonClicked(int)), this, SLOT(onSelectionChange(int))); + aTypeBox->setLayout(aHBox); TopLayout->addWidget(aTypeBox, 0, 0); QWidget* aNamePane = new QWidget (this); @@ -203,7 +204,7 @@ VisuGUI_SelectionDlg::VisuGUI_SelectionDlg (const SalomeApp_Module* theModule): myZValLbl = new QLabel ("", aCoordGrp); aGridLay->addWidget( myZValLbl, 2, 1 ); //ENK: 23.11.2006 - PAL13176 - EDF228 VISU : Enhancement of structured datas processing - aGridLay->addWidget( new QLabel ("K:", aCoordGrp), 2, 1 ); + aGridLay->addWidget( new QLabel ("K:", aCoordGrp), 2, 2 ); myKValLbl = new QLabel ("-", aCoordGrp); aGridLay->addWidget( myKValLbl, 2, 3 ); //ENK: 23.11.2006 @@ -282,20 +283,20 @@ VisuGUI_SelectionDlg::VisuGUI_SelectionDlg (const SalomeApp_Module* theModule): aGridLay->addWidget( myYPosLbl, 2, 1); aGridLay->addWidget( new QLabel ("Z:", aPosGrp), 2, 0); myZPosLbl = new QLabel ("0", aPosGrp); - aGridLay->addWidget( myZPosLbl, 3, 1); + aGridLay->addWidget( myZPosLbl, 2, 1); aVBoxLayout->addWidget( aPosGrp ); QGroupBox* aSizeGrp = new QGroupBox ( tr("ACTOR_DATA_SIZE_TITLE"), myActorsPane); - aGridLay = new QGridLayout (aPosGrp); + aGridLay = new QGridLayout (aSizeGrp); aGridLay->setSpacing(6); aGridLay->addWidget( new QLabel ("dX:", aSizeGrp ), 0, 0); myDXLbl = new QLabel ("0", aSizeGrp); aGridLay->addWidget( myDXLbl, 0, 1); - aGridLay->addWidget( new QLabel ("dY:", aSizeGrp ), 0, 0); + aGridLay->addWidget( new QLabel ("dY:", aSizeGrp ), 1, 0); myDYLbl = new QLabel ("0", aSizeGrp); aGridLay->addWidget( myDYLbl, 1, 1); - aGridLay->addWidget( new QLabel ("dZ:", aSizeGrp ), 0, 0); + aGridLay->addWidget( new QLabel ("dZ:", aSizeGrp ), 2, 0); myDZLbl = new QLabel ("0", aSizeGrp); aGridLay->addWidget( myDZLbl, 2, 1); @@ -312,9 +313,11 @@ VisuGUI_SelectionDlg::VisuGUI_SelectionDlg (const SalomeApp_Module* theModule): aBtnLayout->addStretch(); QPushButton* aCloseBtn = new QPushButton (tr("BUT_CLOSE"), aBtnBox); + aBtnLayout->addWidget(aCloseBtn); connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(close())); QPushButton* aHelpBtn = new QPushButton (tr("BUT_HELP"), aBtnBox); + aBtnLayout->addWidget(aHelpBtn); connect(aHelpBtn, SIGNAL(clicked()), this, SLOT(onHelp())); TopLayout->addWidget(aBtnBox, 3, 0); -- 2.39.2