Version: 9.12.0
SMESHGUI_DuplicateNodesDlg Class Reference

Dialog for duplication of nodes. More...

#include <SMESHGUI_DuplicateNodesDlg.h>

Inheritance diagram for SMESHGUI_DuplicateNodesDlg:

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 should be deactivated. More...
 
void onGenerate ()
 SLOT called when Generate button is clicked. 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
 
QGroupBoxmyGroupArguments
 
QLabelmyTextLabel1
 
QLabelmyTextLabel2
 
QLabelmyTextLabel3
 
QPushButton * mySelectButton1
 
QPushButton * mySelectButton2
 
QPushButton * mySelectButton3
 
QPushButton * myGenerateButton3
 
QLineEdit * myLineEdit1
 
QLineEdit * myLineEdit2
 
QLineEdit * myLineEdit3
 
QCheckBox * myCheckBox1
 
QCheckBox * myCheckBox2
 
QPushButton * myButtonOk
 
QPushButton * myButtonApply
 
QPushButton * myButtonClose
 
QPushButton * myButtonHelp
 
SMESHGUImySMESHGUI
 
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
 

Detailed Description

Dialog for duplication of nodes.

Constructor & Destructor Documentation

◆ SMESHGUI_DuplicateNodesDlg()

◆ ~SMESHGUI_DuplicateNodesDlg()

SMESHGUI_DuplicateNodesDlg::~SMESHGUI_DuplicateNodesDlg ( )

Destructor.

Member Function Documentation

◆ enterEvent()

void SMESHGUI_DuplicateNodesDlg::enterEvent ( QEvent *  )
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().

◆ Init()

◆ isValid()

bool SMESHGUI_DuplicateNodesDlg::isValid ( )
private

Check if the input data is valid.

Returns
true if the data is valid

References myCheckBox2, myGroupConstructors, myGroups1, and myGroups3.

Referenced by onApply(), and updateButtons().

◆ keyPressEvent()

void SMESHGUI_DuplicateNodesDlg::keyPressEvent ( QKeyEvent *  e)
private

Receive key press events.

Reimplemented from QWidget class.

References onHelp().

◆ onApply

◆ onConstructorsClicked

void SMESHGUI_DuplicateNodesDlg::onConstructorsClicked ( int  constructorId)
privateslot

SLOT called to change the dialog operation mode.

Parameters
constructorIdid of the radio button in mode selector button group

References myCheckBox1, myCheckBox2, myCurrentLineEdit, myGenerateButton3, myGroupArguments, myGroups1, myGroups2, myGroups3, myLineEdit1, myLineEdit2, myLineEdit3, mySelectButton2, mySelectButton3, myTextLabel1, myTextLabel2, myTextLabel3, and onSelectionChanged().

Referenced by Init(), and SMESHGUI_DuplicateNodesDlg().

◆ onDeactivate

void SMESHGUI_DuplicateNodesDlg::onDeactivate ( )
privateslot

SLOT called when dialog should be deactivated.

References mySelectionMgr, mySMESHGUI, SMESHGUI::ResetState(), and SMESHGUI::SetActiveDialogBox().

Referenced by SMESHGUI_DuplicateNodesDlg().

◆ onEditCurrentArgument

void SMESHGUI_DuplicateNodesDlg::onEditCurrentArgument ( )
privateslot

◆ onGenerate

void SMESHGUI_DuplicateNodesDlg::onGenerate ( )
privateslot

SLOT called when Generate button is clicked.

References SMESH::GetName(), SMESHGUI::isStudyLocked(), myBusy, myGroups1, myGroups2, myGroups3, myLineEdit3, mySMESHGUI, and updateButtons().

Referenced by SMESHGUI_DuplicateNodesDlg().

◆ onHelp

void SMESHGUI_DuplicateNodesDlg::onHelp ( )
privateslot

Show the dialog help page.

References myHelpFileName, and mySMESHGUI.

Referenced by keyPressEvent(), and SMESHGUI_DuplicateNodesDlg().

