From 90d84b3ab76352cf020ae2feba2c8a523e580daf Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 8 Sep 2008 06:46:14 +0000 Subject: [PATCH] *** empty log message *** --- src/VISUGUI/VISU_msg_en.ts | 6 +++--- src/VISUGUI/VisuGUI_Prs3dDlg.cxx | 28 ++++++++++++---------------- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/VISUGUI/VISU_msg_en.ts b/src/VISUGUI/VISU_msg_en.ts index e43466e1..5ff2255d 100644 --- a/src/VISUGUI/VISU_msg_en.ts +++ b/src/VISUGUI/VISU_msg_en.ts @@ -2015,7 +2015,7 @@ Please, provide non-empty resulting presentation. SAVE_DEFAULT_CHK - Save as default values + Save as default SCALAR_RANGE_GRP @@ -2806,7 +2806,7 @@ Please, provide non-empty resulting presentation. LBL_SHOW_PREVIEW - Show preview + Preview SHOW_DISTRIBUTION @@ -2846,7 +2846,7 @@ Please, provide non-empty resulting presentation. SAVE_DEFAULT_CHK - Save as default values + Save as default SCALAR_RANGE_GRP diff --git a/src/VISUGUI/VisuGUI_Prs3dDlg.cxx b/src/VISUGUI/VisuGUI_Prs3dDlg.cxx index ef7a4741..8d07bf99 100644 --- a/src/VISUGUI/VisuGUI_Prs3dDlg.cxx +++ b/src/VISUGUI/VisuGUI_Prs3dDlg.cxx @@ -791,14 +791,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane( QWidget* parent, bool thePreview ) // Save check box =========================================================== QWidget* aSaveBox = new QWidget(this); aMainLayout->addWidget( aSaveBox ); - QVBoxLayout* aVBLay = new QVBoxLayout( aSaveBox ); - if (!thePreview) { - CBSave = new QCheckBox (tr("SAVE_DEFAULT_CHK"), aSaveBox); - aVBLay->addWidget( CBSave ); - } - else { - CBSave = 0; - } + QHBoxLayout* aVBLay = new QHBoxLayout( aSaveBox ); aVBLay->addWidget( myTextBtn = new QPushButton("Text properties...", aSaveBox) ); aVBLay->addWidget( myBarBtn = new QPushButton("Bar properties...", aSaveBox) ); @@ -808,21 +801,24 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane( QWidget* parent, bool thePreview ) QGroupBox* CheckGroup = new QGroupBox("", this ); aMainLayout->addWidget( CheckGroup ); - QGridLayout* CheckGroupLayout = new QGridLayout( CheckGroup ); + QHBoxLayout* CheckGroupLayout = new QHBoxLayout( CheckGroup ); myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), CheckGroup); myPreviewCheck->setChecked(false); + //myPreviewCheck->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); + CheckGroupLayout->addWidget(myPreviewCheck); // RKV : Begin - myPreviewCheck->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); CBDistr = new QCheckBox (tr("SHOW_DISTRIBUTION"), CheckGroup); - CBDistr->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); + //CBDistr->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); + CheckGroupLayout->addWidget(CBDistr); // RKV : End - - CheckGroupLayout->addWidget(myPreviewCheck , 0, 0 ); - CheckGroupLayout->addWidget(CBDistr , 0, 2 ); // RKV - - if ( thePreview ) { + if (!thePreview) { + CBSave = new QCheckBox (tr("SAVE_DEFAULT_CHK"), CheckGroup); + CheckGroupLayout->addWidget( CBSave ); + } + else { + CBSave = 0; myPreviewCheck->hide(); CheckGroup->hide(); } -- 2.39.2