Widget controlling hypothesis parameter that is another hypothesis. More...
#include <StdMeshersGUI_LayerDistributionParamWdg.h>
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 |
SMESHGUI * | mySMESHGUI |
QPushButton * | myCreateButton |
QPushButton * | myEditButton |
QMenu * | myHypTypePopup |
QDialog * | myDlg |
QString | myName |
QString | myParamValue |
QStringList | myHypTypes |
Widget controlling hypothesis parameter that is another hypothesis.
StdMeshersGUI_LayerDistributionParamWdg::StdMeshersGUI_LayerDistributionParamWdg | ( | SMESH::SMESH_Hypothesis_ptr | holderHyp, |
SMESH::SMESH_Hypothesis_ptr | distribHyp, | ||
const QString & | name, | ||
QDialog * | dlg | ||
) |
Constructor initialized by filter.
f | - object filter |
StdMeshersGUI_LayerDistributionParamWdg::~StdMeshersGUI_LayerDistributionParamWdg | ( | ) |
Destructor.
SMESH::SMESH_Hypothesis_var StdMeshersGUI_LayerDistributionParamWdg::GetHypothesis | ( | ) |
Referenced by StdMeshersGUI_StdHypothesisCreator::storeParams().
QString StdMeshersGUI_LayerDistributionParamWdg::GetValue | ( | ) | const |
|
private |
Create a layout, initialize fields.
References SMESH::GetAvailableHypotheses(), SMESH::GetHypothesisData(), SMESHGUI::GetSMESHGUI(), SMESH::IsAvailableHypothesis(), HypothesisData::Label, myCreateButton, myEditButton, myHypTypePopup, myHypTypes, mySMESHGUI, onCreate(), onEdit(), onHypTypePopup(), SPACING, and HypothesisData::TypeName.
bool StdMeshersGUI_LayerDistributionParamWdg::IsOk | ( | ) | const |
Referenced by StdMeshersGUI_StdHypothesisCreator::checkParams().
|
privateslot |
|
privateslot |
Edit hypothesis.
References SMESHGUI_GenericHypothesisCreator::edit(), SMESH::GetHypothesisCreator(), myDlg, myHyp, myName, and onEdited().
Referenced by init(), and onHypTypePopup().
|
privateslot |
|
privateslot |
Create a new hyp of selected type.
int | - selected type index |
References SMESH::GetHypothesisData(), SMESHGUI::GetSMESHGen(), HypothesisData::Label, myHypTypes, mySMESHGUI, onEdit(), HypothesisData::ServerLibName, and HypothesisData::TypeName.
Referenced by init().
|
private |
initialize fields with hypothesis
hyp | - hypothesis |
References myCreateButton, myEditButton, myHolderHyp, myHyp, and myParamValue.
|
private |
|
private |
Referenced by onEdit(), and onEdited().
|
private |
|
private |
Referenced by set().
|
private |
|
private |
Referenced by init(), and onCreate().
|
private |
Referenced by init(), and onHypTypePopup().
|
private |
Referenced by onEdit().
|
private |
Referenced by set().
|
private |
Referenced by init(), and onHypTypePopup().