X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_DiagonalInversionDlg.cxx;h=bc76e32fb5f897fc253c0a6a0f01116f09c34761;hp=98d6f955b40068feb4ca920e2a02b33d08017a1e;hb=51569f091c2d18be76ea9bd3e68ca0247cc731c3;hpb=3973ceea250d2a077cdb5a798eb7c6151fa9c568 diff --git a/src/SMESHGUI/SMESHGUI_DiagonalInversionDlg.cxx b/src/SMESHGUI/SMESHGUI_DiagonalInversionDlg.cxx index 98d6f955b..bc76e32fb 100644 --- a/src/SMESHGUI/SMESHGUI_DiagonalInversionDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_DiagonalInversionDlg.cxx @@ -1,14 +1,32 @@ -using namespace std; -// File : SMESHGUI_DiagonalInversionDlg.cxx -// Created : -// Author : Damien COQUERET - -// Project : SALOME -// Module : SMESH -// Copyright : Open CASCADE 2002 +// SMESH SMESHGUI : GUI for SMESH component +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : SMESHGUI_DiagonalInversionDlg.cxx +// Author : Damien COQUERET +// Module : SMESH // $Header$ - +using namespace std; #include "SMESHGUI_DiagonalInversionDlg.h" #include "SMESHGUI.h" @@ -40,8 +58,8 @@ SMESHGUI_DiagonalInversionDlg::SMESHGUI_DiagonalInversionDlg( QWidget* parent, c 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_DIAGONAL"))); - QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "SMESHGUI",tr("ICON_SELECT"))); + QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr("ICON_DLG_MESH_DIAGONAL"))); + QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "SMESH",tr("ICON_SELECT"))); if ( !name ) setName( "SMESHGUI_DiagonalInversionDlg" ); @@ -229,7 +247,7 @@ void SMESHGUI_DiagonalInversionDlg::ClickOnOk() //================================================================================= void SMESHGUI_DiagonalInversionDlg::ClickOnCancel() { - QAD_Application::getDesktop()->SetSelectionMode( 4 ); + QAD_Application::getDesktop()->SetSelectionMode( ActorSelection ); disconnect( mySelection, 0, this, 0 ); mySMESHGUI->ResetState() ; reject() ; @@ -247,7 +265,7 @@ void SMESHGUI_DiagonalInversionDlg::SelectionIntoArgument() myOkElements = false; QString aString = ""; - if ( mySelection->SelectionMode() != 2 ) { + if ( mySelection->SelectionMode() != EdgeSelection ) { return; }