#include <SMESHGUI_CopyMeshDlg.h>
SMESHGUI_CopyMeshDlg::SMESHGUI_CopyMeshDlg |
( |
SMESHGUI * |
theModule | ) |
|
Constructor.
References buttonApply, buttonCancel, buttonHelp, buttonOk, ClickOnApply(), ClickOnHelp(), ClickOnOk(), ConstructorsBox, DeactivateActiveDialog(), SMESH::GetResourceMgr(), SMESH::GetSelector(), SMESH::GetViewWindow(), GroupArguments, GroupButtons, SMESH::IDSOURCE, Init(), MARGIN, myCopyGroupsCheck, myFilterBtn, myHelpFileName, myIdSourceCheck, myIdSourceFilter, myIdValidator, myKeepIdsCheck, myLineEditElements, myMeshNameEdit, mySelectionMgr, mySelector, mySMESHGUI, myTextLabelElements, onCloseView(), onOpenView(), onSelectIdSource(), onTextChange(), reject(), SelectionIntoArgument(), SMESHGUI::SetActiveDialogBox(), setFilters(), and SPACING.
SMESHGUI_CopyMeshDlg::~SMESHGUI_CopyMeshDlg |
( |
| ) |
|
void SMESHGUI_CopyMeshDlg::ActivateThisDialog |
( |
| ) |
|
|
privateslot |
bool SMESHGUI_CopyMeshDlg::ClickOnApply |
( |
| ) |
|
|
privateslot |
References _PTR(), SMESH::ALL, SMESHGUI::GetSMESHGen(), Init(), SMESHGUI::isActiveStudyLocked(), isApplyAndClose(), isValid(), SMESHGUI::Modified(), myCopyGroupsCheck, myIdSourceCheck, myKeepIdsCheck, myLineEditElements, myMesh, myMeshNameEdit, mySelectedObject, mySMESHGUI, SelectionIntoArgument(), and SObject().
Referenced by ClickOnOk(), and SMESHGUI_CopyMeshDlg().
void SMESHGUI_CopyMeshDlg::ClickOnHelp |
( |
| ) |
|
|
privateslot |
void SMESHGUI_CopyMeshDlg::ClickOnOk |
( |
| ) |
|
|
privateslot |
void SMESHGUI_CopyMeshDlg::DeactivateActiveDialog |
( |
| ) |
|
|
privateslot |
void SMESHGUI_CopyMeshDlg::enterEvent |
( |
QEvent * |
| ) |
|
|
private |
int SMESHGUI_CopyMeshDlg::GetConstructorId |
( |
| ) |
|
|
private |
void SMESHGUI_CopyMeshDlg::Init |
( |
bool |
ResetControls = true | ) |
|
|
private |
References buttonApply, buttonOk, myActor, myBusy, myCopyGroupsCheck, myIdSourceCheck, myKeepIdsCheck, myLineEditElements, myMesh, myMeshNameEdit, myNbOkElements, onSelectIdSource(), and SMESH::UniqueMeshName().
Referenced by ClickOnApply(), and SMESHGUI_CopyMeshDlg().
bool SMESHGUI_CopyMeshDlg::isApplyAndClose |
( |
| ) |
const |
|
private |
bool SMESHGUI_CopyMeshDlg::isValid |
( |
| ) |
|
|
private |
void SMESHGUI_CopyMeshDlg::keyPressEvent |
( |
QKeyEvent * |
e | ) |
|
|
private |
void SMESHGUI_CopyMeshDlg::onCloseView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_CopyMeshDlg::onOpenView |
( |
| ) |
|
|
privateslot |
void SMESHGUI_CopyMeshDlg::onSelectIdSource |
( |
bool |
toSelectMesh | ) |
|
|
privateslot |
References SMESH::GetViewWindow(), myIdSourceFilter, myIdValidator, myLineEditElements, mySelectionMgr, mySMESHGUI, myTextLabelElements, onTextChange(), SelectionIntoArgument(), and SMESH::SetPointRepresentation().
Referenced by ActivateThisDialog(), Init(), and SMESHGUI_CopyMeshDlg().
void SMESHGUI_CopyMeshDlg::onTextChange |
( |
const QString & |
theNewText | ) |
|
|
privateslot |
References buttonApply, buttonOk, SMDS_Mesh::FindElement(), SMESH_Actor::GetObject(), SMESH::GetViewWindow(), Handle(), myActor, myBusy, myLineEditElements, myNbOkElements, mySelector, and mySMESHGUI.
Referenced by onSelectIdSource(), and SMESHGUI_CopyMeshDlg().
void SMESHGUI_CopyMeshDlg::reject |
( |
| ) |
|
|
protectedvirtualslot |
void SMESHGUI_CopyMeshDlg::SelectionIntoArgument |
( |
| ) |
|
|
privateslot |
References buttonApply, buttonOk, SMESH::FindActorByEntry(), SMESH::FindActorByObject(), SMESH::GetMeshByIO(), SMESH::GetNameOfSelectedElements(), SMESH::GetNameOfSelectedIObjects(), GroupButtons, Handle(), myActor, myBusy, myFilterBtn, myFilterDlg, myIdSourceCheck, myLineEditElements, myMesh, myNbOkElements, mySelectedObject, mySelectionMgr, and mySelector.
Referenced by ActivateThisDialog(), ClickOnApply(), onSelectIdSource(), and SMESHGUI_CopyMeshDlg().
void SMESHGUI_CopyMeshDlg::setFilters |
( |
| ) |
|
|
privateslot |
References SMESH::ALL, SMESH::BALL, SMESH::EDGE, SMESH::ELEM0D, SMESH::FACE, SMESHGUI_FilterDlg::Init(), myFilterDlg, myLineEditElements, myMesh, mySMESHGUI, SMESHGUI_FilterDlg::SetMesh(), SMESHGUI_FilterDlg::SetSelection(), SMESHGUI_FilterDlg::SetSourceWg(), and SMESH::VOLUME.
Referenced by SMESHGUI_CopyMeshDlg().
void SMESHGUI_CopyMeshDlg::setIsApplyAndClose |
( |
const bool |
theFlag | ) |
|
|
private |
void SMESHGUI_CopyMeshDlg::setNewMeshName |
( |
| ) |
|
|
private |
QPushButton* SMESHGUI_CopyMeshDlg::buttonApply |
|
private |
QPushButton* SMESHGUI_CopyMeshDlg::buttonCancel |
|
private |
QPushButton* SMESHGUI_CopyMeshDlg::buttonHelp |
|
private |
QPushButton* SMESHGUI_CopyMeshDlg::buttonOk |
|
private |
QGroupBox* SMESHGUI_CopyMeshDlg::ConstructorsBox |
|
private |
QGroupBox* SMESHGUI_CopyMeshDlg::GroupArguments |
|
private |
QGroupBox* SMESHGUI_CopyMeshDlg::GroupButtons |
|
private |
bool SMESHGUI_CopyMeshDlg::myBusy |
|
private |
QCheckBox* SMESHGUI_CopyMeshDlg::myCopyGroupsCheck |
|
private |
QPushButton* SMESHGUI_CopyMeshDlg::myFilterBtn |
|
private |
QString SMESHGUI_CopyMeshDlg::myHelpFileName |
|
private |
QCheckBox* SMESHGUI_CopyMeshDlg::myIdSourceCheck |
|
private |
bool SMESHGUI_CopyMeshDlg::myIsApplyAndClose |
|
private |
QCheckBox* SMESHGUI_CopyMeshDlg::myKeepIdsCheck |
|
private |
QLineEdit* SMESHGUI_CopyMeshDlg::myLineEditElements |
|
private |
SMESH::SMESH_Mesh_var SMESHGUI_CopyMeshDlg::myMesh |
|
private |
QLineEdit* SMESHGUI_CopyMeshDlg::myMeshNameEdit |
|
private |
int SMESHGUI_CopyMeshDlg::myNbOkElements |
|
private |
SMESH::SMESH_IDSource_var SMESHGUI_CopyMeshDlg::mySelectedObject |
|
private |
LightApp_SelectionMgr* SMESHGUI_CopyMeshDlg::mySelectionMgr |
|
private |
SVTK_Selector* SMESHGUI_CopyMeshDlg::mySelector |
|
private |
SMESHGUI* SMESHGUI_CopyMeshDlg::mySMESHGUI |
|
private |
Referenced by ActivateThisDialog(), ClickOnApply(), ClickOnHelp(), DeactivateActiveDialog(), enterEvent(), onOpenView(), onSelectIdSource(), onTextChange(), reject(), setFilters(), and SMESHGUI_CopyMeshDlg().
QLabel* SMESHGUI_CopyMeshDlg::myTextLabelElements |
|
private |