| 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 FIELD_H |
| 22 | #define FIELD_Hcxx . . $ `src/field.h:22:9`! |
| 23 | |
| 24 | #include <QtWidgets> |
| 25 | #include <qpixmap.h> |
| 26 | |
| 27 | #include "theme.h"cxx . . $ `<file>/src/theme.h`/ |
| 28 | |
| 29 | |
| 30 | class Fieldcxx . . $ Field# : public QObjectcxx . . $ QObject# |
| 31 | { |
| 32 | Q_OBJECTcxx . . $ Field#trUtf8(75d9f1c324b4579d). |
| 33 | |
| 34 | public: |
| 35 | Fieldcxx . . $ Field#Field(3f47e595a91bc133).(QObjectcxx . . $ QObject#*, int num); |
| 36 | ~cxx . . $ Field#`~Field`(ced63f7c635d850d).Fieldcxx . . $ Field#(); |
| 37 | |
| 38 | //QSize sizeHint() const; |
| 39 | //void resizeEvent(QResizeEvent*); |
| 40 | |
| 41 | const QStringcxx . . $ QString#& labelcxx . . $ Field#label(a2fb7a6ce195d51).() const { return m_labelcxx . . $ Field#m_label.; } |
| 42 | void setLabelcxx . . $ Field#setLabel(3520e46b33348bf6).(const QStringcxx . . $ QString#&); |
| 43 | void showLabelcxx . . $ Field#showLabel(b0b38cda41d4ede4).(bool s, bool above); |
| 44 | |
| 45 | void showFramecxx . . $ Field#showFrame(b45ddcbc8423892c).(bool); |
| 46 | |
| 47 | void setThemecxx . . $ Field#setTheme(99b847e279ae44f4).(Themecxx . . $ Theme#*); |
| 48 | void setPatterncxx . . $ Field#setPattern(d4f767463ce0a6b3).(int); |
| 49 | void setcxx . . $ Field#set(918ebd27a9ddbad3).(int, bool); |
| 50 | |
| 51 | int numbercxx . . $ Field#number(455f465bc33b4cdf).() const { return m_numbercxx . . $ Field#m_number.; } |
| 52 | |
| 53 | int widthcxx . . $ Field#width(455f465bc33b4cdf).() const { |
| 54 | const QPixmapcxx . . $ QPixmap#& checker = m_themecxx . . $ Field#m_theme.->getMan1cxx . . $ Theme#getMan1(7d50b0428cc83314).(true); |
| 55 | return checker.widthcxx . . $ QPixmap#width(455f465bc33b4cdf).(); |
| 56 | } |
| 57 | |
| 58 | int heightcxx . . $ Field#height(455f465bc33b4cdf).() const { |
| 59 | const QPixmapcxx . . $ QPixmap#& checker = m_themecxx . . $ Field#m_theme.->getMan1cxx . . $ Theme#getMan1(7d50b0428cc83314).(true); |
| 60 | return checker.heightcxx . . $ QPixmap#height(455f465bc33b4cdf).(); |
| 61 | } |
| 62 | |
| 63 | void fontUpdatecxx . . $ Field#fontUpdate(49f6e7a06ebc5aa8).() { drawcxx . . $ Field#draw(49f6e7a06ebc5aa8).(); } |
| 64 | |
| 65 | void beginSetupcxx . . $ Field#beginSetup(49f6e7a06ebc5aa8).(); |
| 66 | void endSetupcxx . . $ Field#endSetup(49f6e7a06ebc5aa8).(); |
| 67 | void drawcxx . . $ Field#draw(34758fb9d6aa1963).(QPaintercxx . . $ QPainter#&, QRectcxx . . $ QRect#); |
| 68 | void invalidatecxx . . $ Field#invalidate(49f6e7a06ebc5aa8).(); |
| 69 | |
| 70 | const QRectcxx . . $ QRect#& rectcxx . . $ Field#rect(f4023511c62cad66).() const; |
| 71 | |
| 72 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 73 | void clickcxx . . $ Field#click(d4f767463ce0a6b3).(int); |
| 74 | |
| 75 | protected: |
| 76 | |
| 77 | //void paintEvent(QPaintEvent*); |
| 78 | //void mousePressEvent(QMouseEvent*); |
| 79 | |
| 80 | private: |
| 81 | void drawcxx . . $ Field#draw(49f6e7a06ebc5aa8).(); |
| 82 | //void setPicture(QPixmap*); |
| 83 | |
| 84 | int m_numbercxx . . $ Field#m_number.; |
| 85 | |
| 86 | // pixmap = pattern + label + picture + frame; |
| 87 | |
| 88 | /*QPixmap* m_frame; |
| 89 | QPixmap* m_checker; |
| 90 | QPixmap* m_pattern;*/ |
| 91 | int m_pattern_idcxx . . $ Field#m_pattern_id.; |
| 92 | int m_checker_idcxx . . $ Field#m_checker_id.; |
| 93 | bool m_bottom_is_whitecxx . . $ Field#m_bottom_is_white.; |
| 94 | |
| 95 | QStringcxx . . $ QString# m_labelcxx . . $ Field#m_label.; |
| 96 | bool m_show_labelcxx . . $ Field#m_show_label.; |
| 97 | bool m_show_abovecxx . . $ Field#m_show_above.; |
| 98 | |
| 99 | QPixmapcxx . . $ QPixmap#* pixmapcxx . . $ Field#pixmap.; |
| 100 | bool pixmap_validcxx . . $ Field#pixmap_valid.; |
| 101 | |
| 102 | bool show_framecxx . . $ Field#show_frame.; |
| 103 | |
| 104 | bool setup_modecxx . . $ Field#setup_mode.; |
| 105 | Themecxx . . $ Theme#* m_themecxx . . $ Field#m_theme.; |
| 106 | QRectcxx . . $ QRect# m_rectcxx . . $ Field#m_rect.; |
| 107 | }; |
| 108 | |
| 109 | #endif |
| 110 | |
| 111 |