Salome HOME
This commit was generated by cvs2git to create branch 'PAL_OCC'.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_OrientationElementsDlg.cxx
index 4df1f71616f3f7c0e5e6d82a823917c73647b9fa..92b7101a50806da001a2e4708dc64c33b557a746 100644 (file)
@@ -58,8 +58,8 @@ SMESHGUI_OrientationElementsDlg::SMESHGUI_OrientationElementsDlg( QWidget* paren
                                                  bool modal, WFlags fl )
     : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
 {
-    QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESHGUI",tr("ICON_DLG_MESH_ORIENTATION")));
-    QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "SMESHGUI",tr("ICON_SELECT")));
+    QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr("ICON_DLG_MESH_ORIENTATION")));
+    QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr("ICON_SELECT")));
 
     if ( !name )
        setName( "SMESHGUI_OrientationElementsDlg" );
@@ -249,7 +249,7 @@ void SMESHGUI_OrientationElementsDlg::ClickOnOk()
 //=================================================================================
 void SMESHGUI_OrientationElementsDlg::ClickOnCancel()
 {
-  QAD_Application::getDesktop()->SetSelectionMode( 4 );
+  QAD_Application::getDesktop()->SetSelectionMode( ActorSelection );
   disconnect( mySelection, 0, this, 0 );
   mySMESHGUI->ResetState() ;
   reject() ;
@@ -275,9 +275,9 @@ void SMESHGUI_OrientationElementsDlg::SelectionIntoArgument()
   if(nbElements < 1)
     return ;
   
-  if ( mySelection->SelectionMode() != 3 ) {
+  if ( mySelection->SelectionMode() != FaceSelection ) {
     QAD_MessageBox::warn1 ( QAD_Application::getDesktop(), tr ("SMESH_WRN_WARNING"),
-                           tr ("SMESH_WRN_SELECTIONMODE_ELEMENTS"), tr ("SMESH_BUT_YES") );
+                           tr ("SMESH_WRN_SELECTIONMODE_ELEMENTS"), tr ("SMESH_BUT_OK") );
     return;
   }