File indexing completed on 2024-04-21 04:02:34
0001 /* 0002 SPDX-FileCopyrightText: 2000 Roman Razilov <Roman.Razilov@gmx.de> 0003 SPDX-FileCopyrightText: 2006 Dmitry Suzdalev <dimsuz@gmail.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef KLINES_H 0009 #define KLINES_H 0010 0011 #include <QLabel> 0012 #include <QPointer> 0013 0014 #include <KXmlGuiWindow> 0015 0016 class KGameThemeSelector; 0017 0018 class MainWidget; 0019 0020 class KLinesMainWindow : public KXmlGuiWindow 0021 { 0022 Q_OBJECT 0023 public: 0024 KLinesMainWindow(); 0025 ~KLinesMainWindow() override; 0026 0027 protected: 0028 void setupActions(); 0029 0030 public Q_SLOTS: 0031 void startGame(); 0032 private Q_SLOTS: 0033 void viewHighScore(); 0034 void updateScore(int score); 0035 void gameOver(int score); 0036 void showNextToggled(bool show); 0037 void loadSettings(); 0038 private: 0039 KGameThemeSelector *mselector; 0040 MainWidget *mwidget; 0041 0042 QPointer<QLabel> scoreLabel = new QLabel; 0043 0044 }; 0045 0046 #endif