Dialog to show result mesh statistic. More...
#include <SMESHGUI_Make2DFrom3DOp.h>

Public Types | |
| enum | { MeshOrGroups } |
Public Member Functions | |
| SMESHGUI_Make2DFrom3DDlg (QWidget *) | |
| virtual | ~SMESHGUI_Make2DFrom3DDlg () |
| SMESH::Bnd_Dimension | mode () const |
| bool | needNewMesh () const |
| QString | getNewMeshName () const |
| void | setNewMeshName (const QString &) |
| void | setNewMeshEnabled (bool) |
| bool | getNewMeshEnabled () const |
| bool | needGroup () const |
| QString | getGroupName () const |
| void | setGroupName (const QString &) |
| bool | copySource () const |
| 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 Slots | |
| void | onTargetChanged () |
| void | onGroupChecked () |
Private Attributes | |
| QRadioButton * | my2dFrom3dRB |
| QRadioButton * | my1dFrom2dRB |
| QRadioButton * | my1dFrom3dRB |
| QRadioButton * | myThisMeshRB |
| QRadioButton * | myNewMeshRB |
| QLineEdit * | myMeshName |
| QCheckBox * | myCopyCheck |
| QCheckBox * | myGroupCheck |
| QLineEdit * | myGroupName |
Friends | |
| class | SMESHGUI_Make2DFrom3DOp |
Dialog to show result mesh statistic.
Copy Mesh dialog box.
Definition at line 44 of file SMESHGUI_Make2DFrom3DOp.h.
| anonymous enum |
| SMESHGUI_Make2DFrom3DDlg::SMESHGUI_Make2DFrom3DDlg | ( | QWidget * | parent | ) |
Definition at line 69 of file SMESHGUI_Make2DFrom3DOp.cxx.
References Control(), MARGIN, MeshOrGroups, my1dFrom2dRB, my2dFrom3dRB, myCopyCheck, myGroupCheck, myGroupName, myMeshName, myNewMeshRB, myThisMeshRB, onGroupChecked(), onTargetChanged(), and SPACING.
: SMESHGUI_Dialog( parent, false, true, OK | Apply | Close | Help ) { // title setWindowTitle( tr("CAPTION") ); // mode QGroupBox* aModeGrp = new QGroupBox( tr( "MODE" ), mainFrame() ); QHBoxLayout* aModeGrpLayout = new QHBoxLayout( aModeGrp ); aModeGrpLayout->setMargin( MARGIN ); aModeGrpLayout->setSpacing( SPACING ); my2dFrom3dRB = new QRadioButton( tr( "2D_FROM_3D" ), aModeGrp ); my1dFrom2dRB = new QRadioButton( tr( "1D_FROM_2D" ), aModeGrp ); //my1dFrom3dRB = new QRadioButton( tr( "1D_FROM_3D" ), aModeGrp ); aModeGrpLayout->addWidget( my2dFrom3dRB ); aModeGrpLayout->addWidget( my1dFrom2dRB ); //aModeGrpLayout->addWidget( my1dFrom3dRB ); // // Groups of mesh faces // setObjectPixmap( "SMESH", tr( "ICON_SELECT" ) ); // createObject( tr( "Groups" ), mainFrame(), Groups ); // setNameIndication( Groups, ListOfNames ); // objectWg( Groups, Btn )->hide(); // Mesh or Groups //setObjectPixmap( "SMESH", tr( "ICON_SELECT" ) ); createObject( tr( "Groups" ), mainFrame(), MeshOrGroups ); setNameIndication( MeshOrGroups, ListOfNames ); objectWg( MeshOrGroups, Btn )->hide(); // target QGroupBox* aTargetGrp = new QGroupBox( tr( "TARGET" ), mainFrame() ); QGridLayout* aTargetGrpLayout = new QGridLayout( aTargetGrp ); aTargetGrpLayout->setMargin( MARGIN ); aTargetGrpLayout->setSpacing( SPACING ); myThisMeshRB = new QRadioButton( tr( "THIS_MESH" ), aTargetGrp ); myNewMeshRB = new QRadioButton( tr( "NEW_MESH" ), aTargetGrp ); myMeshName = new QLineEdit( aTargetGrp ); myCopyCheck = new QCheckBox( tr( "COPY_SRC" ), aTargetGrp ); aTargetGrpLayout->addWidget( myThisMeshRB, 0, 0 ); aTargetGrpLayout->addWidget( myNewMeshRB, 1, 0 ); aTargetGrpLayout->addWidget( myMeshName, 1, 1 ); aTargetGrpLayout->addWidget( myCopyCheck, 2, 0 ); myGroupCheck = new QCheckBox( tr( "CREATE_GROUP" ), mainFrame() ); myGroupName = new QLineEdit( mainFrame() ); // layout QGridLayout* aDlgLay = new QGridLayout( mainFrame() ); aDlgLay->setMargin( 0 ); aDlgLay->setSpacing( SPACING ); aDlgLay->addWidget( aModeGrp, 0, 0, 1, 3 ); aDlgLay->addWidget( objectWg( MeshOrGroups, Label ), 1, 0 ); aDlgLay->addWidget( objectWg( MeshOrGroups, Control ), 1, 1 ); aDlgLay->addWidget( aTargetGrp, 2, 0, 1, 3 ); aDlgLay->addWidget( myGroupCheck, 3, 0 ); aDlgLay->addWidget( myGroupName, 3, 1, 1, 2 ); // connect signals connect( myThisMeshRB, SIGNAL( clicked() ), this, SLOT( onTargetChanged() ) ); connect( myNewMeshRB, SIGNAL( clicked() ), this, SLOT( onTargetChanged() ) ); connect( myGroupCheck, SIGNAL( clicked() ), this, SLOT( onGroupChecked() ) ); // init dlg my2dFrom3dRB->setChecked( true ); myThisMeshRB->setChecked( true ); onTargetChanged(); onGroupChecked(); }
| SMESHGUI_Make2DFrom3DDlg::~SMESHGUI_Make2DFrom3DDlg | ( | ) | [virtual] |
Definition at line 138 of file SMESHGUI_Make2DFrom3DOp.cxx.
{
}
| bool SMESHGUI_Make2DFrom3DDlg::copySource | ( | ) | const |
Definition at line 197 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myCopyCheck.
{
return myCopyCheck->isChecked();
}
| 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.
| QString SMESHGUI_Make2DFrom3DDlg::getGroupName | ( | ) | const |
Definition at line 187 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myGroupName.
{
return myGroupName->text().trimmed();
}
| bool SMESHGUI_Make2DFrom3DDlg::getNewMeshEnabled | ( | ) | const |
Definition at line 177 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myNewMeshRB.
{
return myNewMeshRB->isEnabled();
}
| QString SMESHGUI_Make2DFrom3DDlg::getNewMeshName | ( | ) | const |
Definition at line 157 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myMeshName.
{
return myMeshName->text().trimmed();
}
| SMESH::Bnd_Dimension SMESHGUI_Make2DFrom3DDlg::mode | ( | ) | const |
Definition at line 142 of file SMESHGUI_Make2DFrom3DOp.cxx.
References SMESH.BND_1DFROM2D, SMESH.BND_1DFROM3D, SMESH.BND_2DFROM3D, my1dFrom2dRB, and my2dFrom3dRB.
{
if ( my2dFrom3dRB->isChecked() )
return SMESH::BND_2DFROM3D;
else if ( my1dFrom2dRB->isChecked() )
return SMESH::BND_1DFROM2D;
else
return SMESH::BND_1DFROM3D;
}
| bool SMESHGUI_Make2DFrom3DDlg::needGroup | ( | ) | const |
Definition at line 182 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myGroupCheck.
{
return myGroupCheck->isChecked();
}
| bool SMESHGUI_Make2DFrom3DDlg::needNewMesh | ( | ) | const |
Definition at line 152 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myNewMeshRB.
{
return myNewMeshRB->isChecked();
}
| void SMESHGUI_Make2DFrom3DDlg::onGroupChecked | ( | ) | [private, slot] |
Definition at line 208 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myGroupCheck, and myGroupName.
Referenced by SMESHGUI_Make2DFrom3DDlg().
{
myGroupName->setEnabled( myGroupCheck->isChecked() );
}
| void SMESHGUI_Make2DFrom3DDlg::onTargetChanged | ( | ) | [private, slot] |
Definition at line 202 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myCopyCheck, myMeshName, and myNewMeshRB.
Referenced by setNewMeshEnabled(), and SMESHGUI_Make2DFrom3DDlg().
{
myMeshName->setEnabled( myNewMeshRB->isChecked() );
myCopyCheck->setEnabled( myNewMeshRB->isChecked() );
}
| 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_Make2DFrom3DDlg::setGroupName | ( | const QString & | name | ) |
Definition at line 192 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myGroupName.
{
myGroupName->setText( name );
}
| void SMESHGUI_Make2DFrom3DDlg::setNewMeshEnabled | ( | bool | enable | ) |
Definition at line 167 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myNewMeshRB, myThisMeshRB, and onTargetChanged().
{
if ( !enable )
myThisMeshRB->setChecked( true );
myNewMeshRB->setEnabled( enable );
onTargetChanged();
}
| void SMESHGUI_Make2DFrom3DDlg::setNewMeshName | ( | const QString & | name | ) |
Definition at line 162 of file SMESHGUI_Make2DFrom3DOp.cxx.
References myMeshName.
{
myMeshName->setText( name );
}
| 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_Make2DFrom3DOp [friend] |
Definition at line 83 of file SMESHGUI_Make2DFrom3DOp.h.
QRadioButton* SMESHGUI_Make2DFrom3DDlg.my1dFrom2dRB [private] |
Definition at line 74 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by mode(), and SMESHGUI_Make2DFrom3DDlg().
QRadioButton* SMESHGUI_Make2DFrom3DDlg.my1dFrom3dRB [private] |
Definition at line 75 of file SMESHGUI_Make2DFrom3DOp.h.
QRadioButton* SMESHGUI_Make2DFrom3DDlg.my2dFrom3dRB [private] |
Definition at line 73 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by mode(), and SMESHGUI_Make2DFrom3DDlg().
QCheckBox* SMESHGUI_Make2DFrom3DDlg.myCopyCheck [private] |
Definition at line 79 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by copySource(), onTargetChanged(), and SMESHGUI_Make2DFrom3DDlg().
QCheckBox* SMESHGUI_Make2DFrom3DDlg.myGroupCheck [private] |
Definition at line 80 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by needGroup(), onGroupChecked(), and SMESHGUI_Make2DFrom3DDlg().
QLineEdit* SMESHGUI_Make2DFrom3DDlg.myGroupName [private] |
Definition at line 81 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by getGroupName(), onGroupChecked(), setGroupName(), and SMESHGUI_Make2DFrom3DDlg().
QLineEdit* SMESHGUI_Make2DFrom3DDlg.myMeshName [private] |
Definition at line 78 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by getNewMeshName(), onTargetChanged(), setNewMeshName(), and SMESHGUI_Make2DFrom3DDlg().
QRadioButton* SMESHGUI_Make2DFrom3DDlg.myNewMeshRB [private] |
Definition at line 77 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by getNewMeshEnabled(), needNewMesh(), onTargetChanged(), setNewMeshEnabled(), and SMESHGUI_Make2DFrom3DDlg().
QRadioButton* SMESHGUI_Make2DFrom3DDlg.myThisMeshRB [private] |
Definition at line 76 of file SMESHGUI_Make2DFrom3DOp.h.
Referenced by setNewMeshEnabled(), and SMESHGUI_Make2DFrom3DDlg().