File indexing completed on 2024-04-21 14:49:28

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2014 Dennis Nienhüser <nienhueser@kde.org>
0004 // SPDX-FileCopyrightText: 2014 Abhinav Gangwar <abhgang@gmail.com>
0005 //
0006 
0007 #ifndef MARBLE_GAMEMAINWINDOW_H
0008 #define MARBLE_GAMEMAINWINDOW_H
0009 
0010 #include <marble/GeoDataCoordinates.h>
0011 
0012 #include <QMainWindow>
0013 
0014 namespace Marble
0015 {
0016 
0017 class Private;
0018 class MarbleWidget;
0019 
0020 class MainWindow: public QMainWindow
0021 {
0022     Q_OBJECT
0023 public:
0024     explicit MainWindow( const QString &marbleDataPath, QWidget *parent = nullptr, Qt::WindowFlags flags = nullptr );
0025     ~MainWindow() override;
0026     MarbleWidget *marbleWidget();
0027 
0028 Q_SIGNALS:
0029     void announceHighlight(qreal, qreal, GeoDataCoordinates::Unit );
0030     void postQuestion( QObject* );
0031 
0032 private Q_SLOTS:
0033     void createQuestion();
0034     void browseMapButtonClicked();
0035     void disableGames();
0036     void enableCountryShapeGame();
0037     void enableCountryFlagGame();
0038     void enableClickOnThatGame();
0039     void displayResult( bool );
0040 
0041 protected:
0042     void resizeEvent( QResizeEvent *event ) override;
0043 
0044 private:
0045     Private * const d;
0046 };
0047 
0048 }   // namespace Marble
0049 
0050 #endif  // MARBLE_GAMEMAINWINDOW_H