File indexing completed on 2024-12-15 03:48:05

0001 /*
0002     SPDX-FileCopyrightText: 2008 Sascha Peilicke <sasch.pe@gmx.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef KIGO_GAMEWIDGET_H
0008 #define KIGO_GAMEWIDGET_H
0009 
0010 #include "ui_gamewidget.h"
0011 
0012 #include <QWidget>
0013 
0014 namespace Kigo {
0015 
0016 class Game;
0017 
0018 /**
0019  * @see Game
0020  * @author Sascha Peilicke <sasch.pe@gmx.de>
0021  * @since 0.5
0022  */
0023 class GameWidget : public QWidget, private Ui::GameWidget
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     explicit GameWidget(Game *game, QWidget *parent = nullptr);
0029 
0030 Q_SIGNALS:
0031     void finishClicked();
0032 
0033 public Q_SLOTS:
0034     void init();
0035     void update();
0036 
0037 private Q_SLOTS:
0038     void finishButtonClicked();
0039     void enableFinishButton();
0040 
0041 private:
0042     Game *m_game;
0043 };
0044 
0045 } // End of namespace Kigo
0046 
0047 #endif