From 328b13a28cc82a5597932c97252e72b2305ea6e3 Mon Sep 17 00:00:00 2001 From: nkv Date: Tue, 18 Mar 2008 10:00:50 +0000 Subject: [PATCH] BUG 19142 - "Arrange presentations" dialog is broken --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 6829fb48..d6c94084 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -172,16 +172,16 @@ void ArrangeDlg::init() //aMainLayout->addWidget(aBtnGrp); QGroupBox* aBtnGB = new QGroupBox( this ); - aMainLayout->addWidget(aBtnGB); QHBoxLayout* aHBLay = new QHBoxLayout( aBtnGB ); + aMainLayout->addWidget(aBtnGB); QRadioButton* aAutoBtn = new QRadioButton("Auto", aBtnGB); aHBLay->addWidget( aAutoBtn ); aBtnGrp->addButton(aAutoBtn, AutoMode); QRadioButton* aManualBtn = new QRadioButton("Manual", aBtnGB); - aBtnGrp->addButton(aManualBtn, ManualMode); aHBLay->addWidget( aManualBtn ); + aBtnGrp->addButton(aManualBtn, ManualMode); aAutoBtn->setChecked( true ); @@ -190,13 +190,15 @@ void ArrangeDlg::init() // AUTO Pane QWidget* aAutoPane = new QWidget(myStackWgt); - QVBoxLayout* aVBLay = new QVBoxLayout( aAutoPane ); - aVBLay->setSpacing(5); + QVBoxLayout* aAutoLay = new QVBoxLayout( aAutoPane ); + aAutoLay->setSpacing(5); + // Axis Group myAxisGrp = new QButtonGroup(aAutoPane); QGroupBox* aAxisGB = new QGroupBox( "Axis", aAutoPane ); - aVBLay->addWidget( aAxisGB ); + QHBoxLayout* aVBLay = new QHBoxLayout( aAxisGB ); + aAutoLay->addWidget( aAxisGB ); QRadioButton* aXBtn = new QRadioButton("X",aAxisGB ); aVBLay->addWidget( aXBtn ); @@ -221,6 +223,8 @@ void ArrangeDlg::init() myDistVal->setValue(1); aHLay->addWidget( myDistVal ); + aAutoLay->addWidget( aDistPane ); + myStackWgt->insertWidget( AutoMode, aAutoPane); // Manual Pane @@ -234,6 +238,7 @@ void ArrangeDlg::init() this, SLOT( onFieldChange(int) ) ); QWidget* aCoordPane = new QWidget( aManualPane); + aHLay->addWidget( aCoordPane ); QGridLayout* aCoordLayout = new QGridLayout( aCoordPane ); aCoordLayout->setSpacing(5); @@ -256,7 +261,7 @@ void ArrangeDlg::init() myStackWgt->setCurrentIndex(AutoMode); - connect(aBtnGrp, SIGNAL(buttonClicked(int)), myStackWgt, SLOT(raiseWidget(int)) ); + connect(aBtnGrp, SIGNAL(buttonClicked(int)), myStackWgt, SLOT(setCurrentIndex(int)) ); SUIT_Study* aSUITStudy = myViewWindow->getViewManager()->study(); SalomeApp_Study* anAppStudy = dynamic_cast(aSUITStudy); -- 2.39.2