Dialog to publish a sub-shape of the mesh main shape by selecting mesh elements. More...
#include <SMESHGUI_ShapeByMeshDlg.h>

Public Member Functions | |
| SMESHGUI_ShapeByMeshDlg () | |
| Dialog to publish a sub-shape of the mesh main shape by selecting mesh elements. | |
| virtual | ~SMESHGUI_ShapeByMeshDlg () |
| virtual void | show () |
| virtual void | setContentActive (const bool) |
| set all content to enable (parameter is true) or disable state | |
Static Public Member Functions | |
| static int | prefix (const QString &) |
| Return hard-coded prefix using to differ overlapping types. | |
Protected Member Functions | |
| SUIT_Desktop * | desktop () const |
| find desktop of active application | |
| SUIT_ResourceMgr * | resourceMgr () const |
| gets resource manager | |
Private Member Functions | |
| QFrame * | createMainFrame (QWidget *) |
| void | setMultipleAllowed (bool) |
Private Attributes | |
| QGroupBox * | myElemTypeBox |
| QButtonGroup * | myElemTypeGroup |
| QLineEdit * | myElementId |
| QLineEdit * | myGeomName |
| bool | myIsMultipleAllowed |
Friends | |
| class | SMESHGUI_ShapeByMeshOp |
Dialog to publish a sub-shape of the mesh main shape by selecting mesh elements.
Definition at line 49 of file SMESHGUI_ShapeByMeshDlg.h.
| SMESHGUI_ShapeByMeshDlg::SMESHGUI_ShapeByMeshDlg | ( | ) |
Dialog to publish a sub-shape of the mesh main shape by selecting mesh elements.
Definition at line 83 of file SMESHGUI_ShapeByMeshDlg.cxx.
References createMainFrame(), MARGIN, and SPACING.
: SMESHGUI_Dialog( 0, false, true, OK | Close ) { setWindowTitle(tr("CAPTION")); QVBoxLayout* aDlgLay = new QVBoxLayout (mainFrame()); aDlgLay->setMargin(MARGIN); aDlgLay->setSpacing(SPACING); QFrame* aMainFrame = createMainFrame (mainFrame()); aDlgLay->addWidget(aMainFrame); aDlgLay->setStretchFactor(aMainFrame, 1); }
| SMESHGUI_ShapeByMeshDlg::~SMESHGUI_ShapeByMeshDlg | ( | ) | [virtual] |
Definition at line 152 of file SMESHGUI_ShapeByMeshDlg.cxx.
{
}
Definition at line 103 of file SMESHGUI_ShapeByMeshDlg.cxx.
References MARGIN, myElementId, myElemTypeBox, myElemTypeGroup, myGeomName, myIsMultipleAllowed, and SPACING.
Referenced by SMESHGUI_ShapeByMeshDlg().
{
QFrame* aMainGrp = new QFrame(theParent);
QGridLayout* aLayout = new QGridLayout(aMainGrp);
aLayout->setMargin(0);
aLayout->setSpacing(SPACING);
// elem type
myElemTypeBox = new QGroupBox(tr("SMESH_ELEMENT_TYPE"), aMainGrp);
myElemTypeGroup = new QButtonGroup(aMainGrp);
QHBoxLayout* myElemTypeBoxLayout = new QHBoxLayout(myElemTypeBox);
myElemTypeBoxLayout->setMargin(MARGIN);
myElemTypeBoxLayout->setSpacing(SPACING);
QRadioButton* aEdgeRb = new QRadioButton( tr("SMESH_EDGE"), myElemTypeBox);
QRadioButton* aFaceRb = new QRadioButton( tr("SMESH_FACE"), myElemTypeBox);
QRadioButton* aVolumeRb = new QRadioButton( tr("SMESH_VOLUME"), myElemTypeBox);
myElemTypeBoxLayout->addWidget(aEdgeRb);
myElemTypeBoxLayout->addWidget(aFaceRb);
myElemTypeBoxLayout->addWidget(aVolumeRb);
myElemTypeGroup->addButton(aEdgeRb, 0);
myElemTypeGroup->addButton(aFaceRb, 1);
myElemTypeGroup->addButton(aVolumeRb, 2);
aEdgeRb->setChecked(true);
// element id
QLabel* anIdLabel = new QLabel( tr("ELEMENT_ID"), aMainGrp );
myElementId = new QLineEdit( aMainGrp );
myElementId->setValidator( new SMESHGUI_IdValidator( theParent,
!myIsMultipleAllowed ? 1 : 0 ) ); // 0 for any number of entities
// shape name
QLabel* aNameLabel = new QLabel( tr("GEOMETRY_NAME"), aMainGrp );
myGeomName = new QLineEdit( aMainGrp );
aLayout->addWidget(myElemTypeBox, 0, 0, 1, 2);
aLayout->addWidget(anIdLabel, 1, 0);
aLayout->addWidget(myElementId, 1, 1);
aLayout->addWidget(aNameLabel, 2, 0);
aLayout->addWidget(myGeomName, 2, 1);
return aMainGrp;
}
| SUIT_Desktop * SMESHGUI_Dialog::desktop | ( | ) | const [protected, inherited] |
find desktop of active application
Definition at line 93 of file SMESHGUI_Dialog.cxx.
References ex13_hole1partial.d.
| int SMESHGUI_Dialog::prefix | ( | const QString & | name | ) | [static, inherited] |
Return hard-coded prefix using to differ overlapping types.
Definition at line 110 of file SMESHGUI_Dialog.cxx.
Referenced by SMESHGUI_Dialog.SMESHGUI_Dialog(), and SMESHGUI_SelectionOp.typeById().
| SUIT_ResourceMgr * SMESHGUI_Dialog::resourceMgr | ( | ) | const [protected, inherited] |
gets resource manager
Definition at line 126 of file SMESHGUI_Dialog.cxx.
Referenced by SMESHGUI_ComputeDlg.createMainFrame(), and SMESHGUI_GroupOnShapeDlg.SMESHGUI_GroupOnShapeDlg().
{
return SUIT_Session::session()->resourceMgr();
}
| void SMESHGUI_Dialog::setContentActive | ( | const bool | active | ) | [virtual, inherited] |
set all content to enable (parameter is true) or disable state
Definition at line 79 of file SMESHGUI_Dialog.cxx.
Referenced by SMESHGUI_Operation.setDialogActive().
{
mainFrame()->setEnabled( active );
setButtonEnabled( active, OK );
setButtonEnabled( active, Apply );
setButtonEnabled( active, Cancel );
setButtonEnabled( active, Close );
setButtonEnabled( active, Help );
}
| void SMESHGUI_ShapeByMeshDlg::setMultipleAllowed | ( | bool | isAllowed | ) | [private] |
Definition at line 156 of file SMESHGUI_ShapeByMeshDlg.cxx.
References myIsMultipleAllowed.
Referenced by SMESHGUI_ShapeByMeshOp.SMESHGUI_ShapeByMeshOp().
{
myIsMultipleAllowed = isAllowed;
}
| void SMESHGUI_Dialog::show | ( | ) | [virtual, inherited] |
Definition at line 69 of file SMESHGUI_Dialog.cxx.
Referenced by SMESHGUI_MeshOp.onCloseShapeByMeshDlg(), SMESHGUI_MeshOp.onPublishShapeByMeshDlg(), SMESHGUI_BaseComputeOp.showComputeResult(), SMESHGUI_BaseComputeOp.showEvaluateResult(), SMESHGUI_ShapeByMeshOp.startOperation(), SMESHGUI_MeshOrderOp.startOperation(), SMESHGUI_MeshOp.startOperation(), SMESHGUI_MakeNodeAtPointOp.startOperation(), SMESHGUI_GroupOnShapeOp.startOperation(), SMESHGUI_FindElemByPointOp.startOperation(), and SMESHGUI_ConvToQuadOp.startOperation().
{
adjustSize();
LightApp_Dialog::show();
}
friend class SMESHGUI_ShapeByMeshOp [friend] |
Definition at line 68 of file SMESHGUI_ShapeByMeshDlg.h.
QLineEdit* SMESHGUI_ShapeByMeshDlg.myElementId [private] |
Definition at line 62 of file SMESHGUI_ShapeByMeshDlg.h.
Referenced by SMESHGUI_ShapeByMeshOp.commitOperation(), createMainFrame(), SMESHGUI_ShapeByMeshOp.setElementID(), SMESHGUI_ShapeByMeshOp.SetMesh(), and SMESHGUI_ShapeByMeshOp.SMESHGUI_ShapeByMeshOp().
QGroupBox* SMESHGUI_ShapeByMeshDlg.myElemTypeBox [private] |
Definition at line 60 of file SMESHGUI_ShapeByMeshDlg.h.
Referenced by createMainFrame().
QButtonGroup* SMESHGUI_ShapeByMeshDlg.myElemTypeGroup [private] |
Definition at line 61 of file SMESHGUI_ShapeByMeshDlg.h.
Referenced by SMESHGUI_ShapeByMeshOp.activateSelection(), createMainFrame(), SMESHGUI_ShapeByMeshOp.onElemIdChanged(), SMESHGUI_ShapeByMeshOp.SetMesh(), and SMESHGUI_ShapeByMeshOp.SMESHGUI_ShapeByMeshOp().
QLineEdit* SMESHGUI_ShapeByMeshDlg.myGeomName [private] |
Definition at line 63 of file SMESHGUI_ShapeByMeshDlg.h.
Referenced by SMESHGUI_ShapeByMeshOp.activateSelection(), SMESHGUI_ShapeByMeshOp.commitOperation(), createMainFrame(), and SMESHGUI_ShapeByMeshOp.SetMesh().
Definition at line 65 of file SMESHGUI_ShapeByMeshDlg.h.
Referenced by createMainFrame(), and setMultipleAllowed().