File indexing completed on 2024-09-08 06:47:57
0001 /* 0002 SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com> 0003 SPDX-FileCopyrightText: 2007 Riccardo Iaconelli <ruphy@fsfe.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef MAINWINDOW_H 0009 #define MAINWINDOW_H 0010 0011 #include <KXmlGuiWindow> 0012 0013 class PlayField; 0014 0015 class QUrl; 0016 0017 class MainWindow : public KXmlGuiWindow 0018 { 0019 Q_OBJECT 0020 PlayField* m_main; 0021 public: 0022 explicit MainWindow(const QUrl& url); 0023 protected: 0024 void setupActions(); 0025 private Q_SLOTS: 0026 void startingGame(); 0027 void welcomeScreen(); 0028 void closeEvent(QCloseEvent *event) override; 0029 }; 0030 0031 #endif // MAINWINDOW_H 0032