#include <SMESHGUI_ConvToQuadDlg.h>

Signals | |
| void | onClicked (int) |
Public Member Functions | |
| SMESHGUI_ConvToQuadDlg () | |
| virtual | ~SMESHGUI_ConvToQuadDlg () |
| bool | IsMediumNdsOnGeom () const |
| void | SetMediumNdsOnGeom (const bool) |
| bool | IsEnabledCheck () const |
| void | SetEnabledCheck (const bool) |
| void | SetEnabledGroup (const bool) |
| void | SetEnabledControls (const bool) |
| void | SetEnabledRB (const int, const bool) |
| int | CurrentRB () |
| void | ShowWarning (bool) |
| bool | isWarningShown () |
| 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 Attributes | |
| QCheckBox * | myMedNdsOnGeom |
| QGroupBox * | myBGBox |
| QButtonGroup * | myBG |
| QRadioButton * | myRB1 |
| QRadioButton * | myRB2 |
| QLabel * | myWarning |
Definition at line 41 of file SMESHGUI_ConvToQuadDlg.h.
| SMESHGUI_ConvToQuadDlg::SMESHGUI_ConvToQuadDlg | ( | ) |
Definition at line 44 of file SMESHGUI_ConvToQuadDlg.cxx.
References Control(), MARGIN, myBG, myBGBox, myMedNdsOnGeom, myRB1, myRB2, myWarning, onClicked(), and SPACING.
: SMESHGUI_Dialog( 0, false, true ) { setWindowTitle( tr( "CAPTION" ) ); // Create top controls // mesh setObjectPixmap( "SMESH", tr( "ICON_SELECT" ) ); createObject( tr( "MESH" ), mainFrame(), 0 ); //Create check box myMedNdsOnGeom = new QCheckBox( tr( "MEDIUMNDS" ), mainFrame() ); //Create RadioButtons myBGBox = new QGroupBox( mainFrame() ); myBG = new QButtonGroup( mainFrame() ); QVBoxLayout* aBGLayout = new QVBoxLayout( myBGBox ); aBGLayout->setMargin(MARGIN); aBGLayout->setSpacing(SPACING); myRB1 = new QRadioButton( tr( "RADIOBTN_1" ), myBGBox ); myRB2 = new QRadioButton( tr( "RADIOBTN_2" ), myBGBox ); aBGLayout->addWidget(myRB1); aBGLayout->addWidget(myRB2); myBG->addButton(myRB1, 0); myBG->addButton(myRB2, 1); myRB1->setChecked( true ); myWarning = new QLabel(QString("<b>%1</b>").arg(tr("NON_CONFORM_WARNING")), mainFrame()); // Fill layout QGridLayout* aLay = new QGridLayout( mainFrame() ); aLay->setMargin( 5 ); aLay->setSpacing( 5 ); aLay->addWidget( objectWg( 0, Label ), 0, 0 ); aLay->addWidget( objectWg( 0, Btn ), 0, 1 ); aLay->addWidget( objectWg( 0, Control ), 0, 2 ); aLay->addWidget( myMedNdsOnGeom, 1, 0, 1, 3 ); aLay->addWidget( myBGBox, 2, 0, 1, 3 ); aLay->addWidget( myWarning, 3, 0, 1, 3 ); connect(myBG, SIGNAL( buttonClicked( int ) ), this, SIGNAL( onClicked( int ) ) ); }
| SMESHGUI_ConvToQuadDlg::~SMESHGUI_ConvToQuadDlg | ( | ) | [virtual] |
Definition at line 91 of file SMESHGUI_ConvToQuadDlg.cxx.
{
}
| int SMESHGUI_ConvToQuadDlg::CurrentRB | ( | ) |
Definition at line 115 of file SMESHGUI_ConvToQuadDlg.cxx.
References myBG.
Referenced by SMESHGUI_ConvToQuadOp.onApply().
{
return myBG->checkedId();
}
| 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.
| bool SMESHGUI_ConvToQuadDlg::IsEnabledCheck | ( | ) | const |
Definition at line 105 of file SMESHGUI_ConvToQuadDlg.cxx.
References myMedNdsOnGeom.
Referenced by SMESHGUI_ConvToQuadOp.onApply().
{
return myMedNdsOnGeom->isEnabled();
}
| bool SMESHGUI_ConvToQuadDlg::IsMediumNdsOnGeom | ( | ) | const |
Definition at line 95 of file SMESHGUI_ConvToQuadDlg.cxx.
References myMedNdsOnGeom.
Referenced by SMESHGUI_ConvToQuadOp.onApply().
{
return !myMedNdsOnGeom->isChecked();
}
| bool SMESHGUI_ConvToQuadDlg::isWarningShown | ( | ) |
Definition at line 128 of file SMESHGUI_ConvToQuadDlg.cxx.
References myWarning.
{
return myWarning->isVisible();
}
| void SMESHGUI_ConvToQuadDlg.onClicked | ( | int | ) | [signal] |
Referenced by SetEnabledRB(), and SMESHGUI_ConvToQuadDlg().
| 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_ConvToQuadDlg::SetEnabledCheck | ( | const bool | theCheck | ) |
Definition at line 110 of file SMESHGUI_ConvToQuadDlg.cxx.
References myMedNdsOnGeom.
Referenced by SMESHGUI_ConvToQuadOp.ConnectRadioButtons().
{
myMedNdsOnGeom->setEnabled( theCheck );
}
| void SMESHGUI_ConvToQuadDlg::SetEnabledControls | ( | const bool | theCheck | ) |
Definition at line 133 of file SMESHGUI_ConvToQuadDlg.cxx.
References myMedNdsOnGeom, myRB1, and myRB2.
Referenced by SMESHGUI_ConvToQuadOp.selectionDone().
{
//myBGBox->setEnabled( theCheck );
myRB1->setEnabled( theCheck );
myRB2->setEnabled( theCheck );
myMedNdsOnGeom->setEnabled( theCheck );
//setButtonEnabled( theCheck, QtxDialog::OK | QtxDialog::Apply );
}
| void SMESHGUI_ConvToQuadDlg.SetEnabledGroup | ( | const bool | ) |
Definition at line 142 of file SMESHGUI_ConvToQuadDlg.cxx.
References myBG, myRB1, myRB2, and onClicked().
Referenced by SMESHGUI_ConvToQuadOp.selectionDone().
| void SMESHGUI_ConvToQuadDlg::SetMediumNdsOnGeom | ( | const bool | theCheck | ) |
Definition at line 100 of file SMESHGUI_ConvToQuadDlg.cxx.
References myMedNdsOnGeom.
Referenced by SMESHGUI_ConvToQuadOp.startOperation().
{
myMedNdsOnGeom->setChecked(theCheck);
}
| 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();
}
| void SMESHGUI_ConvToQuadDlg::ShowWarning | ( | bool | toShow | ) |
Definition at line 120 of file SMESHGUI_ConvToQuadDlg.cxx.
References myWarning.
Referenced by SMESHGUI_ConvToQuadOp.selectionDone(), and SMESHGUI_ConvToQuadOp.startOperation().
QButtonGroup* SMESHGUI_ConvToQuadDlg.myBG [private] |
Definition at line 66 of file SMESHGUI_ConvToQuadDlg.h.
Referenced by CurrentRB(), SetEnabledRB(), and SMESHGUI_ConvToQuadDlg().
QGroupBox* SMESHGUI_ConvToQuadDlg.myBGBox [private] |
Definition at line 65 of file SMESHGUI_ConvToQuadDlg.h.
Referenced by SMESHGUI_ConvToQuadDlg().
QCheckBox* SMESHGUI_ConvToQuadDlg.myMedNdsOnGeom [private] |
Definition at line 64 of file SMESHGUI_ConvToQuadDlg.h.
Referenced by IsEnabledCheck(), IsMediumNdsOnGeom(), SetEnabledCheck(), SetEnabledControls(), SetMediumNdsOnGeom(), and SMESHGUI_ConvToQuadDlg().
QRadioButton* SMESHGUI_ConvToQuadDlg.myRB1 [private] |
Definition at line 67 of file SMESHGUI_ConvToQuadDlg.h.
Referenced by SetEnabledControls(), SetEnabledRB(), and SMESHGUI_ConvToQuadDlg().
QRadioButton* SMESHGUI_ConvToQuadDlg.myRB2 [private] |
Definition at line 68 of file SMESHGUI_ConvToQuadDlg.h.
Referenced by SetEnabledControls(), SetEnabledRB(), and SMESHGUI_ConvToQuadDlg().
QLabel* SMESHGUI_ConvToQuadDlg.myWarning [private] |
Definition at line 69 of file SMESHGUI_ConvToQuadDlg.h.
Referenced by isWarningShown(), ShowWarning(), and SMESHGUI_ConvToQuadDlg().