Dialog for duplication of nodes. More...
#include <SMESHGUI_DuplicateNodesDlg.h>
Public Member Functions | |
SMESHGUI_DuplicateNodesDlg (SMESHGUI *) | |
Constructor. More... | |
~SMESHGUI_DuplicateNodesDlg () | |
Destructor. More... | |
Protected Slots | |
virtual void | reject () |
SLOT called to close the dialog. More... | |
Private Slots | |
void | onConstructorsClicked (int) |
SLOT called to change the dialog operation mode. More... | |
void | onOk () |
SLOT called to apply changes and close the dialog. More... | |
bool | onApply () |
SLOT called to apply changes. More... | |
void | onHelp () |
Show the dialog help page. More... | |
void | onEditCurrentArgument () |
SLOT called when selection button clicked. More... | |
void | onSelectionChanged () |
SLOT called when selection changed. More... | |
void | onDeactivate () |
SLOT called when dialog shoud be deativated. More... | |
void | updateButtons () |
Enable/disable "Apply and Close" and "Apply" buttons. More... | |
Private Member Functions | |
void | Init () |
Destructor. More... | |
bool | isValid () |
Check if the input data is valid. More... | |
void | enterEvent (QEvent *) |
Receive dialog enter events. More... | |
void | keyPressEvent (QKeyEvent *) |
Receive key press events. More... | |
Private Attributes | |
QLineEdit * | myCurrentLineEdit |
QButtonGroup * | myGroupConstructors |
QGroupBox * | myGroupArguments |
QLabel * | myTextLabel1 |
QLabel * | myTextLabel2 |
QLabel * | myTextLabel3 |
QPushButton * | mySelectButton1 |
QPushButton * | mySelectButton2 |
QPushButton * | mySelectButton3 |
QLineEdit * | myLineEdit1 |
QLineEdit * | myLineEdit2 |
QLineEdit * | myLineEdit3 |
QCheckBox * | myCheckBox1 |
QCheckBox * | myCheckBox2 |
QPushButton * | myButtonOk |
QPushButton * | myButtonApply |
QPushButton * | myButtonClose |
QPushButton * | myButtonHelp |
SMESHGUI * | mySMESHGUI |
LightApp_SelectionMgr * | mySelectionMgr |
QList< SMESH::SMESH_GroupBase_var > | myGroups1 |
QList< SMESH::SMESH_GroupBase_var > | myGroups2 |
QList< SMESH::SMESH_GroupBase_var > | myGroups3 |
bool | myBusy |
QString | myHelpFileName |
Dialog for duplication of nodes.
SMESHGUI_DuplicateNodesDlg::SMESHGUI_DuplicateNodesDlg | ( | SMESHGUI * | theModule | ) |
Constructor.
theModule | Mesh module instance |
References SMESH::GetResourceMgr(), Init(), MARGIN, myButtonApply, myButtonClose, myButtonHelp, myButtonOk, myCheckBox1, myCheckBox2, myGroupArguments, myGroupConstructors, myHelpFileName, myLineEdit1, myLineEdit2, myLineEdit3, mySelectButton1, mySelectButton2, mySelectButton3, mySelectionMgr, mySMESHGUI, myTextLabel1, myTextLabel2, myTextLabel3, onApply(), onConstructorsClicked(), onDeactivate(), onEditCurrentArgument(), onHelp(), onOk(), onSelectionChanged(), reject(), SPACING, and updateButtons().
SMESHGUI_DuplicateNodesDlg::~SMESHGUI_DuplicateNodesDlg | ( | ) |
Destructor.
|
private |
Receive dialog enter events.
Activates the dialog when the mouse cursor enters. Reimplemented from QWidget class.
References SMESHGUI::EmitSignalDeactivateDialog(), SMESH::GetViewWindow(), SMESH::GROUP, mySelectionMgr, mySMESHGUI, and SMESHGUI::SetActiveDialogBox().
|
private |
Destructor.
References SMESH::GetViewWindow(), SMESH::GROUP, myBusy, myCurrentLineEdit, myGroupConstructors, myGroups1, myGroups2, myGroups3, myLineEdit1, mySelectionMgr, mySMESHGUI, onConstructorsClicked(), and SMESHGUI::SetActiveDialogBox().
Referenced by onApply(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Check if the input data is valid.
true
if the data is valid References myCheckBox2, myGroupConstructors, myGroups1, and myGroups3.
Referenced by onApply(), and updateButtons().
|
private |
|
privateslot |
SLOT called to apply changes.
References _PTR(), Init(), SMESHGUI::isActiveStudyLocked(), isValid(), SMESHGUI::Modified(), myBusy, myCheckBox1, myCheckBox2, myGroupConstructors, myGroups1, myGroups2, myGroups3, mySelectionMgr, mySMESHGUI, SObject(), SMESH::UniqueName(), and SMESH::UpdateView().
Referenced by onOk(), and SMESHGUI_DuplicateNodesDlg().
|
privateslot |
SLOT called to change the dialog operation mode.
constructorId | id of the radio button in mode selector button group |
References myCheckBox1, myCheckBox2, myCurrentLineEdit, myGroupArguments, myGroups1, myGroups2, myGroups3, myLineEdit1, myLineEdit2, myLineEdit3, mySelectButton2, mySelectButton3, myTextLabel1, myTextLabel2, myTextLabel3, and onSelectionChanged().
Referenced by Init(), and SMESHGUI_DuplicateNodesDlg().
|
privateslot |
SLOT called when dialog shoud be deativated.
References mySelectionMgr, mySMESHGUI, SMESHGUI::ResetState(), and SMESHGUI::SetActiveDialogBox().
Referenced by SMESHGUI_DuplicateNodesDlg().
|
privateslot |
SLOT called when selection button clicked.
References myCurrentLineEdit, myLineEdit1, myLineEdit2, myLineEdit3, mySelectButton1, mySelectButton2, mySelectButton3, and onSelectionChanged().
Referenced by SMESHGUI_DuplicateNodesDlg().
|
privateslot |
Show the dialog help page.
References myHelpFileName, and mySMESHGUI.
Referenced by keyPressEvent(), and SMESHGUI_DuplicateNodesDlg().
|
privateslot |
SLOT called to apply changes and close the dialog.
References onApply(), and reject().
Referenced by SMESHGUI_DuplicateNodesDlg().
|
privateslot |
SLOT called when selection changed.
References SMESH::EDGE, SMESH::FACE, myBusy, myCurrentLineEdit, myGroupConstructors, myGroups1, myGroups2, myGroups3, myLineEdit1, myLineEdit2, myLineEdit3, mySelectionMgr, SMESH::NODE, updateButtons(), and SMESH::VOLUME.
Referenced by onConstructorsClicked(), onEditCurrentArgument(), and SMESHGUI_DuplicateNodesDlg().
|
protectedvirtualslot |
SLOT called to close the dialog.
References mySelectionMgr, mySMESHGUI, and SMESHGUI::ResetState().
Referenced by onOk(), and SMESHGUI_DuplicateNodesDlg().
|
privateslot |
Enable/disable "Apply and Close" and "Apply" buttons.
References isValid(), myButtonApply, and myButtonOk.
Referenced by onSelectionChanged(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by Init(), onApply(), and onSelectionChanged().
|
private |
Referenced by SMESHGUI_DuplicateNodesDlg(), and updateButtons().
|
private |
Referenced by SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by SMESHGUI_DuplicateNodesDlg(), and updateButtons().
|
private |
Referenced by onApply(), onConstructorsClicked(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by isValid(), onApply(), onConstructorsClicked(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by Init(), onConstructorsClicked(), onEditCurrentArgument(), and onSelectionChanged().
|
private |
Referenced by onConstructorsClicked(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by Init(), isValid(), onApply(), onSelectionChanged(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by Init(), isValid(), onApply(), onConstructorsClicked(), and onSelectionChanged().
|
private |
Referenced by Init(), onApply(), onConstructorsClicked(), and onSelectionChanged().
|
private |
Referenced by Init(), isValid(), onApply(), onConstructorsClicked(), and onSelectionChanged().
|
private |
Referenced by onHelp(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by Init(), onConstructorsClicked(), onEditCurrentArgument(), onSelectionChanged(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onConstructorsClicked(), onEditCurrentArgument(), onSelectionChanged(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onConstructorsClicked(), onEditCurrentArgument(), onSelectionChanged(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onEditCurrentArgument(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onConstructorsClicked(), onEditCurrentArgument(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onConstructorsClicked(), onEditCurrentArgument(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by enterEvent(), Init(), onApply(), onDeactivate(), onSelectionChanged(), reject(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by enterEvent(), Init(), onApply(), onDeactivate(), onHelp(), reject(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onConstructorsClicked(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onConstructorsClicked(), and SMESHGUI_DuplicateNodesDlg().
|
private |
Referenced by onConstructorsClicked(), and SMESHGUI_DuplicateNodesDlg().