X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEGUI%2FQAD_XmlHandler.cxx;h=2226782d4581071129b3a1092aefab5d77f0edbb;hb=b5b44337d62219656650cf2b21108594bbf9adc3;hp=53d5697778e503f32dfd2a7559ca910086257100;hpb=61d4fc88c862e718985aa6e9b1bf72f055553eee;p=modules%2Fkernel.git diff --git a/src/SALOMEGUI/QAD_XmlHandler.cxx b/src/SALOMEGUI/QAD_XmlHandler.cxx index 53d569777..2226782d4 100644 --- a/src/SALOMEGUI/QAD_XmlHandler.cxx +++ b/src/SALOMEGUI/QAD_XmlHandler.cxx @@ -1,12 +1,32 @@ -using namespace std; -// File : QAD_XmlHandler.cxx -// Created : Thu Jun 14 13:59:36 2001 -// Author : Nicolas REJNERI -// Project : SALOME -// Module : SALOMEGUI -// Copyright : Open CASCADE +// SALOME SALOMEGUI : implementation of desktop and GUI kernel +// +// 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 : QAD_XmlHandler.cxx +// Author : Nicolas REJNERI +// Module : SALOME // $Header$ +using namespace std; #define INCLUDE_MENUITEM_DEF #include "QAD_Desktop.h" @@ -240,8 +260,8 @@ bool QAD_XmlHandler::startElement( const QString&, const QString&, myMenus->myActiveToolBar->hide(); } else if ( qName == "toolbutton-item" ) { //TOOL BUTTON QString aQStringToolButtonItemId(atts.value( "item-id" )); - QAction* anAction= - new QAction + QActionP* anAction= + new QActionP (QObject::tr(atts.value( "label-id" )), QPixmap( findFile( myPathResources, atts.value( "icon-id") ) ), QObject::tr(atts.value( "label-id" )),