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
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
LaunchConfig
Definition
LaunchConfig.hxx:15
LauncherController
Definition
LauncherController.hxx:49
LauncherMainWindow::~LauncherMainWindow
virtual ~LauncherMainWindow()
Definition
LauncherMainWindow.cxx:191
LauncherMainWindow::wasRejected
bool wasRejected()
LauncherMainWindow::event
bool event(QEvent *event) override
Definition
LauncherMainWindow.cxx:195
LauncherMainWindow::LauncherMainWindow
LauncherMainWindow(bool inSimMode)
Definition
LauncherMainWindow.cxx:39
LauncherMainWindow::execInApp
bool execInApp()
Definition
LauncherMainWindow.cxx:203
QmlColoredImageProvider
Heper image provider to allow re-colorizing images based on the active style.
Definition
QmlColoredImageProvider.hxx:30
status
static int status
Definition
fg_os_osgviewer.cxx:195
src
GUI
LauncherMainWindow.hxx
Generated on Tue Jun 3 2025 12:58:39 for FlightGear by
1.13.2