Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

/home/jeroen/FOX/fox/fox-1.7.33/include/FXTranslator.h
00001 /********************************************************************************
00002 *                                                                               *
00003 *                       M e s s a g e   T r a n s l a t o r                     *
00004 *                                                                               *
00005 *********************************************************************************
00006 * Copyright (C) 2005,2012 by Jeroen van der Zijp.   All Rights Reserved.        *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or modify          *
00009 * it under the terms of the GNU Lesser General Public License as published by   *
00010 * the Free Software Foundation; either version 3 of the License, or             *
00011 * (at your option) any later version.                                           *
00012 *                                                                               *
00013 * This library is distributed in the hope that it will be useful,               *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of                *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                 *
00016 * GNU Lesser General Public License for more details.                           *
00017 *                                                                               *
00018 * You should have received a copy of the GNU Lesser General Public License      *
00019 * along with this program.  If not, see <http://www.gnu.org/licenses/>          *
00020 ********************************************************************************/
00021 #ifndef FXTRANSLATOR_H
00022 #define FXTRANSLATOR_H
00023 
00024 #ifndef FXOBJECT_H
00025 #include "FXObject.h"
00026 #endif
00027 
00028 
00030 
00031 
00032 namespace FX {
00033 
00034 
00038 class FXAPI FXTranslator : public FXObject {
00039   FXDECLARE(FXTranslator)
00040 private:
00041   FXTranslator(const FXTranslator&);
00042   FXTranslator &operator=(const FXTranslator&);
00043 public:
00044 
00046   FXTranslator();
00047 
00049   virtual const FXchar* tr(const FXchar* context,const FXchar* message,const FXchar* hint=NULL,FXint count=-1) const FX_FORMAT(2) ;
00050 
00052   virtual void save(FXStream& store) const;
00053 
00055   virtual void load(FXStream& store);
00056 
00058   virtual ~FXTranslator();
00059   };
00060 
00061 
00062 }
00063 
00064 #endif

Copyright © 1997-2011 Jeroen van der Zijp