◆ onOk

void SMESHGUI_DuplicateNodesDlg::onOk ( )
privateslot

SLOT called to apply changes and close the dialog.

References onApply(), and reject().

Referenced by SMESHGUI_DuplicateNodesDlg().

◆ onSelectionChanged

void SMESHGUI_DuplicateNodesDlg::onSelectionChanged ( )
privateslot

◆ reject

void SMESHGUI_DuplicateNodesDlg::reject ( )
protectedvirtualslot

SLOT called to close the dialog.

References mySelectionMgr, mySMESHGUI, and SMESHGUI::ResetState().

Referenced by onOk(), and SMESHGUI_DuplicateNodesDlg().

◆ updateButtons

void SMESHGUI_DuplicateNodesDlg::updateButtons ( )
privateslot

Enable/disable "Apply and Close" and "Apply" buttons.

References isValid(), myButtonApply, myButtonOk, myGenerateButton3, myGroupConstructors, and myGroups1.

Referenced by onGenerate(), onSelectionChanged(), and SMESHGUI_DuplicateNodesDlg().

Field Documentation

◆ myBusy

bool SMESHGUI_DuplicateNodesDlg::myBusy
private

◆ myButtonApply

QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonApply
private

◆ myButtonClose

QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonClose
private

◆ myButtonHelp

QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonHelp
private

◆ myButtonOk

QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonOk
private

◆ myCheckBox1

QCheckBox* SMESHGUI_DuplicateNodesDlg::myCheckBox1
private

◆ myCheckBox2

QCheckBox* SMESHGUI_DuplicateNodesDlg::myCheckBox2
private

◆ myCurrentLineEdit

QLineEdit* SMESHGUI_DuplicateNodesDlg::myCurrentLineEdit
private

◆ myGenerateButton3

QPushButton* SMESHGUI_DuplicateNodesDlg::myGenerateButton3
private

◆ myGroupArguments

QGroupBox* SMESHGUI_DuplicateNodesDlg::myGroupArguments
private

◆ myGroupConstructors

QButtonGroup* SMESHGUI_DuplicateNodesDlg::myGroupConstructors
private

◆ myGroups1

QList<SMESH::SMESH_GroupBase_var> SMESHGUI_DuplicateNodesDlg::myGroups1
private

◆ myGroups2

QList<SMESH::SMESH_GroupBase_var> SMESHGUI_DuplicateNodesDlg::myGroups2
private

◆ myGroups3

QList<SMESH::SMESH_GroupBase_var> SMESHGUI_DuplicateNodesDlg::myGroups3
private

◆ myHelpFileName

QString SMESHGUI_DuplicateNodesDlg::myHelpFileName
private

◆ myLineEdit1

QLineEdit* SMESHGUI_DuplicateNodesDlg::myLineEdit1
private

◆ myLineEdit2

QLineEdit* SMESHGUI_DuplicateNodesDlg::myLineEdit2
private

◆ myLineEdit3

QLineEdit* SMESHGUI_DuplicateNodesDlg::myLineEdit3
private

◆ mySelectButton1

QPushButton* SMESHGUI_DuplicateNodesDlg::mySelectButton1
private

◆ mySelectButton2

QPushButton* SMESHGUI_DuplicateNodesDlg::mySelectButton2
private

◆ mySelectButton3

QPushButton* SMESHGUI_DuplicateNodesDlg::mySelectButton3
private

◆ mySelectionMgr

LightApp_SelectionMgr* SMESHGUI_DuplicateNodesDlg::mySelectionMgr
private

◆ mySMESHGUI

SMESHGUI* SMESHGUI_DuplicateNodesDlg::mySMESHGUI
private

◆ myTextLabel1

QLabel* SMESHGUI_DuplicateNodesDlg::myTextLabel1
private

◆ myTextLabel2

QLabel* SMESHGUI_DuplicateNodesDlg::myTextLabel2
private

◆ myTextLabel3

QLabel* SMESHGUI_DuplicateNodesDlg::myTextLabel3
private