moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kturtle / src / translate.h
blob8865301d6cd69beefd48fffd87e66f85664605a7
1 /*
2 Copyright (C) 2004 by Cies Breijs
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of version 2 of the GNU General Public
6 License as published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #ifndef _TRANSLATE_H_
20 #define _TRANSLATE_H_
22 #include <qmap.h>
23 #include <qstring.h>
26 class Translate
28 public:
29 Translate();
30 ~Translate() {}
32 QString name2fuzzy(const QString&);
33 QString name2key(const QString&);
34 QString alias2key(const QString&);
37 private:
38 void loadTranslations();
40 typedef QMap<QString, QString> StringMap;
41 StringMap keyMap;
42 StringMap aliasMap;
43 StringMap reverseAliasMap;
47 #endif // _TRANSLATE_H_