22 #include <QMainWindow> 24 #include <board/side.h> 56 QString windowListTitle()
const;
63 void closeCurrentGame();
68 void onWindowMenuAboutToShow();
69 void showGameWindow();
70 void updateWindowTitle();
74 void onTabChanged(
int index);
75 void onTabCloseRequested(
int index);
76 void closeTab(
int index);
78 void onTournamentFinished();
79 void onGameManagerFinished();
82 void editMoveComment(
int ply,
const QString& comment);
86 void showAboutDialog();
88 void adjudicateDraw();
89 void adjudicateWhiteWin();
90 void adjudicateBlackWin();
100 QPointer<ChessGame> m_game;
106 void createActions();
108 void createToolBars();
109 void createDockWindows();
111 void writeSettings();
112 QString genericTitle(
const TabData& gameData)
const;
114 void lockCurrentGame();
115 void unlockCurrentGame();
116 bool saveGame(
const QString& fileName);
118 void setCurrentGame(
const TabData& gameData);
119 void removeGame(
int index);
121 int tabIndex(
Tournament* tournament,
bool freeTab =
false)
const;
122 void addDefaultWindowMenu();
126 QMenu* m_tournamentMenu;
140 QAction* m_adjudicateBlackWinAct;
141 QAction* m_adjudicateWhiteWinAct;
153 QAction* m_showTournamentResultsAct;
155 QAction* m_showGameDatabaseWindowAct;
167 QPointer<ChessGame> m_game;
168 QPointer<ChessPlayer> m_players[2];
175 bool m_firstTabAutoCloseEnabled;
178 #endif // MAINWINDOW_H Widget that is used to display log messages in plain text.
Definition: plaintextlog.h:30
A chess player, human or AI.
Definition: chessplayer.h:38
A game of chess in PGN format.
Definition: pgngame.h:51
A widget that shows engines' move evaluation history.
Definition: evalhistory.h:35
Definition: chessgame.h:38
Definition: boardscene.h:29
The side or color of a chess player.
Definition: side.h:35
Definition: gameviewer.h:39
Definition: movelist.h:41
Base class for chess tournaments.
Definition: tournament.h:44
Definition: mainwindow.h:49