1 | /* |
2 | Copyright (C) 1997 Mathias Mueller <in5y158@public.uni-hamburg.de> |
3 | Copyright (C) 2006 Mauricio Piacentini <mauricio@tabuleiro.com> |
4 | |
5 | Libkmahjongg is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
9 | |
10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #ifndef _KMAHJONGGBACKGROUND_H_ |
21 | #define _KMAHJONGGBACKGROUND_H_ |
22 | |
23 | #include <QtGui/QBrush> |
24 | |
25 | #include "libkmahjongg_export.h" |
26 | |
27 | class KMahjonggBackgroundPrivate; |
28 | |
29 | class KMAHJONGGLIB_EXPORT KMahjonggBackground |
30 | { |
31 | public: |
32 | KMahjonggBackground(); |
33 | ~KMahjonggBackground(); |
34 | |
35 | bool loadDefault(); |
36 | bool load(const QString &file, short width, short height); |
37 | bool loadGraphics(); |
38 | void sizeChanged(int newW, int newH); |
39 | QBrush & getBackground(); |
40 | QString path() const; |
41 | QString authorProperty(const QString &key) const; |
42 | |
43 | private: |
44 | friend class KMahjonggBackgroundPrivate; |
45 | KMahjonggBackgroundPrivate *const d; |
46 | |
47 | Q_DISABLE_COPY(KMahjonggBackground) |
48 | }; |
49 | |
50 | #endif |
51 | |