| 1 | /*************************************************************************** |
| 2 | * Copyright (C) 2002-2003 Andi Peredri * |
| 3 | * [email protected] * |
| 4 | * * |
| 5 | * This program 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 * |
| 17 | * Free Software Foundation, Inc., * |
| 18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
| 19 | ***************************************************************************/ |
| 20 | |
| 21 | #ifndef THEME_H |
| 22 | #define THEME_Hcxx . . $ `src/theme.h:22:9`! |
| 23 | |
| 24 | #include <QtWidgets> |
| 25 | #include <qpixmap.h> |
| 26 | |
| 27 | class Themecxx . . $ Theme# : public QObjectcxx . . $ QObject# { |
| 28 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 29 | |
| 30 | public: |
| 31 | Themecxx . . $ Theme#Theme(ba4fec6a2ac44090).(QObjectcxx . . $ QObject#*, const QStringcxx . . $ QString#&, int); |
| 32 | |
| 33 | QPixmapcxx . . $ QPixmap#& getMan1cxx . . $ Theme#getMan1(7d50b0428cc83314).(bool); |
| 34 | QPixmapcxx . . $ QPixmap#& getMan2cxx . . $ Theme#getMan2(7d50b0428cc83314).(bool); |
| 35 | QPixmapcxx . . $ QPixmap#& getKing1cxx . . $ Theme#getKing1(7d50b0428cc83314).(bool); |
| 36 | QPixmapcxx . . $ QPixmap#& getKing2cxx . . $ Theme#getKing2(7d50b0428cc83314).(bool); |
| 37 | |
| 38 | QPixmapcxx . . $ QPixmap#& getCheckercxx . . $ Theme#getChecker(4ba5b81937b338e1).(int, bool); |
| 39 | |
| 40 | QPixmapcxx . . $ QPixmap#& getPattern1cxx . . $ Theme#getPattern1(249fa7b9f2945cb1).(); |
| 41 | QPixmapcxx . . $ QPixmap#& getPattern2cxx . . $ Theme#getPattern2(249fa7b9f2945cb1).(); |
| 42 | QPixmapcxx . . $ QPixmap#& getPatterncxx . . $ Theme#getPattern(d87f11e1b39fe07).(int); |
| 43 | QPixmapcxx . . $ QPixmap#& getFramecxx . . $ Theme#getFrame(249fa7b9f2945cb1).(); |
| 44 | |
| 45 | void setTargetSizecxx . . $ Theme#setTargetSize(d4f767463ce0a6b3).(int); |
| 46 | int getFieldWidthcxx . . $ Theme#getFieldWidth(b126dc7c1de90089).(); |
| 47 | int getFieldHeightcxx . . $ Theme#getFieldHeight(b126dc7c1de90089).(); |
| 48 | |
| 49 | bool getIsResizeablecxx . . $ Theme#getIsResizeable(c9857a73d68e59ba).(); |
| 50 | |
| 51 | bool isValidcxx . . $ Theme#isValid(c9857a73d68e59ba).(); |
| 52 | void resetcxx . . $ Theme#reset(49f6e7a06ebc5aa8).(); |
| 53 | |
| 54 | const QStringcxx . . $ QString# namecxx . . $ Theme#name(ea4b39313763ec41).(); |
| 55 | |
| 56 | private: |
| 57 | |
| 58 | void rendercxx . . $ Theme#render(4c6a08eb3802298e).(const QStringcxx . . $ QString#&, QPixmapcxx . . $ QPixmap#& result, bool&); |
| 59 | QSettingscxx . . $ QSettings#* settingscxx . . $ Theme#settings.; |
| 60 | |
| 61 | QStringcxx . . $ QString# m_pathcxx . . $ Theme#m_path.; |
| 62 | int m_target_sizecxx . . $ Theme#m_target_size.; |
| 63 | |
| 64 | QStringcxx . . $ QString# m_man_white_pathcxx . . $ Theme#m_man_white_path.; |
| 65 | QStringcxx . . $ QString# m_man_black_pathcxx . . $ Theme#m_man_black_path.; |
| 66 | QStringcxx . . $ QString# m_king_white_pathcxx . . $ Theme#m_king_white_path.; |
| 67 | QStringcxx . . $ QString# m_king_black_pathcxx . . $ Theme#m_king_black_path.; |
| 68 | |
| 69 | QStringcxx . . $ QString# m_pat1_pathcxx . . $ Theme#m_pat1_path.; |
| 70 | QStringcxx . . $ QString# m_pat2_pathcxx . . $ Theme#m_pat2_path.; |
| 71 | QStringcxx . . $ QString# m_frame_pathcxx . . $ Theme#m_frame_path.; |
| 72 | |
| 73 | QPixmapcxx . . $ QPixmap# m_man_whitecxx . . $ Theme#m_man_white.; |
| 74 | bool m_man_white_validcxx . . $ Theme#m_man_white_valid.; |
| 75 | QPixmapcxx . . $ QPixmap# m_man_blackcxx . . $ Theme#m_man_black.; |
| 76 | bool m_man_black_validcxx . . $ Theme#m_man_black_valid.; |
| 77 | QPixmapcxx . . $ QPixmap# m_king_whitecxx . . $ Theme#m_king_white.; |
| 78 | bool m_king_white_validcxx . . $ Theme#m_king_white_valid.; |
| 79 | QPixmapcxx . . $ QPixmap# m_king_blackcxx . . $ Theme#m_king_black.; |
| 80 | bool m_king_black_validcxx . . $ Theme#m_king_black_valid.; |
| 81 | |
| 82 | QPixmapcxx . . $ QPixmap# m_pattern1cxx . . $ Theme#m_pattern1.; |
| 83 | bool m_pattern1_validcxx . . $ Theme#m_pattern1_valid.; |
| 84 | QPixmapcxx . . $ QPixmap# m_pattern2cxx . . $ Theme#m_pattern2.; |
| 85 | bool m_pattern2_validcxx . . $ Theme#m_pattern2_valid.; |
| 86 | QPixmapcxx . . $ QPixmap# m_framecxx . . $ Theme#m_frame.; |
| 87 | bool m_frame_validcxx . . $ Theme#m_frame_valid.; |
| 88 | |
| 89 | QPixmapcxx . . $ QPixmap# m_empty_pixmapcxx . . $ Theme#m_empty_pixmap.; |
| 90 | |
| 91 | }; |
| 92 | |
| 93 | #endif |