Fixing of bug concerning the resizing dialogue after choice another tabs

This commit is contained in:
imn 2014-03-28 13:48:56 +04:00
parent 5c6d39bbb8
commit 3e7b8f4975
9 changed files with 30 additions and 8 deletions

View File

@ -384,7 +384,9 @@ void SMESHGUI_DuplicateNodesDlg::onConstructorsClicked (int constructorId)
break; break;
} }
} }
myGroupArguments->hide();
myGroupArguments->show();
this->resize(this->sizeHint().width(), this->minimumSizeHint().height());
// Process selection // Process selection
onSelectionChanged(); onSelectionChanged();
} }

View File

@ -487,6 +487,9 @@ void SMESHGUI_ExtrusionDlg::ConstructorsClicked (int constructorId)
if (CheckBoxMesh->isChecked()) if (CheckBoxMesh->isChecked())
onSelectMesh(true); onSelectMesh(true);
myEditCurrentArgument->hide();
myEditCurrentArgument->show();
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())); connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
} }

View File

@ -119,13 +119,13 @@ SMESHGUI_MeshPatternDlg::SMESHGUI_MeshPatternDlg( SMESHGUI* theModule )
aDlgLay->setMargin( MARGIN ); aDlgLay->setMargin( MARGIN );
aDlgLay->setSpacing( SPACING ); aDlgLay->setSpacing( SPACING );
QWidget* aMainFrame = createMainFrame ( this ); myMainFrame = createMainFrame ( this );
QWidget* aBtnFrame = createButtonFrame( this ); QWidget* aBtnFrame = createButtonFrame( this );
aDlgLay->addWidget( aMainFrame ); aDlgLay->addWidget( myMainFrame );
aDlgLay->addWidget( aBtnFrame ); aDlgLay->addWidget( aBtnFrame );
aDlgLay->setStretchFactor( aMainFrame, 1 ); aDlgLay->setStretchFactor( myMainFrame, 1 );
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector(); mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
@ -1201,11 +1201,16 @@ void SMESHGUI_MeshPatternDlg::onTypeChanged (int theType)
myNode2Lbl->show(); myNode2Lbl->show();
myNode2 ->show(); myNode2 ->show();
} }
mySelInput = Mesh; mySelInput = Mesh;
activateSelection(); activateSelection();
updateWgState(); updateWgState();
displayPreview(); displayPreview();
myPicture2d->hide();
myPicture2d->show();
myPicture2d->resize(minimumSizeHint());
myMainFrame->hide();
myMainFrame->show();
resize(minimumSizeHint());
} }
//======================================================================= //=======================================================================
@ -1331,8 +1336,10 @@ void SMESHGUI_MeshPatternDlg::onModeToggled (bool on)
{ {
on ? myRefineGrp->show() : myRefineGrp->hide(); on ? myRefineGrp->show() : myRefineGrp->hide();
on ? myGeomGrp->hide() : myGeomGrp->show(); on ? myGeomGrp->hide() : myGeomGrp->show();
myMainFrame->hide();
myMainFrame->show();
displayPreview(); displayPreview();
resize(minimumSizeHint());
} }
//======================================================================= //=======================================================================

View File

@ -141,6 +141,8 @@ private:
QMap<int, QLineEdit*> mySelEdit; QMap<int, QLineEdit*> mySelEdit;
QMap<int, QLabel*> mySelLbl; QMap<int, QLabel*> mySelLbl;
QWidget* myMainFrame;
QLineEdit* myName; QLineEdit* myName;
QPushButton* myOpenBtn; QPushButton* myOpenBtn;
QPushButton* myNewBtn; QPushButton* myNewBtn;

View File

@ -1700,6 +1700,9 @@ void SMESHGUI_SplitVolumesDlg::on3d2dChanged(int isPrism)
} }
SMESHGUI_MultiEditDlg::on3d2dChanged( !myEntityType ); SMESHGUI_MultiEditDlg::on3d2dChanged( !myEntityType );
myEntityType = 1; // == VOLUME myEntityType = 1; // == VOLUME
myChoiceWidget->hide();
myChoiceWidget->show();
resize(minimumSizeHint());
onSelectionDone(); onSelectionDone();
} }

View File

@ -42,7 +42,7 @@ SMESHGUI_PatternWidget::SMESHGUI_PatternWidget( QWidget* parent )
: QFrame( parent ) : QFrame( parent )
{ {
myMinU = myMinV = myMaxU = myMaxV = 0; myMinU = myMinV = myMaxU = myMaxV = 0;
setMinimumHeight( 150 ); //setMinimumHeight( 150 );
} }
//================================================================================= //=================================================================================

View File

@ -425,6 +425,8 @@ void SMESHGUI_ScaleDlg::ConstructorsClicked (int constructorId)
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())); connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
QApplication::instance()->processEvents(); QApplication::instance()->processEvents();
myEditCurrentArgument->hide();
myEditCurrentArgument->show();
updateGeometry(); updateGeometry();
resize(100,100); resize(100,100);
} }

View File

@ -453,6 +453,8 @@ void SMESHGUI_SymmetryDlg::ConstructorsClicked (int constructorId)
onDisplaySimulation(true); onDisplaySimulation(true);
QApplication::instance()->processEvents(); QApplication::instance()->processEvents();
myEditCurrentArgument->hide();
myEditCurrentArgument->show();
updateGeometry(); updateGeometry();
resize(100,100); resize(100,100);
} }

View File

@ -451,7 +451,8 @@ void SMESHGUI_TranslationDlg::ConstructorsClicked (int constructorId)
connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())); connect(mySelectionMgr, SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
onDisplaySimulation(true); onDisplaySimulation(true);
myEditCurrentArgument->hide();
myEditCurrentArgument->show();
QApplication::instance()->processEvents(); QApplication::instance()->processEvents();
updateGeometry(); updateGeometry();
resize(100,100); resize(100,100);