X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_NodesDlg.cxx;h=5ae62afc1e539a30836af819824cf36706336dc5;hb=0de991099a7f8bea2687d44c20021be3066f3615;hp=f6925f697f0b27162f789177071b40347f4d832f;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx index f6925f697..5ae62afc1 100644 --- a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx @@ -78,7 +78,7 @@ SMESHGUI_NodesDlg::SMESHGUI_NodesDlg( QWidget* parent, : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) { - QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESHGUI",tr("ICON_DLG_NODE"))); + QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr("ICON_DLG_NODE"))); if ( !name ) setName( "SMESHGUI_NodesDlg" ); resize( 303, 185 ); @@ -284,7 +284,7 @@ void SMESHGUI_NodesDlg::ClickOnApply() //======================================================================= void SMESHGUI_NodesDlg::ClickOnCancel() { - QAD_Application::getDesktop()->SetSelectionMode( 4 ); + QAD_Application::getDesktop()->SetSelectionMode( ActorSelection ); disconnect( mySelection, 0, this, 0 ); myMeshGUI->ResetState() ; myMeshGUI->EraseSimulationActors() ; @@ -316,12 +316,12 @@ void SMESHGUI_NodesDlg::SelectionIntoArgument() return ; } - if ( mySelection->SelectionMode() != 1 ) { + if ( mySelection->SelectionMode() != NodeSelection ) { SpinBox_X->SetValue(0.0) ; SpinBox_Y->SetValue(0.0) ; SpinBox_Z->SetValue(0.0) ; QAD_MessageBox::warn1 ( QAD_Application::getDesktop(), tr ("SMESH_WRN_WARNING"), - tr ("SMESH_WRN_SELECTIONMODE_NODES"), tr ("SMESH_BUT_YES") ); + tr ("SMESH_WRN_SELECTIONMODE_NODES"), tr ("SMESH_BUT_OK") ); return; } @@ -345,7 +345,7 @@ void SMESHGUI_NodesDlg::SelectionIntoArgument() Standard_Boolean result; SMESH_Actor* ac = myMeshGUI->FindActor( myMesh, result, true ); - vtkUnstructuredGrid* ugrid = vtkUnstructuredGrid::SafeDownCast( ac->DataSource ); + vtkUnstructuredGrid* ugrid = vtkUnstructuredGrid::SafeDownCast( ac->GetUnstructuredGrid() ); float *p0 = ugrid->GetPoint(idNodes[0]); SpinBox_X->SetValue( p0[0] ) ;