mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-07 15:44:17 +05:00
rename SMESHGUI_EditMeshDlg to SMESHGUI_MergeDlg
This commit is contained in:
parent
b166f12b58
commit
b44f6a0f67
@ -72,7 +72,7 @@ salomeinclude_HEADERS = \
|
|||||||
SMESHGUI_SymmetryDlg.h \
|
SMESHGUI_SymmetryDlg.h \
|
||||||
SMESHGUI_SewingDlg.h \
|
SMESHGUI_SewingDlg.h \
|
||||||
SMESHGUI_DuplicateNodesDlg.h \
|
SMESHGUI_DuplicateNodesDlg.h \
|
||||||
SMESHGUI_EditMeshDlg.h \
|
SMESHGUI_MergeDlg.h \
|
||||||
SMESHGUI_MeshUtils.h \
|
SMESHGUI_MeshUtils.h \
|
||||||
SMESHGUI_CreatePolyhedralVolumeDlg.h \
|
SMESHGUI_CreatePolyhedralVolumeDlg.h \
|
||||||
SMESHGUI_Operation.h \
|
SMESHGUI_Operation.h \
|
||||||
@ -136,7 +136,7 @@ dist_libSMESH_la_SOURCES = \
|
|||||||
SMESHGUI_SymmetryDlg.cxx \
|
SMESHGUI_SymmetryDlg.cxx \
|
||||||
SMESHGUI_SewingDlg.cxx \
|
SMESHGUI_SewingDlg.cxx \
|
||||||
SMESHGUI_DuplicateNodesDlg.cxx \
|
SMESHGUI_DuplicateNodesDlg.cxx \
|
||||||
SMESHGUI_EditMeshDlg.cxx \
|
SMESHGUI_MergeDlg.cxx \
|
||||||
SMESHGUI_Utils.cxx \
|
SMESHGUI_Utils.cxx \
|
||||||
SMESHGUI_GEOMGenUtils.cxx \
|
SMESHGUI_GEOMGenUtils.cxx \
|
||||||
SMESHGUI_MeshUtils.cxx \
|
SMESHGUI_MeshUtils.cxx \
|
||||||
@ -206,7 +206,7 @@ MOC_FILES = \
|
|||||||
SMESHGUI_SymmetryDlg_moc.cxx \
|
SMESHGUI_SymmetryDlg_moc.cxx \
|
||||||
SMESHGUI_SewingDlg_moc.cxx \
|
SMESHGUI_SewingDlg_moc.cxx \
|
||||||
SMESHGUI_DuplicateNodesDlg_moc.cxx \
|
SMESHGUI_DuplicateNodesDlg_moc.cxx \
|
||||||
SMESHGUI_EditMeshDlg_moc.cxx \
|
SMESHGUI_MergeDlg_moc.cxx \
|
||||||
SMESHGUI_CreatePolyhedralVolumeDlg_moc.cxx \
|
SMESHGUI_CreatePolyhedralVolumeDlg_moc.cxx \
|
||||||
SMESHGUI_Operation_moc.cxx \
|
SMESHGUI_Operation_moc.cxx \
|
||||||
SMESHGUI_SelectionOp_moc.cxx \
|
SMESHGUI_SelectionOp_moc.cxx \
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
#include "SMESHGUI_CreatePolyhedralVolumeDlg.h"
|
#include "SMESHGUI_CreatePolyhedralVolumeDlg.h"
|
||||||
#include "SMESHGUI_DeleteGroupDlg.h"
|
#include "SMESHGUI_DeleteGroupDlg.h"
|
||||||
#include "SMESHGUI_Displayer.h"
|
#include "SMESHGUI_Displayer.h"
|
||||||
#include "SMESHGUI_EditMeshDlg.h"
|
#include "SMESHGUI_MergeDlg.h"
|
||||||
#include "SMESHGUI_ExtrusionAlongPathDlg.h"
|
#include "SMESHGUI_ExtrusionAlongPathDlg.h"
|
||||||
#include "SMESHGUI_ExtrusionDlg.h"
|
#include "SMESHGUI_ExtrusionDlg.h"
|
||||||
#include "SMESHGUI_FileInfoDlg.h"
|
#include "SMESHGUI_FileInfoDlg.h"
|
||||||
@ -2690,7 +2690,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
if(checkLock(aStudy)) break;
|
if(checkLock(aStudy)) break;
|
||||||
if(vtkwnd) {
|
if(vtkwnd) {
|
||||||
EmitSignalDeactivateDialog();
|
EmitSignalDeactivateDialog();
|
||||||
( new SMESHGUI_EditMeshDlg( this, 0 ) )->show();
|
( new SMESHGUI_MergeDlg( this, 0 ) )->show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
SUIT_MessageBox::warning(SMESHGUI::desktop(),
|
SUIT_MessageBox::warning(SMESHGUI::desktop(),
|
||||||
@ -2703,7 +2703,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
if (checkLock(aStudy)) break;
|
if (checkLock(aStudy)) break;
|
||||||
if (vtkwnd) {
|
if (vtkwnd) {
|
||||||
EmitSignalDeactivateDialog();
|
EmitSignalDeactivateDialog();
|
||||||
( new SMESHGUI_EditMeshDlg( this, 1 ) )->show();
|
( new SMESHGUI_MergeDlg( this, 1 ) )->show();
|
||||||
} else {
|
} else {
|
||||||
SUIT_MessageBox::warning(SMESHGUI::desktop(),
|
SUIT_MessageBox::warning(SMESHGUI::desktop(),
|
||||||
tr("SMESH_WRN_WARNING"), tr("SMESH_WRN_VIEWER_VTK"));
|
tr("SMESH_WRN_WARNING"), tr("SMESH_WRN_VIEWER_VTK"));
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// SMESH SMESHGUI : GUI for SMESH component
|
// SMESH SMESHGUI : GUI for SMESH component
|
||||||
// File : SMESHGUI_EditMeshDlg.cxx
|
// File : SMESHGUI_MergeDlg.cxx
|
||||||
// Author : Open CASCADE S.A.S.
|
// Author : Open CASCADE S.A.S.
|
||||||
// SMESH includes
|
// SMESH includes
|
||||||
//
|
//
|
||||||
#include "SMESHGUI_EditMeshDlg.h"
|
#include "SMESHGUI_MergeDlg.h"
|
||||||
|
|
||||||
#include "SMESHGUI.h"
|
#include "SMESHGUI.h"
|
||||||
#include "SMESHGUI_Utils.h"
|
#include "SMESHGUI_Utils.h"
|
||||||
@ -303,11 +303,10 @@ static const char * IconFirst[] = {
|
|||||||
" . . "};
|
" . . "};
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : SMESHGUI_EditMeshDlg()
|
// class : SMESHGUI_MergeDlg()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
SMESHGUI_EditMeshDlg::SMESHGUI_EditMeshDlg (SMESHGUI* theModule,
|
SMESHGUI_MergeDlg::SMESHGUI_MergeDlg (SMESHGUI* theModule, int theAction)
|
||||||
int theAction)
|
|
||||||
: QDialog(SMESH::GetDesktop(theModule)),
|
: QDialog(SMESH::GetDesktop(theModule)),
|
||||||
mySMESHGUI(theModule),
|
mySMESHGUI(theModule),
|
||||||
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
mySelectionMgr(SMESH::GetSelectionMgr(theModule)),
|
||||||
@ -506,10 +505,10 @@ SMESHGUI_EditMeshDlg::SMESHGUI_EditMeshDlg (SMESHGUI* theModule,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : ~SMESHGUI_EditMeshDlg()
|
// function : ~SMESHGUI_MergeDlg()
|
||||||
// purpose : Destroys the object and frees any allocated resources
|
// purpose : Destroys the object and frees any allocated resources
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
SMESHGUI_EditMeshDlg::~SMESHGUI_EditMeshDlg()
|
SMESHGUI_MergeDlg::~SMESHGUI_MergeDlg()
|
||||||
{
|
{
|
||||||
delete myIdPreview;
|
delete myIdPreview;
|
||||||
}
|
}
|
||||||
@ -518,7 +517,7 @@ SMESHGUI_EditMeshDlg::~SMESHGUI_EditMeshDlg()
|
|||||||
// function : Init()
|
// function : Init()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::Init()
|
void SMESHGUI_MergeDlg::Init()
|
||||||
{
|
{
|
||||||
if (myAction == 0) {
|
if (myAction == 0) {
|
||||||
SpinBoxTolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.00001, "len_tol_precision");
|
SpinBoxTolerance->RangeStepAndValidator(0.0, COORD_MAX, 0.00001, "len_tol_precision");
|
||||||
@ -578,7 +577,7 @@ void SMESHGUI_EditMeshDlg::Init()
|
|||||||
// function : FindGravityCenter()
|
// function : FindGravityCenter()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::FindGravityCenter(TColStd_MapOfInteger & theElemsIdMap,
|
void SMESHGUI_MergeDlg::FindGravityCenter(TColStd_MapOfInteger & theElemsIdMap,
|
||||||
std::list< gp_XYZ > & theGrCentersXYZ)
|
std::list< gp_XYZ > & theGrCentersXYZ)
|
||||||
{
|
{
|
||||||
if (!myActor)
|
if (!myActor)
|
||||||
@ -613,7 +612,7 @@ void SMESHGUI_EditMeshDlg::FindGravityCenter(TColStd_MapOfInteger & theElemsIdMa
|
|||||||
// function : ClickOnApply()
|
// function : ClickOnApply()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
bool SMESHGUI_EditMeshDlg::ClickOnApply()
|
bool SMESHGUI_MergeDlg::ClickOnApply()
|
||||||
{
|
{
|
||||||
if (mySMESHGUI->isActiveStudyLocked() || myMesh->_is_nil())
|
if (mySMESHGUI->isActiveStudyLocked() || myMesh->_is_nil())
|
||||||
return false;
|
return false;
|
||||||
@ -681,7 +680,7 @@ bool SMESHGUI_EditMeshDlg::ClickOnApply()
|
|||||||
// function : ClickOnOk()
|
// function : ClickOnOk()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::ClickOnOk()
|
void SMESHGUI_MergeDlg::ClickOnOk()
|
||||||
{
|
{
|
||||||
if (ClickOnApply())
|
if (ClickOnApply())
|
||||||
ClickOnCancel();
|
ClickOnCancel();
|
||||||
@ -691,7 +690,7 @@ void SMESHGUI_EditMeshDlg::ClickOnOk()
|
|||||||
// function : ClickOnCancel()
|
// function : ClickOnCancel()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::ClickOnCancel()
|
void SMESHGUI_MergeDlg::ClickOnCancel()
|
||||||
{
|
{
|
||||||
myIdPreview->SetPointsLabeled(false);
|
myIdPreview->SetPointsLabeled(false);
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
@ -712,7 +711,7 @@ void SMESHGUI_EditMeshDlg::ClickOnCancel()
|
|||||||
// function : ClickOnHelp()
|
// function : ClickOnHelp()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::ClickOnHelp()
|
void SMESHGUI_MergeDlg::ClickOnHelp()
|
||||||
{
|
{
|
||||||
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
|
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
|
||||||
if (app)
|
if (app)
|
||||||
@ -736,7 +735,7 @@ void SMESHGUI_EditMeshDlg::ClickOnHelp()
|
|||||||
// function : onEditGroup()
|
// function : onEditGroup()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onEditGroup()
|
void SMESHGUI_MergeDlg::onEditGroup()
|
||||||
{
|
{
|
||||||
QList<QListWidgetItem*> selItems = ListCoincident->selectedItems();
|
QList<QListWidgetItem*> selItems = ListCoincident->selectedItems();
|
||||||
if ( selItems.count() != 1 ) {
|
if ( selItems.count() != 1 ) {
|
||||||
@ -758,7 +757,7 @@ void SMESHGUI_EditMeshDlg::onEditGroup()
|
|||||||
// function : updateControls()
|
// function : updateControls()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::updateControls()
|
void SMESHGUI_MergeDlg::updateControls()
|
||||||
{
|
{
|
||||||
if (ListEdit->count() == 0)
|
if (ListEdit->count() == 0)
|
||||||
SetFirstButton->setEnabled(false);
|
SetFirstButton->setEnabled(false);
|
||||||
@ -771,7 +770,7 @@ void SMESHGUI_EditMeshDlg::updateControls()
|
|||||||
// function : onDetect()
|
// function : onDetect()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onDetect()
|
void SMESHGUI_MergeDlg::onDetect()
|
||||||
{
|
{
|
||||||
if ( myMesh->_is_nil() || LineEditMesh->text().isEmpty() )
|
if ( myMesh->_is_nil() || LineEditMesh->text().isEmpty() )
|
||||||
return;
|
return;
|
||||||
@ -820,7 +819,7 @@ void SMESHGUI_EditMeshDlg::onDetect()
|
|||||||
// function : onSelectGroup()
|
// function : onSelectGroup()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onSelectGroup()
|
void SMESHGUI_MergeDlg::onSelectGroup()
|
||||||
{
|
{
|
||||||
if (myIsBusy || !myActor)
|
if (myIsBusy || !myActor)
|
||||||
return;
|
return;
|
||||||
@ -869,7 +868,7 @@ void SMESHGUI_EditMeshDlg::onSelectGroup()
|
|||||||
// function : onSelectAll()
|
// function : onSelectAll()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onSelectAll (bool isToggled)
|
void SMESHGUI_MergeDlg::onSelectAll (bool isToggled)
|
||||||
{
|
{
|
||||||
if ( isToggled )
|
if ( isToggled )
|
||||||
ListCoincident->selectAll();
|
ListCoincident->selectAll();
|
||||||
@ -881,7 +880,7 @@ void SMESHGUI_EditMeshDlg::onSelectAll (bool isToggled)
|
|||||||
// function : onSelectElementFromGroup()
|
// function : onSelectElementFromGroup()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onSelectElementFromGroup()
|
void SMESHGUI_MergeDlg::onSelectElementFromGroup()
|
||||||
{
|
{
|
||||||
if (myIsBusy || !myActor)
|
if (myIsBusy || !myActor)
|
||||||
return;
|
return;
|
||||||
@ -916,7 +915,7 @@ void SMESHGUI_EditMeshDlg::onSelectElementFromGroup()
|
|||||||
// function : onAddGroup()
|
// function : onAddGroup()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onAddGroup()
|
void SMESHGUI_MergeDlg::onAddGroup()
|
||||||
{
|
{
|
||||||
if ( myMesh->_is_nil() || LineEditMesh->text().isEmpty() )
|
if ( myMesh->_is_nil() || LineEditMesh->text().isEmpty() )
|
||||||
return;
|
return;
|
||||||
@ -948,7 +947,7 @@ void SMESHGUI_EditMeshDlg::onAddGroup()
|
|||||||
// function : onRemoveGroup()
|
// function : onRemoveGroup()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onRemoveGroup()
|
void SMESHGUI_MergeDlg::onRemoveGroup()
|
||||||
{
|
{
|
||||||
if (myEditCurrentArgument != (QWidget*)ListCoincident)
|
if (myEditCurrentArgument != (QWidget*)ListCoincident)
|
||||||
return;
|
return;
|
||||||
@ -970,7 +969,7 @@ void SMESHGUI_EditMeshDlg::onRemoveGroup()
|
|||||||
// function : onAddElement()
|
// function : onAddElement()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onAddElement()
|
void SMESHGUI_MergeDlg::onAddElement()
|
||||||
{
|
{
|
||||||
if (!myActor)
|
if (!myActor)
|
||||||
return;
|
return;
|
||||||
@ -1006,7 +1005,7 @@ void SMESHGUI_EditMeshDlg::onAddElement()
|
|||||||
// function : onRemoveElement()
|
// function : onRemoveElement()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onRemoveElement()
|
void SMESHGUI_MergeDlg::onRemoveElement()
|
||||||
{
|
{
|
||||||
if (myEditCurrentArgument != (QWidget*)ListCoincident)
|
if (myEditCurrentArgument != (QWidget*)ListCoincident)
|
||||||
return;
|
return;
|
||||||
@ -1026,7 +1025,7 @@ void SMESHGUI_EditMeshDlg::onRemoveElement()
|
|||||||
// function : onSetFirst()
|
// function : onSetFirst()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onSetFirst()
|
void SMESHGUI_MergeDlg::onSetFirst()
|
||||||
{
|
{
|
||||||
if (myEditCurrentArgument != (QWidget*)ListCoincident)
|
if (myEditCurrentArgument != (QWidget*)ListCoincident)
|
||||||
return;
|
return;
|
||||||
@ -1048,7 +1047,7 @@ void SMESHGUI_EditMeshDlg::onSetFirst()
|
|||||||
// function : SetEditCurrentArgument()
|
// function : SetEditCurrentArgument()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::SetEditCurrentArgument()
|
void SMESHGUI_MergeDlg::SetEditCurrentArgument()
|
||||||
{
|
{
|
||||||
QPushButton* send = (QPushButton*)sender();
|
QPushButton* send = (QPushButton*)sender();
|
||||||
|
|
||||||
@ -1074,7 +1073,7 @@ void SMESHGUI_EditMeshDlg::SetEditCurrentArgument()
|
|||||||
// function : SelectionIntoArgument()
|
// function : SelectionIntoArgument()
|
||||||
// purpose : Called when selection as changed or other case
|
// purpose : Called when selection as changed or other case
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::SelectionIntoArgument()
|
void SMESHGUI_MergeDlg::SelectionIntoArgument()
|
||||||
{
|
{
|
||||||
if (myEditCurrentArgument == (QWidget*)LineEditMesh) {
|
if (myEditCurrentArgument == (QWidget*)LineEditMesh) {
|
||||||
QString aString = "";
|
QString aString = "";
|
||||||
@ -1136,7 +1135,7 @@ void SMESHGUI_EditMeshDlg::SelectionIntoArgument()
|
|||||||
// function : DeactivateActiveDialog()
|
// function : DeactivateActiveDialog()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::DeactivateActiveDialog()
|
void SMESHGUI_MergeDlg::DeactivateActiveDialog()
|
||||||
{
|
{
|
||||||
if (GroupConstructors->isEnabled()) {
|
if (GroupConstructors->isEnabled()) {
|
||||||
GroupConstructors->setEnabled(false);
|
GroupConstructors->setEnabled(false);
|
||||||
@ -1157,7 +1156,7 @@ void SMESHGUI_EditMeshDlg::DeactivateActiveDialog()
|
|||||||
// function : ActivateThisDialog()
|
// function : ActivateThisDialog()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::ActivateThisDialog()
|
void SMESHGUI_MergeDlg::ActivateThisDialog()
|
||||||
{
|
{
|
||||||
/* Emit a signal to deactivate the active dialog */
|
/* Emit a signal to deactivate the active dialog */
|
||||||
mySMESHGUI->EmitSignalDeactivateDialog();
|
mySMESHGUI->EmitSignalDeactivateDialog();
|
||||||
@ -1177,7 +1176,7 @@ void SMESHGUI_EditMeshDlg::ActivateThisDialog()
|
|||||||
// function : enterEvent()
|
// function : enterEvent()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::enterEvent(QEvent*)
|
void SMESHGUI_MergeDlg::enterEvent(QEvent*)
|
||||||
{
|
{
|
||||||
if (!GroupConstructors->isEnabled())
|
if (!GroupConstructors->isEnabled())
|
||||||
ActivateThisDialog();
|
ActivateThisDialog();
|
||||||
@ -1187,7 +1186,7 @@ void SMESHGUI_EditMeshDlg::enterEvent(QEvent*)
|
|||||||
// function : closeEvent()
|
// function : closeEvent()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::closeEvent(QCloseEvent*)
|
void SMESHGUI_MergeDlg::closeEvent(QCloseEvent*)
|
||||||
{
|
{
|
||||||
/* same than click on cancel button */
|
/* same than click on cancel button */
|
||||||
ClickOnCancel();
|
ClickOnCancel();
|
||||||
@ -1197,7 +1196,7 @@ void SMESHGUI_EditMeshDlg::closeEvent(QCloseEvent*)
|
|||||||
//function : hideEvent
|
//function : hideEvent
|
||||||
//purpose : caused by ESC key
|
//purpose : caused by ESC key
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
void SMESHGUI_EditMeshDlg::hideEvent (QHideEvent *)
|
void SMESHGUI_MergeDlg::hideEvent (QHideEvent *)
|
||||||
{
|
{
|
||||||
if (!isMinimized())
|
if (!isMinimized())
|
||||||
ClickOnCancel();
|
ClickOnCancel();
|
||||||
@ -1207,7 +1206,7 @@ void SMESHGUI_EditMeshDlg::hideEvent (QHideEvent *)
|
|||||||
// function : keyPressEvent()
|
// function : keyPressEvent()
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::keyPressEvent( QKeyEvent* e)
|
void SMESHGUI_MergeDlg::keyPressEvent( QKeyEvent* e)
|
||||||
{
|
{
|
||||||
QDialog::keyPressEvent( e );
|
QDialog::keyPressEvent( e );
|
||||||
if ( e->isAccepted() )
|
if ( e->isAccepted() )
|
||||||
@ -1223,14 +1222,15 @@ void SMESHGUI_EditMeshDlg::keyPressEvent( QKeyEvent* e)
|
|||||||
// function : onTypeChanged()
|
// function : onTypeChanged()
|
||||||
// purpose : the type radio button management
|
// purpose : the type radio button management
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::onTypeChanged (int id)
|
void SMESHGUI_MergeDlg::onTypeChanged (int id)
|
||||||
{
|
{
|
||||||
if (myTypeId == id)
|
if (myTypeId == id)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
myTypeId = id;
|
myTypeId = id;
|
||||||
switch (id) {
|
switch (id)
|
||||||
case 0:
|
{
|
||||||
|
case 0: // automatic
|
||||||
myIdPreview->SetPointsLabeled(false);
|
myIdPreview->SetPointsLabeled(false);
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
@ -1242,7 +1242,8 @@ void SMESHGUI_EditMeshDlg::onTypeChanged (int id)
|
|||||||
GroupCoincident->hide();
|
GroupCoincident->hide();
|
||||||
GroupEdit->hide();
|
GroupEdit->hide();
|
||||||
break;
|
break;
|
||||||
case 1:
|
|
||||||
|
case 1: // manual
|
||||||
SMESH::UpdateView();
|
SMESH::UpdateView();
|
||||||
|
|
||||||
// Costruction of the logical filter
|
// Costruction of the logical filter
|
@ -21,11 +21,11 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
// SMESH SMESHGUI : GUI for SMESH component
|
// SMESH SMESHGUI : GUI for SMESH component
|
||||||
// File : SMESHGUI_EditMeshDlg.h
|
// File : SMESHGUI_MergeDlg.h
|
||||||
// Author : Open CASCADE S.A.S.
|
// Author : Open CASCADE S.A.S.
|
||||||
//
|
//
|
||||||
#ifndef SMESHGUI_EDITMESHDLG_H
|
#ifndef SMESHGUI_MergeDlg_H
|
||||||
#define SMESHGUI_EDITMESHDLG_H
|
#define SMESHGUI_MergeDlg_H
|
||||||
|
|
||||||
// SMESH includes
|
// SMESH includes
|
||||||
#include "SMESH_SMESHGUI.hxx"
|
#include "SMESH_SMESHGUI.hxx"
|
||||||
@ -65,16 +65,16 @@ namespace SMESH
|
|||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : SMESHGUI_EditMeshDlg
|
// class : SMESHGUI_MergeDlg
|
||||||
// purpose :
|
// purpose :
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
class SMESHGUI_EXPORT SMESHGUI_EditMeshDlg : public QDialog
|
class SMESHGUI_EXPORT SMESHGUI_MergeDlg : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT;
|
Q_OBJECT;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SMESHGUI_EditMeshDlg( SMESHGUI*, int );
|
SMESHGUI_MergeDlg( SMESHGUI*, int );
|
||||||
~SMESHGUI_EditMeshDlg();
|
~SMESHGUI_MergeDlg();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
@ -164,4 +164,4 @@ private:
|
|||||||
void onTypeChanged(int);
|
void onTypeChanged(int);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SMESHGUI_EDITMESHDLG_H
|
#endif // SMESHGUI_MergeDlg_H
|
@ -3758,7 +3758,7 @@ Please select a groups and try again</translation>
|
|||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>SMESHGUI_EditMeshDlg</name>
|
<name>SMESHGUI_MergeDlg</name>
|
||||||
<message>
|
<message>
|
||||||
<source>COINCIDENT_ELEMENTS</source>
|
<source>COINCIDENT_ELEMENTS</source>
|
||||||
<translation>Coincident elements</translation>
|
<translation>Coincident elements</translation>
|
||||||
|
Loading…
Reference in New Issue
Block a user