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;
}
}
myGroupArguments->hide();
myGroupArguments->show();
this->resize(this->sizeHint().width(), this->minimumSizeHint().height());
// Process selection
onSelectionChanged();
}

View File

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

View File

@ -119,13 +119,13 @@ SMESHGUI_MeshPatternDlg::SMESHGUI_MeshPatternDlg( SMESHGUI* theModule )
aDlgLay->setMargin( MARGIN );
aDlgLay->setSpacing( SPACING );
QWidget* aMainFrame = createMainFrame ( this );
myMainFrame = createMainFrame ( this );
QWidget* aBtnFrame = createButtonFrame( this );
aDlgLay->addWidget( aMainFrame );
aDlgLay->addWidget( myMainFrame );
aDlgLay->addWidget( aBtnFrame );
aDlgLay->setStretchFactor( aMainFrame, 1 );
aDlgLay->setStretchFactor( myMainFrame, 1 );
mySelector = (SMESH::GetViewWindow( mySMESHGUI ))->GetSelector();
@ -1201,11 +1201,16 @@ void SMESHGUI_MeshPatternDlg::onTypeChanged (int theType)
myNode2Lbl->show();
myNode2 ->show();
}
mySelInput = Mesh;
activateSelection();
updateWgState();
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 ? myGeomGrp->hide() : myGeomGrp->show();
myMainFrame->hide();
myMainFrame->show();
displayPreview();
resize(minimumSizeHint());
}
//=======================================================================

View File

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

View File

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

View File

@ -42,7 +42,7 @@ SMESHGUI_PatternWidget::SMESHGUI_PatternWidget( QWidget* parent )
: QFrame( parent )
{
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()));
QApplication::instance()->processEvents();
myEditCurrentArgument->hide();
myEditCurrentArgument->show();
updateGeometry();
resize(100,100);
}

View File

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

View File

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