Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 FLTranslator.h 00003 ------------------- 00004 begin : 07/08/2007 00005 copyright : (C) 2003-2007 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef FLTRANSLATOR_H_ 00020 #define FLTRANSLATOR_H_ 00021 00022 #include <qtranslator.h> 00023 #include <qstring.h> 00024 #include <qfile.h> 00025 00026 class FLApplication; 00027 00028 class FL_EXPORT FLTranslator : public QTranslator 00029 { 00030 00031 Q_OBJECT 00032 00033 public: 00034 00038 FLTranslator(QObject *parent = 0, const char *name = 0, 00039 bool multiLang = false, bool sysTrans = false); 00040 00050 bool loadTsContent(const QString &key); 00051 00052 virtual QTranslatorMessage findMessage(const char *context, const char *sourceText, 00053 const char *comment = 0) const; 00054 00055 private: 00056 00057 bool multiLang_; 00058 bool sysTrans_; 00059 00060 friend class FLApplication; 00061 }; 00062 00063 #endif /*FLTRANSLATOR_H_*/