Version: 8.3.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 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
 
QGroupBoxmyGroupArguments
 
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
 
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 ( )

Destructor.

Member Function Documentation

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().

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().

void SMESHGUI_DuplicateNodesDlg::keyPressEvent ( QKeyEvent *  e)
private

Receive key press events.

Reimplemented from QWidget class.

References onHelp().

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, myGroupArguments, myGroups1, myGroups2, myGroups3, myLineEdit1, myLineEdit2, myLineEdit3, mySelectButton2, mySelectButton3, myTextLabel1, myTextLabel2, myTextLabel3, and onSelectionChanged().

Referenced by Init(), and SMESHGUI_DuplicateNodesDlg().

void SMESHGUI_DuplicateNodesDlg::onDeactivate ( )
privateslot

SLOT called when dialog shoud be deativated.

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

Referenced by SMESHGUI_DuplicateNodesDlg().

void SMESHGUI_DuplicateNodesDlg::onEditCurrentArgument ( )
privateslot
void SMESHGUI_DuplicateNodesDlg::onHelp ( )
privateslot

Show the dialog help page.

References myHelpFileName, and mySMESHGUI.

Referenced by keyPressEvent(), and SMESHGUI_DuplicateNodesDlg().

void SMESHGUI_DuplicateNodesDlg::onOk ( )
privateslot

SLOT called to apply changes and close the dialog.

References onApply(), and reject().

Referenced by SMESHGUI_DuplicateNodesDlg().

void SMESHGUI_DuplicateNodesDlg::onSelectionChanged ( )
privateslot
void SMESHGUI_DuplicateNodesDlg::reject ( )
protectedvirtualslot

SLOT called to close the dialog.

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

Referenced by onOk(), and SMESHGUI_DuplicateNodesDlg().

void SMESHGUI_DuplicateNodesDlg::updateButtons ( )
privateslot

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

References isValid(), myButtonApply, and myButtonOk.

Referenced by onSelectionChanged(), and SMESHGUI_DuplicateNodesDlg().

Field Documentation

bool SMESHGUI_DuplicateNodesDlg::myBusy
private

Referenced by Init(), onApply(), and onSelectionChanged().

QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonApply
private
QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonClose
private
QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonHelp
private
QPushButton* SMESHGUI_DuplicateNodesDlg::myButtonOk
private
QCheckBox* SMESHGUI_DuplicateNodesDlg::myCheckBox1
private
QCheckBox* SMESHGUI_DuplicateNodesDlg::myCheckBox2
private
QLineEdit* SMESHGUI_DuplicateNodesDlg::myCurrentLineEdit
private
QGroupBox* SMESHGUI_DuplicateNodesDlg::myGroupArguments
private
QButtonGroup* SMESHGUI_DuplicateNodesDlg::myGroupConstructors
private
QList<SMESH::SMESH_GroupBase_var> SMESHGUI_DuplicateNodesDlg::myGroups1
private
QList<SMESH::SMESH_GroupBase_var> SMESHGUI_DuplicateNodesDlg::myGroups2
private
QList<SMESH::SMESH_GroupBase_var> SMESHGUI_DuplicateNodesDlg::myGroups3
private
QString SMESHGUI_DuplicateNodesDlg::myHelpFileName
private
QLineEdit* SMESHGUI_DuplicateNodesDlg::myLineEdit1
private
QLineEdit* SMESHGUI_DuplicateNodesDlg::myLineEdit2
private
QLineEdit* SMESHGUI_DuplicateNodesDlg::myLineEdit3
private
QPushButton* SMESHGUI_DuplicateNodesDlg::mySelectButton1
private
QPushButton* SMESHGUI_DuplicateNodesDlg::mySelectButton2
private
QPushButton* SMESHGUI_DuplicateNodesDlg::mySelectButton3
private
LightApp_SelectionMgr* SMESHGUI_DuplicateNodesDlg::mySelectionMgr
private
SMESHGUI* SMESHGUI_DuplicateNodesDlg::mySMESHGUI
private
QLabel* SMESHGUI_DuplicateNodesDlg::myTextLabel1
private
QLabel* SMESHGUI_DuplicateNodesDlg::myTextLabel2
private
QLabel* SMESHGUI_DuplicateNodesDlg::myTextLabel3
private