Dialog to find elements by a point coordinates. More...
#include <SMESHGUI_FindElemByPointDlg.h>

Signals | |
| void | rejectedDlg () |
Public Member Functions | |
| SMESHGUI_FindElemByPointDlg () | |
| Dialog to find elements by a point coordinates. | |
| 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 Slots | |
| virtual void | reject () |
| Method needed for internal cuisine. | |
Protected Member Functions | |
| SUIT_Desktop * | desktop () const |
| find desktop of active application | |
| SUIT_ResourceMgr * | resourceMgr () const |
| gets resource manager | |
Private Member Functions | |
| QWidget * | createMainFrame (QWidget *) |
Private Attributes | |
| QLineEdit * | myMeshName |
| SMESHGUI_SpinBox * | myX |
| SMESHGUI_SpinBox * | myY |
| SMESHGUI_SpinBox * | myZ |
| QtxComboBox * | myElemTypeCombo |
| QPushButton * | myFindBtn |
| QListWidget * | myFoundList |
| QString | myHelpFileName |
Friends | |
| class | SMESHGUI_FindElemByPointOp |
Dialog to find elements by a point coordinates.
Definition at line 87 of file SMESHGUI_FindElemByPointDlg.h.
| SMESHGUI_FindElemByPointDlg::SMESHGUI_FindElemByPointDlg | ( | ) |
Dialog to find elements by a point coordinates.
Definition at line 76 of file SMESHGUI_FindElemByPointDlg.cxx.
References createMainFrame(), and SPACING.
: SMESHGUI_Dialog( 0, false, true, OK | Help ) { setWindowTitle(tr("CAPTION")); QVBoxLayout* aDlgLay = new QVBoxLayout (mainFrame()); aDlgLay->setMargin(0); aDlgLay->setSpacing(SPACING); QWidget* aMainFrame = createMainFrame (mainFrame()); aDlgLay->addWidget(aMainFrame); aDlgLay->setStretchFactor(aMainFrame, 1); }
Definition at line 95 of file SMESHGUI_FindElemByPointDlg.cxx.
References SMESH.ALL, COORD_MAX, COORD_MIN, SMESH.EDGE, SMESH.ELEM0D, SMESH.FACE, MARGIN, myElemTypeCombo, myFindBtn, myFoundList, myMeshName, myX, myY, myZ, SMESH.NODE, SMESHGUI_SpinBox.RangeStepAndValidator(), SMESHGUI_SpinBox.SetValue(), SPACING, and SMESH.VOLUME.
Referenced by SMESHGUI_FindElemByPointDlg().
{
QWidget* aFrame = new QWidget(theParent);
//mesh name
QGroupBox* aMeshGrp = new QGroupBox(tr("SMESH_MESH"), aFrame);
QHBoxLayout* aMeshGrpLayout = new QHBoxLayout(aMeshGrp);
aMeshGrpLayout->setMargin(MARGIN);
aMeshGrpLayout->setSpacing(SPACING);
myMeshName = new QLineEdit(aMeshGrp);
aMeshGrpLayout->addWidget(myMeshName);
// coordinates
QGroupBox* aCoordGrp = new QGroupBox(tr("SMESH_COORDINATES"), aFrame);
QHBoxLayout* aCoordGrpLayout = new QHBoxLayout(aCoordGrp);
aCoordGrpLayout->setMargin(MARGIN);
aCoordGrpLayout->setSpacing(SPACING);
QLabel* aXLabel = new QLabel(tr("SMESH_X"), aCoordGrp);
myX = new SMESHGUI_SpinBox(aCoordGrp);
QLabel* aYLabel = new QLabel(tr("SMESH_Y"), aCoordGrp);
myY = new SMESHGUI_SpinBox(aCoordGrp);
QLabel* aZLabel = new QLabel(tr("SMESH_Z"), aCoordGrp);
myZ = new SMESHGUI_SpinBox(aCoordGrp);
myX->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, "length_precision");
myY->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, "length_precision");
myZ->RangeStepAndValidator(COORD_MIN, COORD_MAX, 10.0, "length_precision");
myX->SetValue(0);
myY->SetValue(0);
myZ->SetValue(0);
aCoordGrpLayout->addWidget(aXLabel);
aCoordGrpLayout->addWidget(myX);
aCoordGrpLayout->addWidget(aYLabel);
aCoordGrpLayout->addWidget(myY);
aCoordGrpLayout->addWidget(aZLabel);
aCoordGrpLayout->addWidget(myZ);
// Elements
QGroupBox* elementGrp = new QGroupBox(tr("Elements"), aFrame);
QGridLayout* elementGrpLayout = new QGridLayout(elementGrp);
elementGrpLayout->setSpacing(SPACING);
elementGrpLayout->setMargin(MARGIN);
myFindBtn = new QPushButton(elementGrp);
myFindBtn->setText(tr("Find"));
//myFindBtn->setCheckable(false);
myElemTypeCombo = new QtxComboBox(elementGrp);
myElemTypeCombo->addItem( tr( "MEN_ALL" )); myElemTypeCombo->setId( 0, int( SMESH::ALL ));
myElemTypeCombo->addItem( tr( "MEN_NODE" )); myElemTypeCombo->setId( 1, int( SMESH::NODE ));
myElemTypeCombo->addItem( tr( "MEN_EDGE" )); myElemTypeCombo->setId( 2, int( SMESH::EDGE ));
myElemTypeCombo->addItem( tr( "MEN_FACE" )); myElemTypeCombo->setId( 3, int( SMESH::FACE ));
myElemTypeCombo->addItem( tr("MEN_VOLUME_3D"));myElemTypeCombo->setId( 4, int( SMESH::VOLUME));
myElemTypeCombo->addItem( tr( "MEN_ELEM0D" )); myElemTypeCombo->setId( 5, int( SMESH::ELEM0D));
myFoundList = new QListWidget(elementGrp);
elementGrpLayout->addWidget( myFindBtn, 0, 0 );
elementGrpLayout->addWidget( myElemTypeCombo, 0, 1 );
elementGrpLayout->addWidget( myFoundList, 1, 0, 2, 2 );
QVBoxLayout* aLay = new QVBoxLayout(aFrame);
aLay->setMargin( 0 );
aLay->setSpacing( SPACING );
aLay->addWidget(aMeshGrp);
aLay->addWidget(aCoordGrp);
aLay->addWidget(elementGrp);
// OK instead of "Apply and Close"
if ( QAbstractButton* but = button(OK) )
but->setText( tr("SMESH_BUT_OK"));
return aFrame;
}
| 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().
| void SMESHGUI_FindElemByPointDlg::reject | ( | ) | [protected, virtual, slot] |
Method needed for internal cuisine.
Definition at line 315 of file SMESHGUI_FindElemByPointDlg.cxx.
References rejectedDlg().
{
emit rejectedDlg();
QtxDialog::reject();
}
| void SMESHGUI_FindElemByPointDlg.rejectedDlg | ( | ) | [signal] |
Referenced by reject().
| 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_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_FindElemByPointOp [friend] |
Definition at line 107 of file SMESHGUI_FindElemByPointDlg.h.
QtxComboBox* SMESHGUI_FindElemByPointDlg.myElemTypeCombo [private] |
Definition at line 101 of file SMESHGUI_FindElemByPointDlg.h.
Referenced by createMainFrame(), SMESHGUI_FindElemByPointOp.onElemSelected(), SMESHGUI_FindElemByPointOp.onFind(), SMESHGUI_FindElemByPointOp.SMESHGUI_FindElemByPointOp(), and SMESHGUI_FindElemByPointOp.startOperation().
QPushButton* SMESHGUI_FindElemByPointDlg.myFindBtn [private] |
Definition at line 102 of file SMESHGUI_FindElemByPointDlg.h.
Referenced by createMainFrame(), SMESHGUI_FindElemByPointOp.onSelectionDone(), and SMESHGUI_FindElemByPointOp.SMESHGUI_FindElemByPointOp().
QListWidget* SMESHGUI_FindElemByPointDlg.myFoundList [private] |
Definition at line 103 of file SMESHGUI_FindElemByPointDlg.h.
Referenced by createMainFrame(), SMESHGUI_FindElemByPointOp.onElemSelected(), SMESHGUI_FindElemByPointOp.onElemTypeChange(), SMESHGUI_FindElemByPointOp.onFind(), SMESHGUI_FindElemByPointOp.onSelectionDone(), SMESHGUI_FindElemByPointOp.redisplayPreview(), and SMESHGUI_FindElemByPointOp.SMESHGUI_FindElemByPointOp().
QString SMESHGUI_FindElemByPointDlg.myHelpFileName [private] |
Definition at line 105 of file SMESHGUI_FindElemByPointDlg.h.
QLineEdit* SMESHGUI_FindElemByPointDlg.myMeshName [private] |
Definition at line 97 of file SMESHGUI_FindElemByPointDlg.h.
Referenced by createMainFrame(), and SMESHGUI_FindElemByPointOp.onSelectionDone().
SMESHGUI_SpinBox* SMESHGUI_FindElemByPointDlg.myX [private] |
Definition at line 98 of file SMESHGUI_FindElemByPointDlg.h.
Referenced by createMainFrame(), SMESHGUI_FindElemByPointOp.onFind(), SMESHGUI_FindElemByPointOp.redisplayPreview(), and SMESHGUI_FindElemByPointOp.SMESHGUI_FindElemByPointOp().
SMESHGUI_SpinBox* SMESHGUI_FindElemByPointDlg.myY [private] |
Definition at line 99 of file SMESHGUI_FindElemByPointDlg.h.
Referenced by createMainFrame(), SMESHGUI_FindElemByPointOp.onFind(), SMESHGUI_FindElemByPointOp.redisplayPreview(), and SMESHGUI_FindElemByPointOp.SMESHGUI_FindElemByPointOp().
SMESHGUI_SpinBox* SMESHGUI_FindElemByPointDlg.myZ [private] |
Definition at line 100 of file SMESHGUI_FindElemByPointDlg.h.
Referenced by createMainFrame(), SMESHGUI_FindElemByPointOp.onFind(), SMESHGUI_FindElemByPointOp.redisplayPreview(), and SMESHGUI_FindElemByPointOp.SMESHGUI_FindElemByPointOp().