Debian Codegraph @

src/view.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 _VIEW_H_
22 #define _VIEW_H_cxx . . $ `src/view.h:22:9`!
23
24
25 #include <QFrame>
26 #include <QTextEdit>
27 #include <QLineEdit>
28 #include <QLabel>
29
30
31 #include "board.h"cxx . . $ `<file>/src/board.h`/
32 #include "toplevel.h"cxx . . $ `<file>/src/toplevel.h`/
33
34
35 class Pdncxx . . $ Pdn#;
36 class myPlayercxx . . $ myPlayer#;
37 class myHistorycxx . . $ myHistory#;
38
39
40 class myViewcxx . . $ myView# : public QFramecxx . . $ QFrame#
41 {
42 Q_OBJECTcxx . . $ myView#trUtf8(75d9f1c324b4579d).
43
44 public:
45 myViewcxx . . $ myView#myView(2403d8775207dcc0).(myTopLevelcxx . . $ myTopLevel#* parent);
46 ~cxx . . $ myView#`~myView`(ced63f7c635d850d).myViewcxx . . $ myView#();
47
48 void newGamecxx . . $ myView#newGame(3cc809d575064bfd).(int rules, bool free_place,
49 const QStringcxx . . $ QString#& name, bool is_white,
50 int opponent, const QStringcxx . . $ QString#& opp_name, int skill);
51 bool openPdncxx . . $ myView#openPdn(e1defb592416720d).(const QStringcxx . . $ QString#& fn);
52 bool savePdncxx . . $ myView#savePdn(e1defb592416720d).(const QStringcxx . . $ QString#& fn);
53
54 void setThemecxx . . $ myView#setTheme(3520e46b33348bf6).(const QStringcxx . . $ QString#& theme_path);
55
56 bool isAbortedcxx . . $ myView#isAborted(50ce9a9e25b4a850).() const { return m_abortedcxx . . $ myView#m_aborted.; }
57
58 void setNotationcxx . . $ myView#setNotation(b0b38cda41d4ede4).(bool enabled, bool show_above);
59 void setNotationFontcxx . . $ myView#setNotationFont(d0a4bd0c8524b912).(const QFontcxx . . $ QFont#& f);
60 QFontcxx . . $ QFont# notationFontcxx . . $ myView#notationFont(9958934e48c66a6a).() const { return m_boardcxx . . $ QFont#QFont(d0a4bd0c8524b912).->fontcxx . . $ QWidget#font(c5040538afc47120).(); }
61
62 public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
63 virtual void setEnabledcxx . . $ myView#setEnabled(b45ddcbc8423892c).(bool);
64
65 void slotClearLogcxx . . $ myView#slotClearLog(b45ddcbc8423892c).(bool b) { m_clear_logcxx . . $ myView#m_clear_log. = b; }
66
67 void slotStopGamecxx . . $ myView#slotStopGame(49f6e7a06ebc5aa8).();
68 void slotNextRoundcxx . . $ myView#slotNextRound(49f6e7a06ebc5aa8).();
69
70 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
71 void workingcxx . . $ myView#working(b45ddcbc8423892c).(bool);
72
73 private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!:
74 void slot_clickcxx . . $ myView#slot_click(d4f767463ce0a6b3).(int);
75
76 void slot_move_donecxx . . $ myView#slot_move_done(3520e46b33348bf6).(const QStringcxx . . $ QString#& board_str);
77 void slot_move_done_step_twocxx . . $ myView#slot_move_done_step_two(49f6e7a06ebc5aa8).();
78
79 void slot_preview_gamecxx . . $ myView#slot_preview_game(d4f767463ce0a6b3).(int game_type);
80 void slot_apply_movescxx . . $ myView#slot_apply_moves(3520e46b33348bf6).(const QStringcxx . . $ QString#& moves);
81 void slot_new_modecxx . . $ myView#slot_new_mode(b0b38cda41d4ede4).(bool paused, bool freeplace);
82
83 private:
84 void begin_gamecxx . . $ myView#begin_game(ee2069353d7cc01f).(unsigned int round, bool freeplacement);
85
86 void perform_jumpscxx . . $ myView#perform_jumps(c1427772cd1877b0).(const QStringcxx . . $ QString#& from_board, const QStringcxx . . $ QString#& to_board);
87 bool extract_movecxx . . $ myView#extract_move(50f8f23f66042ab).(const QStringcxx . . $ QString#& move, int* from_num, int* to_num);
88
89 void stop_gamecxx . . $ myView#stop_game(3520e46b33348bf6).(const QStringcxx . . $ QString#&);
90 void you_woncxx . . $ myView#you_won(b45ddcbc8423892c).(bool really);
91 bool check_game_overcxx . . $ myView#check_game_over(c9857a73d68e59ba).();
92
93 enum LogTypecxx . . $ myView#LogType# {
94 Nonecxx . . $ myView#None.,
95 Errorcxx . . $ myView#Error.,
96 Warningcxx . . $ myView#Warning.,
97 Systemcxx . . $ myView#System.,
98 Usercxx . . $ myView#User.,
99 Opponentcxx . . $ myView#Opponent.,
100 };
101 void add_logcxx . . $ myView#add_log(e9b9384b11a585bb).(enum LogTypecxx . . $ myView#LogType# type, const QStringcxx . . $ QString#& text);
102
103 myPlayercxx . . $ myPlayer#* get_first_playercxx . . $ myView#get_first_player(419aab2e9c3a4e42).() const;
104
105 private:
106 bool m_clear_logcxx . . $ myView#m_clear_log.;
107
108 bool m_game_overcxx . . $ myView#m_game_over.;// need this to avoid multiple calls to isGameOver()
109 bool m_abortedcxx . . $ myView#m_aborted.;
110
111 myPlayercxx . . $ myPlayer#* m_playercxx . . $ myView#m_player.;
112 myPlayercxx . . $ myPlayer#* m_currentcxx . . $ myView#m_current.;
113 myTopLevelcxx . . $ myTopLevel#* m_toplevelcxx . . $ myView#m_toplevel.;
114
115 myBoardcxx . . $ myBoard#* m_boardcxx . . $ myView#m_board.;
116
117 int m_freeplace_fromcxx . . $ myView#m_freeplace_from.;
118 };
119
120
121 #endif
122