FlightGear next
LauncherMainWindow.hxx
Go to the documentation of this file.
1// LauncherMainWindow.hxx - GUI launcher dialog using Qt5
2//
3// Written by James Turner, started October 2015.
4//
5// Copyright (C) 2018 James Turner <james@flightgear.org>
6//
7// This program is free software; you can redistribute it and/or
8// modify it under the terms of the GNU General Public License as
9// published by the Free Software Foundation; either version 2 of the
10// License, or (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful, but
13// WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15// General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program; if not, write to the Free Software
19// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
21#ifndef LAUNCHER_MAIN_WINDOW_HXX
22#define LAUNCHER_MAIN_WINDOW_HXX
23
24#include <QScopedPointer>
25#include <QStringList>
26#include <QModelIndex>
27#include <QTimer>
28#include <QUrl>
29#include <QQuickView>
30
31
32class QModelIndex;
33class QQmlEngine;
34class LaunchConfig;
35class ViewCommandLinePage;
36class QQuickItem;
39
40class LauncherMainWindow : public QQuickView
41{
42 Q_OBJECT
43public:
44 LauncherMainWindow(bool inSimMode);
45 virtual ~LauncherMainWindow();
46
47 bool execInApp();
48
50
51 bool event(QEvent *event) override;
52
53private slots:
54 void onQuickStatusChanged(QQuickView::Status status);
55 void renderTheadSceneGraphInitialized();
56
57private:
58 bool checkQQC2Availability();
59
60 LauncherController* m_controller;
61 QmlColoredImageProvider* m_coloredIconProvider;
62};
63
64#endif // of LAUNCHER_MAIN_WINDOW_HXX
bool event(QEvent *event) override
LauncherMainWindow(bool inSimMode)
Heper image provider to allow re-colorizing images based on the active style.
static int status