Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
superkaramba
superkaramba
superkaramba
src
themelocale.h
1
/*
2
* Copyright (c) 2005 Petri Damsten <damu@iki.fi>
3
*
4
* This file is part of SuperKaramba.
5
*
6
* SuperKaramba is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* SuperKaramba is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with SuperKaramba; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
****************************************************************************/
20
#ifndef THEMELOCALE_H
21
#define THEMELOCALE_H
22
23
#include <tqstring.h>
24
#include <tqstringlist.h>
25
26
class
ThemeFile
;
27
32
struct
sk_kde_loaded_l10nfile
33
{
34
int
decided;
35
const
void
*data;
36
sk_kde_loaded_l10nfile
() : decided(0), data(0) {}
37
};
38
39
class
ThemeLocale
40
{
41
public
:
42
ThemeLocale(
ThemeFile
* theme);
43
~ThemeLocale();
44
45
TQString translate(TQString text)
const
;
46
void
setLanguage(
const
TQStringList &languages);
47
TQString language()
const
{
return
m_language; };
48
49
static
TQStringList languageList();
50
51
private
:
52
sk_kde_loaded_l10nfile
m_domain;
53
ThemeFile
* m_theme;
54
TQString m_language;
55
56
void
unload();
57
};
58
59
60
61
#endif
ThemeFile
Definition:
themefile.h:43
sk_kde_loaded_l10nfile
Definition:
themelocale.h:33
superkaramba
Skip menu "superkaramba"
Main Page
Alphabetical List
Class List
File List
Class Members
superkaramba
Skip menu "superkaramba"
kcalc
knumber
superkaramba