mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
0051789: TC7.2.0: NoteBook cannot update study
- StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr, - const QString&, - QDialog*); + StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr holderHyp, + SMESH::SMESH_Hypothesis_ptr distribHyp, + const QString& name, + QDialog* dlg); private: + SMESH::SMESH_Hypothesis_var myHolderHyp;
This commit is contained in:
parent
daf037da97
commit
15a0260a97
@ -50,15 +50,15 @@
|
|||||||
//================================================================================
|
//================================================================================
|
||||||
|
|
||||||
StdMeshersGUI_LayerDistributionParamWdg
|
StdMeshersGUI_LayerDistributionParamWdg
|
||||||
::StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr hyp,
|
::StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr holderHyp,
|
||||||
const QString& theName,
|
SMESH::SMESH_Hypothesis_ptr distribHyp,
|
||||||
QDialog* dlg):
|
const QString& name,
|
||||||
QWidget(), myName(theName), myDlg( dlg )
|
QDialog* dlg):
|
||||||
|
QWidget(), myName(name), myDlg( dlg )
|
||||||
{
|
{
|
||||||
|
myHolderHyp = SMESH::SMESH_Hypothesis::_duplicate( holderHyp );
|
||||||
init();
|
init();
|
||||||
set( hyp );
|
set( distribHyp );
|
||||||
// if ( IsOk() )
|
|
||||||
// onEdit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
@ -73,6 +73,7 @@ void StdMeshersGUI_LayerDistributionParamWdg::set(SMESH::SMESH_Hypothesis_ptr hy
|
|||||||
myHyp = SMESH::SMESH_Hypothesis::_nil();
|
myHyp = SMESH::SMESH_Hypothesis::_nil();
|
||||||
if ( !CORBA::is_nil( hyp )) {
|
if ( !CORBA::is_nil( hyp )) {
|
||||||
myHyp = SMESH::SMESH_Hypothesis::_duplicate( hyp );
|
myHyp = SMESH::SMESH_Hypothesis::_duplicate( hyp );
|
||||||
|
myHyp->SetHolderHypothesis( myHolderHyp );
|
||||||
myEditButton->setEnabled( true );
|
myEditButton->setEnabled( true );
|
||||||
myCreateButton->setText( tr("CHANGE_TYPE"));
|
myCreateButton->setText( tr("CHANGE_TYPE"));
|
||||||
myParamValue = hyp->GetName();
|
myParamValue = hyp->GetName();
|
||||||
@ -96,7 +97,7 @@ StdMeshersGUI_LayerDistributionParamWdg::~StdMeshersGUI_LayerDistributionParamWd
|
|||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
* \brief Create a leayout, initialize fields
|
* \brief Create a layout, initialize fields
|
||||||
*/
|
*/
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
|
||||||
|
@ -51,9 +51,10 @@ class STDMESHERSGUI_EXPORT StdMeshersGUI_LayerDistributionParamWdg : public QWid
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr,
|
StdMeshersGUI_LayerDistributionParamWdg(SMESH::SMESH_Hypothesis_ptr holderHyp,
|
||||||
const QString&,
|
SMESH::SMESH_Hypothesis_ptr distribHyp,
|
||||||
QDialog*);
|
const QString& name,
|
||||||
|
QDialog* dlg);
|
||||||
~StdMeshersGUI_LayerDistributionParamWdg();
|
~StdMeshersGUI_LayerDistributionParamWdg();
|
||||||
|
|
||||||
SMESH::SMESH_Hypothesis_var GetHypothesis() { return myHyp; }
|
SMESH::SMESH_Hypothesis_var GetHypothesis() { return myHyp; }
|
||||||
@ -74,6 +75,7 @@ private:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
SMESH::SMESH_Hypothesis_var myHyp;
|
SMESH::SMESH_Hypothesis_var myHyp;
|
||||||
|
SMESH::SMESH_Hypothesis_var myHolderHyp;
|
||||||
SMESHGUI* mySMESHGUI;
|
SMESHGUI* mySMESHGUI;
|
||||||
|
|
||||||
QPushButton* myCreateButton;
|
QPushButton* myCreateButton;
|
||||||
|
@ -994,8 +994,8 @@ bool StdMeshersGUI_StdHypothesisCreator::stdParams( ListOfStdParams& p ) const
|
|||||||
|
|
||||||
item.myName = tr( "SMESH_LAYERS_DISTRIBUTION" ); p.append( item );
|
item.myName = tr( "SMESH_LAYERS_DISTRIBUTION" ); p.append( item );
|
||||||
initVariableName( hyp, item, "SetLayerDistribution" );
|
initVariableName( hyp, item, "SetLayerDistribution" );
|
||||||
customWidgets()->append
|
customWidgets()->append ( new StdMeshersGUI_LayerDistributionParamWdg
|
||||||
( new StdMeshersGUI_LayerDistributionParamWdg( h->GetLayerDistribution(), hypName(), dlg()));
|
( h, h->GetLayerDistribution(), hypName(), dlg() ));
|
||||||
}
|
}
|
||||||
else if( hypType()=="NumberOfLayers2D" )
|
else if( hypType()=="NumberOfLayers2D" )
|
||||||
{
|
{
|
||||||
@ -1014,8 +1014,8 @@ bool StdMeshersGUI_StdHypothesisCreator::stdParams( ListOfStdParams& p ) const
|
|||||||
|
|
||||||
item.myName = tr( "SMESH_LAYERS_DISTRIBUTION" ); p.append( item );
|
item.myName = tr( "SMESH_LAYERS_DISTRIBUTION" ); p.append( item );
|
||||||
initVariableName( hyp, item, "SetLayerDistribution" );
|
initVariableName( hyp, item, "SetLayerDistribution" );
|
||||||
customWidgets()->append
|
customWidgets()->append ( new StdMeshersGUI_LayerDistributionParamWdg
|
||||||
( new StdMeshersGUI_LayerDistributionParamWdg( h->GetLayerDistribution(), hypName(), dlg()));
|
( h, h->GetLayerDistribution(), hypName(), dlg() ));
|
||||||
}
|
}
|
||||||
else if( hypType()=="ProjectionSource1D" )
|
else if( hypType()=="ProjectionSource1D" )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user