Debian Codegraph @

src/board.h

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2004-2005 Artur Wiebe *
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 _BOARD_H_
22 #define _BOARD_H_cxx . . $ `src/board.h:22:9`!
23
24
25 #include <QFrame>
26
27 #include "theme.h"cxx . . $ `<file>/src/theme.h`/
28 #include "field.h"cxx . . $ `<file>/src/field.h`/
29 #include "checkers.h"cxx . . $ `<file>/src/checkers.h`/
30
31
32 class myBoardcxx . . $ myBoard# : public QFramecxx . . $ QFrame#
33 {
34 Q_OBJECTcxx . . $ myBoard#QPrivateSignal#
35
36 public:
37 myBoardcxx . . $ myBoard#myBoard(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent);
38 ~cxx . . $ myBoard#`~myBoard`(ced63f7c635d850d).myBoardcxx . . $ myBoard#();
39
40 QSizecxx . . $ QSize# sizeHintcxx . . $ myBoard#sizeHint(4b3b776e5ee2b367).() const;
41 void resizeEventcxx . . $ myBoard#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent#*);
42
43 // returns coded move string: from_pos_string?to_pos_string
44 QStringcxx . . $ QString# doMovecxx . . $ myBoard#doMove(12ab5028faa519cd).(int from_pos, int to_pos, bool white_player);
45 // coded move.
46 bool doMovecxx . . $ myBoard#doMove(7bc58614ad8ebda3).(const QStringcxx . . $ QString#& move, bool white_player);
47 //
48 void doFreeMovecxx . . $ myBoard#doFreeMove(3e454b8ccf442868).(int from, int to);
49
50 void selectFieldcxx . . $ myBoard#selectField(918ebd27a9ddbad3).(int field_num, bool is_on);
51
52 void setThemecxx . . $ myBoard#setTheme(37c160c81b6367f7).(const QStringcxx . . $ QString#& theme_path, bool set_white);
53
54 void setNotationcxx . . $ myBoard#setNotation(b0b38cda41d4ede4).(bool enabled, bool show_above);
55 void setNotationFontcxx . . $ myBoard#setNotationFont(d0a4bd0c8524b912).(const QFontcxx . . $ QFont#& f);
56
57 void setColorWhitecxx . . $ myBoard#setColorWhite(b45ddcbc8423892c).(bool);
58 void resetcxx . . $ myBoard#reset(49f6e7a06ebc5aa8).();
59 void adjustNotationcxx . . $ myBoard#adjustNotation(b45ddcbc8423892c).(bool bottom_is_white);
60
61 void setGamecxx . . $ myBoard#setGame(d4f767463ce0a6b3).(int rules);
62
63 bool whiteIsNextcxx . . $ myBoard#whiteIsNext(50ce9a9e25b4a850).() const;
64
65 int typecxx . . $ myBoard#type(455f465bc33b4cdf).() const { return m_gamecxx . . $ myBoard#m_game.->typecxx . . $ Checkers#type(455f465bc33b4cdf).(); }
66 // TODO
67 const Checkerscxx . . $ Checkers#* gamecxx . . $ myBoard#game(73ee8df7dedc63f6).() const { return m_gamecxx . . $ myBoard#m_game.; }
68
69 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
70 void fieldClickedcxx . . $ myBoard#fieldClicked(d4f767463ce0a6b3).(int);
71
72 protected:
73 void paintEventcxx . . $ myBoard#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent#*);
74 void mousePressEventcxx . . $ myBoard#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#*);
75 void timerEventcxx . . $ myBoard#timerEvent(b9e57d1150f23bf5).(QTimerEventcxx . . $ QTimerEvent#*);
76
77 private:
78 bool convert_movecxx . . $ myBoard#convert_move(50f8f23f66042ab).(const QStringcxx . . $ QString#&, int* from, int* to);
79 void fieldsSetupcxx . . $ myBoard#fieldsSetup(49f6e7a06ebc5aa8).();
80 void drawcxx . . $ myBoard#draw(49f6e7a06ebc5aa8).();
81 void drawFieldcxx . . $ myBoard#drawField(1d81d6ab033f4409).(QPaintercxx . . $ QPainter#&, Fieldcxx . . $ Field#*, int, int);
82 void invalidatecxx . . $ myBoard#invalidate(49f6e7a06ebc5aa8).();
83 void beginSetupcxx . . $ myBoard#beginSetup(49f6e7a06ebc5aa8).();
84 void endSetupcxx . . $ myBoard#endSetup(49f6e7a06ebc5aa8).();
85 int getTargetFieldSizecxx . . $ myBoard#getTargetFieldSize(a2fa66c7aa097f19).(QSizecxx . . $ QSize# size);
86
87 void highlightcxx . . $ myBoard#highlight(6908015b96d379c0).(int, int, bool);
88
89 private:
90 Fieldcxx . . $ Field#* m_fieldscxx . . $ myBoard#m_fields.[64];
91 QPixmapcxx . . $ QPixmap#* pixmapcxx . . $ myBoard#pixmap. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;
92 bool pixmap_validcxx . . $ myBoard#pixmap_valid.;
93
94 Themecxx . . $ Theme#* m_themecxx . . $ myBoard#m_theme.;
95
96 bool bottom_is_whitecxx . . $ myBoard#bottom_is_white.;
97 bool animation_in_progresscxx . . $ myBoard#animation_in_progress.;
98 QColorcxx . . $ QColor# m_src_colorcxx . . $ myBoard#m_src_color.;
99 QColorcxx . . $ QColor# m_dst_colorcxx . . $ myBoard#m_dst_color.;
100 Fieldcxx . . $ Field#* m_src_fieldcxx . . $ myBoard#m_src_field.;
101 Fieldcxx . . $ Field#* m_dst_fieldcxx . . $ myBoard#m_dst_field.;
102
103 int animation_stepscxx . . $ myBoard#animation_steps.;
104 int current_stepcxx . . $ myBoard#current_step.;
105 int animation_timercxx . . $ myBoard#animation_timer.;
106 bool animating_bottom_playercxx . . $ myBoard#animating_bottom_player.;
107
108 Checkerscxx . . $ Checkers#* m_gamecxx . . $ myBoard#m_game.;
109 };
110
111
112 #endif
113