X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSUIT%2FSUIT_ResourceMgr.h;h=8129aba07244c6138d0b91daaaa90ab587e2435d;hb=efe3cdefadc31ad9cdaa9fd7fc368e2931cebdf1;hp=308f175da903b73dff5b503558c59a3be7662a1e;hpb=2e750f9ded92337bc3c44e9d7388180974cc4a43;p=modules%2Fgui.git diff --git a/src/SUIT/SUIT_ResourceMgr.h b/src/SUIT/SUIT_ResourceMgr.h index 308f175da..8129aba07 100755 --- a/src/SUIT/SUIT_ResourceMgr.h +++ b/src/SUIT/SUIT_ResourceMgr.h @@ -1,3 +1,25 @@ +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 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, or (at your option) any later version. +// +// 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.salome-platform.org/ or email : webmaster.salome@opencascade.com +// + #ifndef SUIT_RESOURCEMGR_H #define SUIT_RESOURCEMGR_H @@ -8,10 +30,22 @@ class SUIT_EXPORT SUIT_ResourceMgr : public QtxResourceMgr { public: - SUIT_ResourceMgr( const QString&, const QString& = QString::null ); + SUIT_ResourceMgr( const QString&, const QString& = QString() ); virtual ~SUIT_ResourceMgr(); - QString loadDoc( const QString&, const QString& ) const; + virtual QString version() const; + void setVersion( const QString& ); + + QString loadDoc( const QString&, const QString& ) const; + +protected: + virtual QString userFileName( const QString&, const bool = true ) const; + virtual QString findAppropriateUserFile( const QString& ) const; + virtual long userFileId( const QString& ) const; + virtual QString defaultLanguage() const; + +private: + QString myVersion; }; #endif