FlightGear next
QtLauncher.hxx
Go to the documentation of this file.
1// QtLauncher.hxx - GUI launcher dialog using Qt5
2//
3// Written by James Turner, started December 2014.
4//
5// Copyright (C) 2014 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#pragma once
22
23#include <string>
24#include <vector>
25
26class SGPath;
27
28namespace flightgear
29{
30 // Only requires FGGlobals to be initialized if 'doInitQSettings' is true.
31 // Safe to call several times.
32 void initApp(int& argc, char** argv, bool doInitQSettings = true);
33
34 // ensures Qt-related resources are cleaned up. Avoids crashes on shutdown
35 // if QPA assets are hanging around. (With the XCB QPA plugin especially)
36 void shutdownQtApp();
37
38 // Requires FGGlobals to be initialized. Safe to call several times.
39 void initQSettings();
40
41 // Set 'fg-root' in QSettings to the special value "!ask" if either Alt or
42 // Shift is pressed. Return true in this case, false otherwise.
44
45 bool runLauncherDialog();
46
48
55
57
62 void restartTheApp();
63
67 void startLaunchOnExit(const std::vector<std::string>& originalCommandLine);
68
70
71 bool showSetupRootDialog(bool usingDefaultRoot);
72
79
81
82 void warnAboutGLVersion();
83} // of namespace flightgear
84
FlightPlan.hxx - defines a full flight-plan object, including departure, cruise, arrival information ...
Definition Addon.cxx:53
bool runLauncherDialog()
void restartTheApp()
restartTheApp quit the application and relaunch it, passing the –launcher flag explicitly.
bool runInAppLauncherDialog()
void startLaunchOnExit(const std::vector< std::string > &originalCommandLine)
@ brief helper to re-open the launcher once FLightGear exits cleanly
void initApp(int &argc, char **argv, bool doInitQSettings)
void initQSettings()
void warnAboutGLVersion()
bool showSetupRootDialog(bool usingDefaultRoot)
bool checkKeyboardModifiersForSettingFGRoot()
SetupRootResult restoreUserSelectedRoot(SGPath &path)
LockFileDialogResult showLockFileDialog()
void shutdownQtApp()
void launcherSetSceneryPaths()