#include <SMESHGUI_GroupOpDlg.h>
Public Member Functions | |
SMESHGUI_IntersectGroupsDlg (SMESHGUI *) | |
Constructor. More... | |
virtual | ~SMESHGUI_IntersectGroupsDlg () |
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 Attributes | |
QListWidget * | myListWg |
QList< SMESH::SMESH_GroupBase_var > | myGroups |
SMESHGUI_IntersectGroupsDlg::SMESHGUI_IntersectGroupsDlg | ( | SMESHGUI * | theModule | ) |
Constructor.
theModule | module |
References SMESHGUI_GroupOpDlg::getArgGrp(), myListWg, and SMESHGUI_GroupOpDlg::setHelpFileName().
|
virtual |
Destructor.
|
protectedinherited |
Converts QT-list of group to the list acceptable by IDL interface.
theIn | input list |
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), onApply(), and SMESHGUI_CutGroupsDlg::onApply().
|
protectedinherited |
Gets pointer on arguments group box.
References SMESHGUI_GroupOpDlg::myArgGrp.
Referenced by SMESHGUI_CutGroupsDlg::SMESHGUI_CutGroupsDlg(), SMESHGUI_DimGroupDlg::SMESHGUI_DimGroupDlg(), SMESHGUI_IntersectGroupsDlg(), and SMESHGUI_UnionGroupsDlg::SMESHGUI_UnionGroupsDlg().
|
protectedinherited |
Get color to be assigned to group.
References SMESHGUI_GroupOpDlg::myColorBtn.
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), onApply(), SMESHGUI_CutGroupsDlg::onApply(), and SMESHGUI_DimGroupDlg::onApply().
|
protectedinherited |
Gets name of group to be created.
References SMESHGUI_GroupOpDlg::myNameEdit.
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), onApply(), SMESHGUI_CutGroupsDlg::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(), onSelectionDone(), SMESHGUI_CutGroupsDlg::onSelectionDone(), and SMESHGUI_DimGroupDlg::onSelectionDone().
|
protectedinherited |
Gets pointer to the module instance.
References SMESHGUI_GroupOpDlg::mySMESHGUI.
Referenced by SMESHGUI_UnionGroupsDlg::onApply(), onApply(), SMESHGUI_CutGroupsDlg::onApply(), SMESHGUI_DimGroupDlg::onApply(), and SMESHGUI_CutGroupsDlg::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(), onApply(), SMESHGUI_CutGroupsDlg::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(), onApply(), SMESHGUI_CutGroupsDlg::onApply(), and SMESHGUI_DimGroupDlg::onApply().
|
protectedvirtualslot |
SLOT called when apply button is pressed performs operation.
References _PTR(), SMESHGUI_GroupOpDlg::convert(), SMESHGUI_GroupOpDlg::getColor(), SMESHGUI_GroupOpDlg::getName(), SMESHGUI_GroupOpDlg::getSMESHGUI(), SMESHGUI_GroupOpDlg::isApplyAndClose(), SMESHGUI_GroupOpDlg::isValid(), SMESHGUI::Modified(), myGroups, reset(), and SObject().
|
protectedvirtualslot |
SLOT, called when selection is changed, updates corresponding GUI controls.
References SMESHGUI_GroupOpDlg::getSelectedGroups(), myGroups, and myListWg.
|
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 myGroups, myListWg, 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_CutGroupsDlg(), SMESHGUI_DimGroupDlg::SMESHGUI_DimGroupDlg(), 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().
|
private |
Referenced by onApply(), onSelectionDone(), and reset().
|
private |
Referenced by onSelectionDone(), reset(), and SMESHGUI_IntersectGroupsDlg().