#include <SMESHGUI_GroupOpDlg.h>

Public Member Functions | |
| SMESHGUI_CutGroupsDlg (SMESHGUI *) | |
| Constructor. More... | |
| virtual | ~SMESHGUI_CutGroupsDlg () |
| Destructor. More... | |
| void | Init () |
| Init dialog fields, connect signals and slots, show dialog. More... | |
Protected Slots | |
| virtual bool | onApply () |
| SLOT called when apply button is pressed performs operation. More... | |
| virtual void | onSelectionDone () |
| SLOT, called when selection is changed, updates corresponding GUI controls. More... | |
| virtual void | setVisible (bool visible) |
| Calls onSelectionDone() and setVisible() method of base class. More... | |
| virtual void | reject () |
| SLOT called when dialog is closed. More... | |
Protected Member Functions | |
| virtual void | reset () |
| This virtual method redefined from the base class resets state of the dialog, initializes its fields with default value, etc. More... | |
| QString | getName () const |
| Gets name of group to be created. More... | |
| void | setName (const QString &theName) |
| Sets name of group to be created. More... | |
| QGroupBox * | getArgGrp () const |
| Gets pointer on arguments group box. More... | |
| void | setHelpFileName (const QString &theFName) |
| Sets help file name. More... | |
| SMESHGUI * | getSMESHGUI () const |
| Gets pointer to the module instance. More... | |
| bool | isValid (const QList< SMESH::SMESH_GroupBase_var > &theListGrp) |
| Validate list of groups used for operation. More... | |
| bool | getSelectedGroups (QList< SMESH::SMESH_GroupBase_var > &theOutList, QStringList &theOutNames) |
| Gets list of currently selected groups from selection manager. More... | |
| SMESH::ListOfGroups * | convert (const QList< SMESH::SMESH_GroupBase_var > &) |
| Converts QT-list of group to the list acceptable by IDL interface. More... | |
| SALOMEDS::Color | getColor () const |
| Get color to be assigned to group. More... | |
| void | setDefaultGroupColor () |
| Set default color for group. More... | |
| void | setIsApplyAndClose (const bool theFlag) |
| Set value of the flag indicating that the dialog is accepted by Apply & Close button. More... | |
| bool | isApplyAndClose () const |
| Get value of the flag indicating that the dialog is accepted by Apply & Close button. More... | |
Private Slots | |
| void | onOk () |
| SLOT called when "Ok" button pressed performs operation and closes dialog box. More... | |
| void | onHelp () |
| SLOT called when "Help" button pressed shows "Help" page. More... | |
| void | onDeactivate () |
| SLOT called when dialog must be deactivated. More... | |
| void | onOpenView () |
| void | onCloseView () |
Private Member Functions | |
| void | enterEvent (QEvent *) |
| Event filter updates selection mode and selection filter. More... | |
| void | keyPressEvent (QKeyEvent *) |
| Provides reaction on �F1� button pressing. More... | |
| QWidget * | createButtonFrame (QWidget *) |
| Create frame containing buttons. More... | |
| QWidget * | createMainFrame (QWidget *) |
| Creates frame containing dialog's input fields. More... | |
Private Attributes | |
| QPushButton * | myBtn1 |
| QPushButton * | myBtn2 |
| QListWidget * | myListWg1 |
| QListWidget * | myListWg2 |
| QList< SMESH::SMESH_GroupBase_var > | myGroups1 |
| QList< SMESH::SMESH_GroupBase_var > | myGroups2 |
| QPushButton * | myOkBtn |
| QPushButton * | myApplyBtn |
| QPushButton * | myCloseBtn |
| QPushButton * | myHelpBtn |
| QLineEdit * | myNameEdit |
| QGroupBox * | myArgGrp |
| QtxColorButton * | myColorBtn |
| SMESHGUI * | mySMESHGUI |
| LightApp_SelectionMgr * | mySelectionMgr |
| SVTK_Selector * | mySelector |
| QString | myHelpFileName |
| bool | myIsApplyAndClose |
| SMESHGUI_CutGroupsDlg::SMESHGUI_CutGroupsDlg | ( | SMESHGUI * | theModule | ) |
Constructor.
| theModule | module |
References SMESHGUI_GroupOpDlg::getArgGrp(), SMESH::GetResourceMgr(), SMESHGUI_GroupOpDlg::getSMESHGUI(), myBtn1, myBtn2, myListWg1, myListWg2, SMESHGUI_GroupOpDlg::setHelpFileName(), and SPACING.
|
virtual |
Destructor.
|
protectedinherited |
Converts QT-list of group to the list acceptable by IDL interface.
| theIn | input list |
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), and onApply().
Create frame containing buttons.
| theParent | parent widget |
References MARGIN, SMESHGUI_GroupOpDlg::myApplyBtn, SMESHGUI_GroupOpDlg::myCloseBtn, SMESHGUI_GroupOpDlg::myHelpBtn, SMESHGUI_GroupOpDlg::myOkBtn, SMESHGUI_GroupOpDlg::onApply(), SMESHGUI_GroupOpDlg::onHelp(), SMESHGUI_GroupOpDlg::onOk(), SMESHGUI_GroupOpDlg::reject(), and SPACING.
Referenced by SMESHGUI_GroupOpDlg::SMESHGUI_GroupOpDlg().
Creates frame containing dialog's input fields.
| theParent | parent widget |
References MARGIN, SMESHGUI_GroupOpDlg::myArgGrp, SMESHGUI_GroupOpDlg::myColorBtn, SMESHGUI_GroupOpDlg::myNameEdit, and SPACING.
Referenced by SMESHGUI_GroupOpDlg::SMESHGUI_GroupOpDlg().
|
privateinherited |
Event filter updates selection mode and selection filter.
This virtual method is redefined from the base class it is called when dialog obtains input focus
References SMESHGUI::EmitSignalDeactivateDialog(), SMESH::GetViewWindow(), SMESH::GROUP, SMESHGUI_GroupOpDlg::mySelectionMgr, SMESHGUI_GroupOpDlg::mySelector, and SMESHGUI_GroupOpDlg::mySMESHGUI.
|
protectedinherited |
Gets pointer on arguments group box.
References SMESHGUI_GroupOpDlg::myArgGrp.
Referenced by SMESHGUI_CutGroupsDlg(), SMESHGUI_DimGroupDlg::SMESHGUI_DimGroupDlg(), SMESHGUI_IntersectGroupsDlg::SMESHGUI_IntersectGroupsDlg(), and SMESHGUI_UnionGroupsDlg::SMESHGUI_UnionGroupsDlg().
|
protectedinherited |
Get color to be assigned to group.
References SMESHGUI_GroupOpDlg::myColorBtn.
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), onApply(), and SMESHGUI_DimGroupDlg::onApply().
|
protectedinherited |
Gets name of group to be created.
References SMESHGUI_GroupOpDlg::myNameEdit.
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), onApply(), and SMESHGUI_DimGroupDlg::onApply().
|
protectedinherited |
Gets list of currently selected groups from selection manager.
| theOutList | out list of groups |
| theOutNames | out list of group of group names |
References SMESHGUI_GroupOpDlg::mySelectionMgr.
Referenced by SMESHGUI_UnionGroupsDlg::onSelectionDone(), SMESHGUI_IntersectGroupsDlg::onSelectionDone(), onSelectionDone(), and SMESHGUI_DimGroupDlg::onSelectionDone().
|
protectedinherited |
Gets pointer to the module instance.
References SMESHGUI_GroupOpDlg::mySMESHGUI.
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), onApply(), SMESHGUI_DimGroupDlg::onApply(), and SMESHGUI_CutGroupsDlg().
|
inherited |
Init dialog fields, connect signals and slots, show dialog.
References SMESH::GetViewWindow(), SMESH::GROUP, SMESHGUI_GroupOpDlg::mySelectionMgr, SMESHGUI_GroupOpDlg::mySMESHGUI, SMESHGUI_GroupOpDlg::onCloseView(), SMESHGUI_GroupOpDlg::onDeactivate(), SMESHGUI_GroupOpDlg::onOpenView(), SMESHGUI_GroupOpDlg::onSelectionDone(), SMESHGUI_GroupOpDlg::reject(), SMESHGUI::SetActiveDialogBox(), and SMESHGUI_GroupOpDlg::setDefaultGroupColor().
Referenced by SMESHGUI_GroupOpDlg::SMESHGUI_GroupOpDlg().
|
protectedinherited |
Get value of the flag indicating that the dialog is accepted by Apply & Close button.
References SMESHGUI_GroupOpDlg::myIsApplyAndClose.
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), onApply(), and SMESHGUI_DimGroupDlg::onApply().
|
protectedinherited |
Validate list of groups used for operation.
Checks whether they corresponds to the same face and have one type
| theListGrp | input list of groups |
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), SMESHGUI_IntersectGroupsDlg::onApply(), onApply(), and SMESHGUI_DimGroupDlg::onApply().
|
privateinherited |
Provides reaction on �F1� button pressing.
| e | key press event |
References SMESHGUI_GroupOpDlg::onHelp().
|
protectedvirtualslot |
SLOT called when apply button is pressed performs operation.
References SMESH::_PTR(), SMESHGUI_GroupOpDlg::convert(), SMESHGUI_GroupOpDlg::getColor(), SMESHGUI_GroupOpDlg::getName(), SMESHGUI_GroupOpDlg::getSMESHGUI(), SMESHGUI_GroupOpDlg::isApplyAndClose(), SMESHGUI::isStudyLocked(), SMESHGUI_GroupOpDlg::isValid(), SMESHGUI::Modified(), myGroups1, myGroups2, and reset().
|
privateslotinherited |
References SMESHGUI_GroupOpDlg::mySelector, and SMESHGUI_GroupOpDlg::onDeactivate().
Referenced by SMESHGUI_GroupOpDlg::Init().
|
privateslotinherited |
SLOT called when dialog must be deactivated.
References SMESHGUI_GroupOpDlg::mySelectionMgr.
Referenced by SMESHGUI_GroupOpDlg::Init(), and SMESHGUI_GroupOpDlg::onCloseView().
|
privateslotinherited |
SLOT called when "Help" button pressed shows "Help" page.
References SMESHGUI_GroupOpDlg::myHelpFileName, and SMESHGUI_GroupOpDlg::mySMESHGUI.
Referenced by SMESHGUI_GroupOpDlg::createButtonFrame(), and SMESHGUI_GroupOpDlg::keyPressEvent().
|
privateslotinherited |
SLOT called when "Ok" button pressed performs operation and closes dialog box.
References SMESHGUI_GroupOpDlg::onApply(), SMESHGUI_GroupOpDlg::reject(), and SMESHGUI_GroupOpDlg::setIsApplyAndClose().
Referenced by SMESHGUI_GroupOpDlg::createButtonFrame().
|
privateslotinherited |
|
protectedvirtualslot |
|
protectedvirtualslotinherited |
SLOT called when dialog is closed.
References SMESH::GetViewWindow(), SMESHGUI_GroupOpDlg::mySelectionMgr, SMESHGUI_GroupOpDlg::mySMESHGUI, SMESHGUI_GroupOpDlg::reset(), and SMESHGUI::ResetState().
Referenced by SMESHGUI_GroupOpDlg::createButtonFrame(), SMESHGUI_GroupOpDlg::Init(), and SMESHGUI_GroupOpDlg::onOk().
|
protectedvirtual |
This virtual method redefined from the base class resets state of the dialog, initializes its fields with default value, etc.
Reimplemented from SMESHGUI_GroupOpDlg.
References myGroups1, myGroups2, myListWg1, myListWg2, and SMESHGUI_GroupOpDlg::reset().
Referenced by onApply().
|
protectedinherited |
Set default color for group.
References SMESH::GetColor(), and SMESHGUI_GroupOpDlg::myColorBtn.
Referenced by SMESHGUI_GroupOpDlg::Init(), and SMESHGUI_GroupOpDlg::reset().
|
protectedinherited |
Sets help file name.
| theFName | help file name |
References SMESHGUI_GroupOpDlg::myHelpFileName.
Referenced by SMESHGUI_CutGroupsDlg(), SMESHGUI_DimGroupDlg::SMESHGUI_DimGroupDlg(), SMESHGUI_IntersectGroupsDlg::SMESHGUI_IntersectGroupsDlg(), and SMESHGUI_UnionGroupsDlg::SMESHGUI_UnionGroupsDlg().
|
protectedinherited |
Set value of the flag indicating that the dialog is accepted by Apply & Close button.
| theFlag | value of the flag |
References SMESHGUI_GroupOpDlg::myIsApplyAndClose.
Referenced by SMESHGUI_GroupOpDlg::onOk().
|
protectedinherited |
Sets name of group to be created.
| theName | name of group to be created |
References SMESHGUI_GroupOpDlg::myNameEdit.
|
protectedvirtualslotinherited |
Calls onSelectionDone() and setVisible() method of base class.
| visible | the visible state of the dialog |
References SMESHGUI_GroupOpDlg::onSelectionDone().
|
privateinherited |
Referenced by SMESHGUI_GroupOpDlg::createButtonFrame().
|
privateinherited |
Referenced by SMESHGUI_GroupOpDlg::createMainFrame(), and SMESHGUI_GroupOpDlg::getArgGrp().
|
private |
Referenced by SMESHGUI_CutGroupsDlg().
|
private |
Referenced by onSelectionDone(), and SMESHGUI_CutGroupsDlg().
|
privateinherited |
Referenced by SMESHGUI_GroupOpDlg::createButtonFrame().
|
privateinherited |
|
private |
Referenced by onApply(), onSelectionDone(), and reset().
|
private |
Referenced by onApply(), onSelectionDone(), and reset().
|
privateinherited |
Referenced by SMESHGUI_GroupOpDlg::createButtonFrame().
|
privateinherited |
Referenced by SMESHGUI_GroupOpDlg::onHelp(), and SMESHGUI_GroupOpDlg::setHelpFileName().
|
privateinherited |
Referenced by SMESHGUI_GroupOpDlg::isApplyAndClose(), and SMESHGUI_GroupOpDlg::setIsApplyAndClose().
|
private |
Referenced by onSelectionDone(), reset(), and SMESHGUI_CutGroupsDlg().
|
private |
Referenced by onSelectionDone(), reset(), and SMESHGUI_CutGroupsDlg().
|
privateinherited |
|
privateinherited |
Referenced by SMESHGUI_GroupOpDlg::createButtonFrame().
|
privateinherited |
|
privateinherited |
|
privateinherited |