mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Fixing of bug concerning the resizing dialogue after choice another tabs
This commit is contained in:
parent
5c6d39bbb8
commit
3e7b8f4975
@ -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();
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -141,6 +141,8 @@ private:
|
||||
QMap<int, QLineEdit*> mySelEdit;
|
||||
QMap<int, QLabel*> mySelLbl;
|
||||
|
||||
QWidget* myMainFrame;
|
||||
|
||||
QLineEdit* myName;
|
||||
QPushButton* myOpenBtn;
|
||||
QPushButton* myNewBtn;
|
||||
|
@ -1700,6 +1700,9 @@ void SMESHGUI_SplitVolumesDlg::on3d2dChanged(int isPrism)
|
||||
}
|
||||
SMESHGUI_MultiEditDlg::on3d2dChanged( !myEntityType );
|
||||
myEntityType = 1; // == VOLUME
|
||||
myChoiceWidget->hide();
|
||||
myChoiceWidget->show();
|
||||
resize(minimumSizeHint());
|
||||
onSelectionDone();
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ SMESHGUI_PatternWidget::SMESHGUI_PatternWidget( QWidget* parent )
|
||||
: QFrame( parent )
|
||||
{
|
||||
myMinU = myMinV = myMaxU = myMaxV = 0;
|
||||
setMinimumHeight( 150 );
|
||||
//setMinimumHeight( 150 );
|
||||
}
|
||||
|
||||
//=================================================================================
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -453,6 +453,8 @@ void SMESHGUI_SymmetryDlg::ConstructorsClicked (int constructorId)
|
||||
onDisplaySimulation(true);
|
||||
|
||||
QApplication::instance()->processEvents();
|
||||
myEditCurrentArgument->hide();
|
||||
myEditCurrentArgument->show();
|
||||
updateGeometry();
|
||||
resize(100,100);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user