Version: 8.3.0
StdMeshersGUI_LayerDistributionParamWdg Class Reference

Widget controlling hypothesis parameter that is another hypothesis. More...

#include <StdMeshersGUI_LayerDistributionParamWdg.h>

Inheritance diagram for StdMeshersGUI_LayerDistributionParamWdg:

Public Member Functions

 StdMeshersGUI_LayerDistributionParamWdg (SMESH::SMESH_Hypothesis_ptr holderHyp, SMESH::SMESH_Hypothesis_ptr distribHyp, const QString &name, QDialog *dlg)
 Constructor initialized by filter. More...
 
 ~StdMeshersGUI_LayerDistributionParamWdg ()
 Destructor. More...
 
SMESH::SMESH_Hypothesis_var GetHypothesis ()
 
QString GetValue () const
 
bool IsOk () const
 

Private Slots

void onCreate ()
 Show popup with available types. More...
 
void onEdit ()
 Edit hypothesis. More...
 
void onHypTypePopup (QAction *)
 Create a new hyp of selected type. More...
 
void onEdited (int)
 

Private Member Functions

void init ()
 Create a layout, initialize fields. More...
 
void set (SMESH::SMESH_Hypothesis_ptr)
 initialize fields with hypothesis More...
 

Private Attributes

SMESH::SMESH_Hypothesis_var myHyp
 
SMESH::SMESH_Hypothesis_var myHolderHyp
 
SMESHGUImySMESHGUI
 
QPushButton * myCreateButton
 
QPushButton * myEditButton
 
QMenu * myHypTypePopup
 
QDialogmyDlg
 
QString myName
 
QString myParamValue
 
QStringList myHypTypes
 

Detailed Description

Widget controlling hypothesis parameter that is another hypothesis.

Constructor & Destructor Documentation

StdMeshersGUI_LayerDistributionParamWdg::StdMeshersGUI_LayerDistributionParamWdg ( SMESH::SMESH_Hypothesis_ptr  holderHyp,
SMESH::SMESH_Hypothesis_ptr  distribHyp,
const QString &  name,
QDialog dlg 
)

Constructor initialized by filter.

Parameters
f- object filter
StdMeshersGUI_LayerDistributionParamWdg::~StdMeshersGUI_LayerDistributionParamWdg ( )

Destructor.

Member Function Documentation

SMESH::SMESH_Hypothesis_var StdMeshersGUI_LayerDistributionParamWdg::GetHypothesis ( )
QString StdMeshersGUI_LayerDistributionParamWdg::GetValue ( ) const
bool StdMeshersGUI_LayerDistributionParamWdg::IsOk ( ) const
void StdMeshersGUI_LayerDistributionParamWdg::onCreate ( )
privateslot

Show popup with available types.

References myHypTypePopup.

Referenced by init().

void StdMeshersGUI_LayerDistributionParamWdg::onEdit ( )
privateslot
void StdMeshersGUI_LayerDistributionParamWdg::onEdited ( int  result)
privateslot

References myDlg.

Referenced by onEdit().

void StdMeshersGUI_LayerDistributionParamWdg::onHypTypePopup ( QAction *  a)
privateslot

Create a new hyp of selected type.

Parameters
int- selected type index

References SMESH::GetHypothesisData(), SMESHGUI::GetSMESHGen(), HypothesisData::Label, myHypTypes, mySMESHGUI, onEdit(), HypothesisData::ServerLibName, and HypothesisData::TypeName.

Referenced by init().

void StdMeshersGUI_LayerDistributionParamWdg::set ( SMESH::SMESH_Hypothesis_ptr  hyp)
private

initialize fields with hypothesis

Parameters
hyp- hypothesis

References myCreateButton, myEditButton, myHolderHyp, myHyp, and myParamValue.

Field Documentation

QPushButton* StdMeshersGUI_LayerDistributionParamWdg::myCreateButton
private

Referenced by init(), and set().

QDialog* StdMeshersGUI_LayerDistributionParamWdg::myDlg
private

Referenced by onEdit(), and onEdited().

QPushButton* StdMeshersGUI_LayerDistributionParamWdg::myEditButton
private

Referenced by init(), and set().

SMESH::SMESH_Hypothesis_var StdMeshersGUI_LayerDistributionParamWdg::myHolderHyp
private

Referenced by set().

SMESH::SMESH_Hypothesis_var StdMeshersGUI_LayerDistributionParamWdg::myHyp
private

Referenced by onEdit(), and set().

QMenu* StdMeshersGUI_LayerDistributionParamWdg::myHypTypePopup
private

Referenced by init(), and onCreate().

QStringList StdMeshersGUI_LayerDistributionParamWdg::myHypTypes
private

Referenced by init(), and onHypTypePopup().

QString StdMeshersGUI_LayerDistributionParamWdg::myName
private

Referenced by onEdit().

QString StdMeshersGUI_LayerDistributionParamWdg::myParamValue
private

Referenced by set().

SMESHGUI* StdMeshersGUI_LayerDistributionParamWdg::mySMESHGUI
private

Referenced by init(), and onHypTypePopup().