mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-13 17:18:35 +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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
myGroupArguments->hide();
|
||||||
|
myGroupArguments->show();
|
||||||
|
this->resize(this->sizeHint().width(), this->minimumSizeHint().height());
|
||||||
// Process selection
|
// Process selection
|
||||||
onSelectionChanged();
|
onSelectionChanged();
|
||||||
}
|
}
|
||||||
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
@ -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;
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user