Debian Codegraph @

src/mainwindow.h

raw symbols SCIP
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 MAINWINDOW_H
24 #define MAINWINDOW_H
25
26 #include "defines.h"
27
28 #include <QtWidgets>
29
30 class RoomListing;
31 class LoginDialog;
32 class NetworkConnection;
33 class GameDialog;
34 class BoardWindow;
35 class GameData;
36 class Sound;
37 namespace Ui {
38 class MainWindow;
39 }
40
41 class MainWindow : public QMainWindow
42 {
43 Q_OBJECT
44
45 public:
46 MainWindow( QWidget *parent = 0 , Qt::WindowFlags flags = 0 );
47 ~MainWindow();
48
49 void addBoardWindow(BoardWindow *);
50 int checkForOpenBoards(void);
51
52 void removeBoardWindow(QObject *);
53
54 void slot_fileNew();
55 void slot_fileOpen();
56 void openPreferences();
57 void openSGF(QString path);
58
59 void openConnectDialog(void);
60
61 protected:
62 void closeEvent(QCloseEvent *e);
63
64 private:
65 Ui::MainWindow * ui;
66 Sound *connectSound, *gameSound;
67
68 QList<BoardWindow *> boardWindowList;
69
70 LoginDialog * logindialog;
71 };
72
73 #endif