Debian Codegraph @

src/GUI/LauncherMainWindow.hxx

raw symbols SCIP
1 // LauncherMainWindow.hxx - GUI launcher dialog using Qt5
2 //
3 // Written by James Turner, started October 2015.
4 //
5 // Copyright (C) 2018 James Turner <[email protected]>
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
32 class QModelIndex;
33 class QQmlEngine;
34 class LaunchConfig;
35 class ViewCommandLinePage;
36 class QQuickItem;
37 class LauncherController;
38 class QmlColoredImageProvider;
39
40 class LauncherMainWindow : public QQuickView
41 {
42 Q_OBJECT
43 public:
44 LauncherMainWindow(bool inSimMode);
45 virtual ~LauncherMainWindow();
46
47 bool execInApp();
48
49 bool wasRejected();
50
51 bool event(QEvent *event) override;
52
53 private slots:
54 void onQuickStatusChanged(QQuickView::Status status);
55 void renderTheadSceneGraphInitialized();
56
57 private:
58 bool checkQQC2Availability();
59
60 LauncherController* m_controller;
61 QmlColoredImageProvider* m_coloredIconProvider;
62 };
63
64 #endif // of LAUNCHER_MAIN_WINDOW_HXX