| 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 _NEWGAMEDLG_H_ |
| 22 | #define _NEWGAMEDLG_H_cxx . . $ `src/newgamedlg.h:22:9`! |
| 23 | |
| 24 | #include <QDialog> |
| 25 | #include <QLabel> |
| 26 | #include <QLineEdit> |
| 27 | #include <QSettings> |
| 28 | #include <QPushButton> |
| 29 | #include <QListWidget> |
| 30 | #include <QTabWidget> |
| 31 | #include <QCheckBox> |
| 32 | #include <QGroupBox> |
| 33 | #include <QRadioButton> |
| 34 | |
| 35 | |
| 36 | #define COMPUTERcxx . . $ `src/newgamedlg.h:36:9`! 0 |
| 37 | #define HUMANcxx . . $ `src/newgamedlg.h:37:9`! 1 |
| 38 | |
| 39 | |
| 40 | class myPlayercxx . . $ myPlayer#; |
| 41 | |
| 42 | |
| 43 | class myNewGameDlgcxx . . $ myNewGameDlg# : public QDialogcxx . . $ QDialog# |
| 44 | { |
| 45 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 46 | |
| 47 | public: |
| 48 | myNewGameDlgcxx . . $ myNewGameDlg#myNewGameDlg(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent); |
| 49 | ~cxx . . $ myNewGameDlg#`~myNewGameDlg`(ced63f7c635d850d).myNewGameDlgcxx . . $ myNewGameDlg#(); |
| 50 | |
| 51 | // playing against the computer |
| 52 | int rulescxx . . $ myNewGameDlg#rules(455f465bc33b4cdf).() const; |
| 53 | // return HUMAN/COMPUTER |
| 54 | int opponentcxx . . $ myNewGameDlg#opponent(455f465bc33b4cdf).() const { return m_player_twocxx . . $ myNewGameDlg#m_player_two..optionscxx . . $ myNewGameDlg#player_two_struct#options.->currentIndexcxx . . $ QTabWidget#currentIndex(455f465bc33b4cdf).(); } |
| 55 | // |
| 56 | int skillcxx . . $ myNewGameDlg#skill(455f465bc33b4cdf).() const; |
| 57 | // |
| 58 | bool freePlacementcxx . . $ myNewGameDlg#freePlacement(50ce9a9e25b4a850).() const { return m_freeplacecxx . . $ myNewGameDlg#m_freeplace.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).(); } |
| 59 | |
| 60 | // |
| 61 | const QStringcxx . . $ QString# namecxx . . $ myNewGameDlg#name(34227b1e5d5004df).() const { return m_player_onecxx . . $ myNewGameDlg#m_player_one..namecxx . . $ myNewGameDlg#player_one_struct#name.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); } |
| 62 | bool isWhitecxx . . $ myNewGameDlg#isWhite(50ce9a9e25b4a850).() const { return m_player_onecxx . . $ myNewGameDlg#m_player_one..whitecxx . . $ myNewGameDlg#player_one_struct#white.->isCheckedcxx . . $ QAbstractButton#isChecked(50ce9a9e25b4a850).(); } |
| 63 | const QStringcxx . . $ QString# opponentNamecxx . . $ myNewGameDlg#opponentName(34227b1e5d5004df).() const { return m_player_twocxx . . $ myNewGameDlg#m_player_two..namecxx . . $ myNewGameDlg#player_two_struct#name.->textcxx . . $ QLineEdit#text(6ef7b6c27b00b43d).(); } |
| 64 | |
| 65 | // for settings |
| 66 | void writeSettingscxx . . $ myNewGameDlg#writeSettings(a6b0dd7eca790fad).(QSettingscxx . . $ QSettings#*); |
| 67 | void readSettingscxx . . $ myNewGameDlg#readSettings(a6b0dd7eca790fad).(QSettingscxx . . $ QSettings#*); |
| 68 | |
| 69 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 70 | void slot_gamecxx . . $ myNewGameDlg#slot_game(d4f767463ce0a6b3).(int id); // ListWidget |
| 71 | void slot_game_startcxx . . $ myNewGameDlg#slot_game_start(d4f767463ce0a6b3).(int id); |
| 72 | void slot_skillscxx . . $ myNewGameDlg#slot_skills(49f6e7a06ebc5aa8).(); |
| 73 | |
| 74 | void slot_rejectcxx . . $ myNewGameDlg#slot_reject(49f6e7a06ebc5aa8).(); |
| 75 | void slot_startcxx . . $ myNewGameDlg#slot_start(49f6e7a06ebc5aa8).(); |
| 76 | |
| 77 | private: |
| 78 | QWidgetcxx . . $ QWidget#* create_player_onecxx . . $ myNewGameDlg#create_player_one(9b769eeb00a33a04).(); |
| 79 | QWidgetcxx . . $ QWidget#* create_player_twocxx . . $ myNewGameDlg#create_player_two(9b769eeb00a33a04).(); |
| 80 | |
| 81 | QWidgetcxx . . $ QWidget#* create_human_optionscxx . . $ myNewGameDlg#create_human_options(9b769eeb00a33a04).(); |
| 82 | QWidgetcxx . . $ QWidget#* create_computer_optionscxx . . $ myNewGameDlg#create_computer_options(9b769eeb00a33a04).(); |
| 83 | |
| 84 | private: |
| 85 | struct player_one_structcxx . . $ myNewGameDlg#player_one_struct# { |
| 86 | QGroupBoxcxx . . $ QGroupBox#* boxcxx . . $ myNewGameDlg#player_one_struct#box.; |
| 87 | QLineEditcxx . . $ QLineEdit#* namecxx . . $ myNewGameDlg#player_one_struct#name.; |
| 88 | QGroupBoxcxx . . $ QGroupBox#* rulescxx . . $ myNewGameDlg#player_one_struct#rules.; |
| 89 | QRadioButtoncxx . . $ QRadioButton#* rule_englishcxx . . $ myNewGameDlg#player_one_struct#rule_english.; |
| 90 | QRadioButtoncxx . . $ QRadioButton#* rule_russiancxx . . $ myNewGameDlg#player_one_struct#rule_russian.; |
| 91 | QCheckBoxcxx . . $ QCheckBox#* whitecxx . . $ myNewGameDlg#player_one_struct#white.; |
| 92 | }; |
| 93 | struct player_one_structcxx . . $ myNewGameDlg#player_one_struct# m_player_onecxx . . $ myNewGameDlg#m_player_one.; |
| 94 | |
| 95 | struct player_two_structcxx . . $ myNewGameDlg#player_two_struct# { |
| 96 | QGroupBoxcxx . . $ QGroupBox#* boxcxx . . $ myNewGameDlg#player_two_struct#box.; |
| 97 | QLineEditcxx . . $ QLineEdit#* namecxx . . $ myNewGameDlg#player_two_struct#name.; |
| 98 | int last_game_indexcxx . . $ myNewGameDlg#player_two_struct#last_game_index.; |
| 99 | QTabWidgetcxx . . $ QTabWidget#* optionscxx . . $ myNewGameDlg#player_two_struct#options.; |
| 100 | // human options |
| 101 | // computer options |
| 102 | struct computer_stuctcxx . . $ myNewGameDlg#player_two_struct#computer_stuct# { |
| 103 | QMapcxx . . $ QMap#<int, QRadioButtoncxx . . $ QRadioButton#*> skillscxx . . $ myNewGameDlg#player_two_struct#computer_stuct#skills.; |
| 104 | }; |
| 105 | struct computer_stuctcxx . . $ myNewGameDlg#player_two_struct#computer_stuct# computercxx . . $ myNewGameDlg#player_two_struct#computer.; |
| 106 | }; |
| 107 | struct player_two_structcxx . . $ myNewGameDlg#player_two_struct# m_player_twocxx . . $ myNewGameDlg#m_player_two.; |
| 108 | |
| 109 | QCheckBoxcxx . . $ QCheckBox#* m_freeplacecxx . . $ myNewGameDlg#m_freeplace.; |
| 110 | QPushButtoncxx . . $ QPushButton#* start_buttoncxx . . $ myNewGameDlg#start_button.; |
| 111 | |
| 112 | QStringcxx . . $ QString# m_cfg_player2cxx . . $ myNewGameDlg#m_cfg_player2.; |
| 113 | }; |
| 114 | |
| 115 | #endif |
| 116 |