//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 );
// 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 );
myDistVal->setValue(1);
aHLay->addWidget( myDistVal );
+ aAutoLay->addWidget( aDistPane );
+
myStackWgt->insertWidget( AutoMode, aAutoPane);
// Manual Pane
this, SLOT( onFieldChange(int) ) );
QWidget* aCoordPane = new QWidget( aManualPane);
+ aHLay->addWidget( aCoordPane );
QGridLayout* aCoordLayout = new QGridLayout( aCoordPane );
aCoordLayout->setSpacing(5);
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<SalomeApp_Study*>(aSUITStudy);