| 1 | /*************************************************************************** |
| 2 | * Copyright (C) 2009 by The qGo Project * |
| 3 | * * |
| 4 | * This file is part of qGo. * |
| 5 | * * |
| 6 | * qGo is free software: you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 2 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, see <http://www.gnu.org/licenses/> * |
| 18 | * or write to the Free Software Foundation, Inc., * |
| 19 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | |
| 23 | #ifndef BOARDWINDOW_H |
| 24 | #define BOARDWINDOW_Hcxx . . $ `src/board/boardwindow.h:24:9`! |
| 25 | |
| 26 | #include "gamedata.h"cxx . . $ `<file>/src/gamedata.h`/ |
| 27 | #include <QMainWindow> |
| 28 | |
| 29 | class BoardDispatchcxx . . $ BoardDispatch#; |
| 30 | class qGoBoardcxx . . $ qGoBoard#; |
| 31 | class ClockDisplaycxx . . $ ClockDisplay#; |
| 32 | class Treecxx . . $ Tree#; |
| 33 | class QLabelcxx . . $ QLabel#; |
| 34 | class QButtonGroupcxx . . $ QButtonGroup#; |
| 35 | class Boardcxx . . $ Board#; |
| 36 | class Movecxx . . $ Move#; |
| 37 | namespace Uicxx . . $ Ui/ { |
| 38 | class BoardWindowcxx . . $ Ui/BoardWindow#; |
| 39 | } |
| 40 | |
| 41 | enum TimeWarnStatecxx . . $ TimeWarnState# { TimeOKcxx . . $ TimeOK., TimeLowcxx . . $ TimeLow., TimeExpiredcxx . . $ TimeExpired. }; |
| 42 | |
| 43 | class BoardWindowcxx . . $ BoardWindow# : public QMainWindowcxx . . $ QMainWindow# |
| 44 | { |
| 45 | Q_OBJECTcxx . . $ BoardWindow#QPrivateSignal# |
| 46 | |
| 47 | friend class BoardDispatchcxx . . $ BoardDispatch#; |
| 48 | friend class CountDialogcxx . . $ CountDialog#; |
| 49 | |
| 50 | public: |
| 51 | BoardWindowcxx . . $ BoardWindow#BoardWindow(50cc386dd30baa3b).(GameDatacxx . . $ GameData# *gamedata = 0 , bool iAmBlack = true, bool iAmWhite = true, class BoardDispatchcxx . . $ BoardDispatch# * _dispatch = 0); |
| 52 | ~cxx . . $ BoardWindow#`~BoardWindow`(ced63f7c635d850d).BoardWindowcxx . . $ BoardWindow#(); |
| 53 | |
| 54 | void initcxx . . $ BoardWindow#init(49f6e7a06ebc5aa8).(); |
| 55 | bool doSavecxx . . $ BoardWindow#doSave(fb5d32962602ae86).(QStringcxx . . $ QString# fileName, bool force); |
| 56 | QStringcxx . . $ QString# getCandidateFileNamecxx . . $ BoardWindow#getCandidateFileName(4365c3963150523e).(); |
| 57 | |
| 58 | int getBoardSizecxx . . $ BoardWindow#getBoardSize(455f465bc33b4cdf).() const {return boardSizecxx . . $ BoardWindow#boardSize.;} |
| 59 | Treecxx . . $ Tree# *getTreecxx . . $ BoardWindow#getTree(b74f38e721d67691).() {return treecxx . . $ BoardWindow#tree.;} |
| 60 | GameModecxx . . $ GameMode# getGameModecxx . . $ BoardWindow#getGameMode(a60569f3cb1b846).() {return gameDatacxx . . $ BoardWindow#gameData.->gameModecxx . . $ GameData#gameMode.; } |
| 61 | GamePhasecxx . . $ GamePhase# getGamePhasecxx . . $ BoardWindow#getGamePhase(5e5c74c0ced0b080).() {return gamePhasecxx . . $ BoardWindow#gamePhase.;} |
| 62 | bool getMyColorIsBlackcxx . . $ BoardWindow#getMyColorIsBlack(c9857a73d68e59ba).() {return myColorIsBlackcxx . . $ BoardWindow#myColorIsBlack.;} |
| 63 | bool getMyColorIsWhitecxx . . $ BoardWindow#getMyColorIsWhite(c9857a73d68e59ba).() {return myColorIsWhitecxx . . $ BoardWindow#myColorIsWhite.;} |
| 64 | GameDatacxx . . $ GameData# *getGameDatacxx . . $ BoardWindow#getGameData(f917540193955ea7).() {return gameDatacxx . . $ BoardWindow#gameData.;} |
| 65 | int getIdcxx . . $ BoardWindow#getId(b126dc7c1de90089).() {return gameDatacxx . . $ BoardWindow#gameData.->numbercxx . . $ GameData#number.;} |
| 66 | MarkTypecxx . . $ MarkType# getEditMarkcxx . . $ BoardWindow#getEditMark(37e5b5ce603f447).() {return editMarkcxx . . $ BoardWindow#editMark.;} |
| 67 | void setGamePhasecxx . . $ BoardWindow#setGamePhase(6ad67d8601499648).(GamePhasecxx . . $ GamePhase# gp); |
| 68 | void gameDataChangedcxx . . $ BoardWindow#gameDataChanged(49f6e7a06ebc5aa8).(void); |
| 69 | ClockDisplaycxx . . $ ClockDisplay# *getClockDisplaycxx . . $ BoardWindow#getClockDisplay(41084e4a97dfeac0).() {return clockDisplaycxx . . $ BoardWindow#clockDisplay.;} |
| 70 | void swapColorscxx . . $ BoardWindow#swapColors(b45ddcbc8423892c).(bool noswap = false); |
| 71 | void saveRecordToGameDatacxx . . $ BoardWindow#saveRecordToGameData(49f6e7a06ebc5aa8).(void); |
| 72 | |
| 73 | bool okayToQuitcxx . . $ BoardWindow#okayToQuit(c9857a73d68e59ba).(void); |
| 74 | |
| 75 | BoardDispatchcxx . . $ BoardDispatch# * getBoardDispatchcxx . . $ BoardWindow#getBoardDispatch(2c265f6a5bbd0ea7).(void) { return dispatchcxx . . $ BoardWindow#dispatch.; } |
| 76 | void setBoardDispatchcxx . . $ BoardWindow#setBoardDispatch(f9aae4eee533680e).(BoardDispatchcxx . . $ BoardDispatch# * d); |
| 77 | |
| 78 | void clearDatacxx . . $ BoardWindow#clearData(49f6e7a06ebc5aa8).(); |
| 79 | void setMoveDatacxx . . $ BoardWindow#setMoveData(8aa7e628e2eaae7b).(int n, bool black, int brothers, int sons, bool hasParent, |
| 80 | bool hasPrev, bool hasNext, int lastX=-1, int lastY=-1); |
| 81 | |
| 82 | void setUndoEnabledcxx . . $ BoardWindow#setUndoEnabled(b45ddcbc8423892c).(bool state); |
| 83 | void setDrawEnabledcxx . . $ BoardWindow#setDrawEnabled(b45ddcbc8423892c).(bool state); |
| 84 | void setCountEnabledcxx . . $ BoardWindow#setCountEnabled(b45ddcbc8423892c).(bool state); |
| 85 | void setDoneEnabledcxx . . $ BoardWindow#setDoneEnabled(b45ddcbc8423892c).(bool state); |
| 86 | void setAdjournEnabledcxx . . $ BoardWindow#setAdjournEnabled(b45ddcbc8423892c).(bool state); |
| 87 | void setResignEnabledcxx . . $ BoardWindow#setResignEnabled(b45ddcbc8423892c).(bool state); |
| 88 | void setObserverModelcxx . . $ BoardWindow#setObserverModel(c6e1f1e42522b780).(QAbstractItemModelcxx . . $ QAbstractItemModel# * model); |
| 89 | |
| 90 | void setTimeBlackcxx . . $ BoardWindow#setTimeBlack(7df51288a9ebd664).(QStringcxx . . $ QString# time); |
| 91 | void setTimeWhitecxx . . $ BoardWindow#setTimeWhite(7df51288a9ebd664).(QStringcxx . . $ QString# time); |
| 92 | void warnTimeBlackcxx . . $ BoardWindow#warnTimeBlack(b6ded46d2248065c).(TimeWarnStatecxx . . $ TimeWarnState# state); |
| 93 | void warnTimeWhitecxx . . $ BoardWindow#warnTimeWhite(b6ded46d2248065c).(TimeWarnStatecxx . . $ TimeWarnState# state); |
| 94 | void displayCommentcxx . . $ BoardWindow#displayComment(7df51288a9ebd664).(QStringcxx . . $ QString# comment); |
| 95 | |
| 96 | protected: |
| 97 | void closeEventcxx . . $ BoardWindow#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *e); |
| 98 | void resizeEventcxx . . $ BoardWindow#resizeEvent(eeeec21cf8dc0387).(QResizeEventcxx . . $ QResizeEvent# *e); |
| 99 | |
| 100 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 101 | void signal_boardClosedcxx . . $ BoardWindow#signal_boardClosed(d4f767463ce0a6b3).(int); |
| 102 | void signal_duplicatecxx . . $ BoardWindow#signal_duplicate(3abba1b12515a185).( GameDatacxx . . $ GameData# *, const QStringcxx . . $ QString#&, int); |
| 103 | |
| 104 | public: |
| 105 | void slotEditButtonPressedcxx . . $ BoardWindow#slotEditButtonPressed(d4f767463ce0a6b3).( int id ); |
| 106 | void slotGameInfocxx . . $ BoardWindow#slotGameInfo(b45ddcbc8423892c).(bool toggle); |
| 107 | bool slotFileSavecxx . . $ BoardWindow#slotFileSave(c9857a73d68e59ba).(); |
| 108 | bool slotFileSaveAscxx . . $ BoardWindow#slotFileSaveAs(c9857a73d68e59ba).(); |
| 109 | void slotEditDeletecxx . . $ BoardWindow#slotEditDelete(49f6e7a06ebc5aa8).(); |
| 110 | void slotExportSGFtoClipBcxx . . $ BoardWindow#slotExportSGFtoClipB(49f6e7a06ebc5aa8).(); |
| 111 | void slotExportPicClipBcxx . . $ BoardWindow#slotExportPicClipB(49f6e7a06ebc5aa8).(); |
| 112 | void slotExportPiccxx . . $ BoardWindow#slotExportPic(49f6e7a06ebc5aa8).(); |
| 113 | void slotDuplicatecxx . . $ BoardWindow#slotDuplicate(49f6e7a06ebc5aa8).(); |
| 114 | void slot_addtime_menucxx . . $ BoardWindow#slot_addtime_menu(92b1e80c0a7f1406).(QActioncxx . . $ QAction# *); |
| 115 | void setComputerBlackcxx . . $ BoardWindow#setComputerBlack(b45ddcbc8423892c).(bool val); |
| 116 | void setComputerWhitecxx . . $ BoardWindow#setComputerWhite(b45ddcbc8423892c).(bool val); |
| 117 | void requestComputerMovecxx . . $ BoardWindow#requestComputerMove(49f6e7a06ebc5aa8).(); |
| 118 | void setBlackNamecxx . . $ BoardWindow#setBlackName(7df51288a9ebd664).(QStringcxx . . $ QString# name); |
| 119 | void setWhiteNamecxx . . $ BoardWindow#setWhiteName(7df51288a9ebd664).(QStringcxx . . $ QString# name); |
| 120 | void switchToEditModecxx . . $ BoardWindow#switchToEditMode(49f6e7a06ebc5aa8).(); |
| 121 | void switchToLocalModecxx . . $ BoardWindow#switchToLocalMode(49f6e7a06ebc5aa8).(); |
| 122 | void slotUpdateCommentcxx . . $ BoardWindow#slotUpdateComment(49f6e7a06ebc5aa8).(); |
| 123 | void slotNavIntersectioncxx . . $ BoardWindow#slotNavIntersection(49f6e7a06ebc5aa8).(); |
| 124 | void slotWheelEventcxx . . $ BoardWindow#slotWheelEvent(92d40974398e4832).(QWheelEventcxx . . $ QWheelEvent# *e); |
| 125 | void slotGetScorecxx . . $ BoardWindow#slotGetScore(4df37d5d0c1dcce).(int terrBlack, int captBlack, int deadWhite, int terrWhite, int captWhite, int deadBlack); |
| 126 | void updateMovecxx . . $ BoardWindow#updateMove(490cd2a4f5caa810).(Movecxx . . $ Move# *m); |
| 127 | void slotSendCommentcxx . . $ BoardWindow#slotSendComment(49f6e7a06ebc5aa8).(void); |
| 128 | |
| 129 | private: |
| 130 | void updateCaptioncxx . . $ BoardWindow#updateCaption(49f6e7a06ebc5aa8).(); |
| 131 | void setModecxx . . $ BoardWindow#setMode(2246a2660efa2d0b).(GameModecxx . . $ GameMode# gameMode); |
| 132 | void setSliderMaxcxx . . $ BoardWindow#setSliderMax(d4f767463ce0a6b3).(int n); |
| 133 | void checkHideToolbarcxx . . $ BoardWindow#checkHideToolbar(d4f767463ce0a6b3).(int h); |
| 134 | void updateButtonscxx . . $ BoardWindow#updateButtons(42096433316d3db3).(StoneColorcxx . . $ StoneColor# lastMoveColor=stoneNonecxx . . $ stoneNone.); |
| 135 | void updateCursorcxx . . $ BoardWindow#updateCursor(42096433316d3db3).(StoneColorcxx . . $ StoneColor# c=stoneNonecxx . . $ stoneNone.); |
| 136 | |
| 137 | qGoBoardcxx . . $ qGoBoard# *qgoboardcxx . . $ BoardWindow#qgoboard.; |
| 138 | QLabelcxx . . $ QLabel# *moveNumLabelcxx . . $ BoardWindow#moveNumLabel.,*komiLabelcxx . . $ BoardWindow#komiLabel.,*buyoyomiLabelcxx . . $ BoardWindow#buyoyomiLabel.,*handicapLabelcxx . . $ BoardWindow#handicapLabel.,*freeratedLabelcxx . . $ BoardWindow#freeratedLabel.; |
| 139 | |
| 140 | Uicxx . . $ Ui/::BoardWindowcxx . . $ Ui/BoardWindow# * uicxx . . $ BoardWindow#ui.; |
| 141 | QMenucxx . . $ QMenu# * addtime_menucxx . . $ BoardWindow#addtime_menu.; |
| 142 | Treecxx . . $ Tree# *treecxx . . $ BoardWindow#tree.; |
| 143 | const int boardSizecxx . . $ BoardWindow#boardSize.; //the true boardsize |
| 144 | class BoardDispatchcxx . . $ BoardDispatch# * dispatchcxx . . $ BoardWindow#dispatch.; //may not be the best place!!! |
| 145 | |
| 146 | GameDatacxx . . $ GameData# *gameDatacxx . . $ BoardWindow#gameData.; |
| 147 | GamePhasecxx . . $ GamePhase# gamePhasecxx . . $ BoardWindow#gamePhase.; |
| 148 | bool myColorIsBlackcxx . . $ BoardWindow#myColorIsBlack. , myColorIsWhitecxx . . $ BoardWindow#myColorIsWhite. ; |
| 149 | bool localStoneSoundcxx . . $ BoardWindow#localStoneSound. ; |
| 150 | |
| 151 | QButtonGroupcxx . . $ QButtonGroup# *editButtonscxx . . $ BoardWindow#editButtons.; |
| 152 | MarkTypecxx . . $ MarkType# editMarkcxx . . $ BoardWindow#editMark.; |
| 153 | ClockDisplaycxx . . $ ClockDisplay# *clockDisplaycxx . . $ BoardWindow#clockDisplay.; |
| 154 | QTimecxx . . $ QTime# wheelTimecxx . . $ BoardWindow#wheelTime.; |
| 155 | }; |
| 156 | |
| 157 | #endif |