Automatic Release Builder
3e72fb230f
Sentry: block XML parse errors from the launcher
...
Avoid filling up the logs when the launcher parses broken aircraft XML;
wait until the user actually pick one to fly with, before reporting
XML errors.
2020-10-29 16:23:26 +00:00
Automatic Release Builder
b35b8c6147
Splash screens: support more, and JPEGs
2020-10-29 16:23:26 +00:00
Automatic Release Builder
378fc54b61
Launcher: first-run wording tweaks
...
As discussed on the devel list, also switch to HTTPS.
2020-10-29 16:23:20 +00:00
Automatic Release Builder
9de60e5729
Change error reporting for -set.xml parsing
...
Avoid exceptions in the ‘not actually a -set.xml’ case, since this
occurs somewhat frequently.
Sentry-Id: FLIGHTGEAR-3W
2020-10-29 16:22:35 +00:00
Automatic Release Builder
e0df583c14
Launcher: fix appearance of disabled add-ons.
...
Spotted by Michael Danilov
2020-10-29 16:22:35 +00:00
Automatic Release Builder
4ac8523bed
SetupRootDialog: avoid calling exit()
...
This causes QApplication to become unhappy and crash, so use a
graceful exit via a new return code and FG_OPTIONS_EXIT instead.
Sentry-Id: FLIGHTGEAR-6B
2020-10-29 16:22:35 +00:00
Automatic Release Builder
582d539a1a
Launcher: overhaul local -set.xml parsing
...
Fix the include context when -set.xml are parsed by the launcher to
extract states and other data. Ensure aircraft paths are available
and handled consistently with normal -set.xml parsing. Without this,
many -set.xmls fail to parse.
Sentry-Id: FLIGHTGEAR-4H
Sentry-Id: FLIGHTGEAR-3B
Sentry-Id: FLIGHTGEAR-3R
Sentry-Id: FLIGHTGEAR-3Q
Sentry-Id: FLIGHTGEAR-3F
Sentry-Id: FLIGHTGEAR-2R
Sentry-Id: FLIGHTGEAR-65
Sentry-Id: FLIGHTGEAR-42
2020-10-29 16:22:35 +00:00
Automatic Release Builder
632d5bc836
Launcher: first-run & help updates
...
Adjust the wording and links for these pages, after a review session
with Stuart and others. Include a link to the manual and short-ref
from the local installation.
2020-10-29 16:22:35 +00:00
Automatic Release Builder
78c659ec87
Launcher: fix some minor glitches in Aircraft list
...
- updating of 'no results' box
- sizing of the headers when empty
- double-click to select of the search box when focused
2020-10-29 16:22:33 +00:00
Automatic Release Builder
9748b57971
Launcher: add update checker UI
2020-10-29 16:21:47 +00:00
Automatic Release Builder
1ef6578ad4
Fix scrolling of Launcxher FirstRun
...
Johnathan R pointed out that for wider windows, the button was
invisible, fix this will a scrollbar.
2020-10-29 14:54:04 +00:00
Automatic Release Builder
f8222da1da
Launcher: add help page
...
Collect some standard information directly in the launcher. Text to be
reviewed, this is just a first draft.
2020-10-29 14:53:51 +00:00
Automatic Release Builder
cc2178f349
Launhcer: fix enabling/disabling hangars
...
Part of:
https://sourceforge.net/p/flightgear/codetickets/2380/
2020-10-29 14:53:01 +00:00
Automatic Release Builder
cd2d19f647
Launcher: add UX to enable developer mode
2020-10-29 14:52:51 +00:00
Automatic Release Builder
b727806bee
Launcher: fix favourites behaviour with variants
...
Fixes ticket: https://sourceforge.net/p/flightgear/codetickets/2380/
Also add a UI prompt when no favourites are selected.
2020-10-29 14:51:45 +00:00
Automatic Release Builder
0f01b0cbb6
Launcher: add help panel to instal aircraft
...
Based on some feedback on the tracker, when few aircraft are installed,
point users towards the 'browse' tab.
2020-10-29 14:51:12 +00:00
Automatic Release Builder
6c0cb998e3
Launcher: show sentry on/off setting everywhere
...
Since AppImage builds on Linux have Sentry reporting enabled, enable
the on/off UI everywhere
2020-10-29 14:51:02 +00:00
Automatic Release Builder
7ea138038e
First-run page for the launcher.
...
Appears on first launch, gives us a chance to point out some policy
things and where to get help.
2020-10-29 14:50:49 +00:00
Automatic Release Builder
e5a9491d34
Launcher: fix local-weather warning
...
When a weather scenario doesn’t specify any local-weather data, we
will use METAR anyway, so remove the warning.
2020-10-29 14:50:38 +00:00
Automatic Release Builder
6178457097
Launhcer: Fix an incorrect file-path
2020-10-29 14:50:25 +00:00
Automatic Release Builder
191786d9a0
Launcher: Don't probe for states if the -set.xml is missing
...
This showed up as frequent exceptions from readProperties in the
launcher, when checking for states.
Sentry-Id: FLIGHTGEAR-2R
2020-10-29 14:50:13 +00:00
Automatic Release Builder
d07360b37d
Launcher: guard against missing data files
...
More robust checking that FGData is setup correctly, when we try to
parse defaults.xml from the launcher.
Relates to Sentry exception:
https://sentry.io/organizations/flightgear/issues/1901193353
2020-10-29 14:44:08 +00:00
James Turner
4bbff581f3
Fix crash in flight-plan UI
...
Sentry-Id: FLIGHTGEAR-ES
2020-10-25 20:14:10 +00:00
James Turner
3b5b301e98
Launcher: Disable Qt 5.15 QML warnings
2020-09-17 21:45:39 +01:00
James Turner
e26a2ecab0
Crash:harden against malformed menu bar entries
...
If a menu-bar item is missing a <name>, we can end up building a string
from nullptr, which is a SEGV.
Reported as Sentry issue FLIGHTGEAR-1D
Will back-port to LTS once verified.
2020-09-08 14:01:39 +01:00
James Turner
f802e09c57
ASan: QtMessageContext doesn’t copy file names
...
Use the ‘file name copying’ version of log(), to avoid an ASan use-
after-free. Note this requires SG change
908496d43dd7c3a7ca1de42b0e0c21aa0498c7df
to work correctly.
2020-09-05 10:44:43 +01:00
Slawek Mikula
c9d1d58146
[Launcher] #2316 - fixed sorting in the aircraft grid/listview.
...
When there are installed the same aircrafts from different sources
(fgdata + fgaddon + git) with identical descriptions, use the URI to
provide stable sorting.
2020-09-05 10:44:43 +01:00
James Turner
9090d91be3
Fix a missed pu.h rename.
2020-09-03 20:25:14 +01:00
Erik Hofman
bdc66d5535
Rename our own version of pu.h to FlightGear_pu.h per James advice. Remove inclusion of pu.h where it isn't requirted.
2020-09-03 12:56:01 +02:00
Erik Hofman
0451816a82
Add our own version of pu.h and use it to prevent bug #2362 on all systems. This can be done since pu.h is to be considered in code freeze forever anyhow.
2020-09-01 10:12:42 +02:00
Scott Giese
ad2bf3cd09
Revert "Resolve Deprecation Warnings"
...
This reverts commit 8cede3f065
.
2020-08-30 17:58:36 -05:00
Scott Giese
7b914bc5fb
Removed unreachable code
2020-08-29 11:20:40 -05:00
Scott Giese
e079f0d1eb
Resolve warnings: comparison between unsigned and signed types
2020-08-29 10:15:02 -05:00
Scott Giese
8cede3f065
Resolve Deprecation Warnings
2020-08-29 10:12:35 -05:00
Automatic Release Builder
d9b7435dab
Sentry logging of exceptions, fatal errors
2020-08-26 09:52:02 +01:00
James Turner
178d1beb80
Cmake: Remove version.h machinery
...
Merge this file into config.h, this means we can save an include path
everywhere.
2020-08-24 15:04:24 +01:00
James Turner
476b9eb3d1
Ensure OSG headers are founding building the UI
2020-08-23 21:10:56 +01:00
Scott Giese
f84a522f12
REVIEW: Memory Leak - FGPUIMenuBar::add_enabled_listener()
...
3,920 (3,136 direct, 784 indirect) bytes in 98 blocks are definitely lost
2020-08-22 22:22:47 -05:00
Automatic Release Builder
439c5bf4f4
Adjust how we enable/disable Sentry.io
...
This allows for crash-reporting in the launcher,
but still disabling via default.xml or the command line.
2020-08-18 16:51:21 +01:00
James Turner
a297c89144
Flightplans: add clearAll, rename clear -> clearLegs
...
Improve naming of clear() methods, and expose the new ones to Nasal.
this will allow RouteManager dialog ‘clear’ button to clear all, soon.
See ticket:
https://sourceforge.net/p/flightgear/codetickets/2064/
2020-08-17 16:11:10 +01:00
James Turner
51bb8ed5ce
GUI: clean PUI junk on GUI shutdown
2020-08-12 16:36:22 +01:00
James Turner
b04a0d74f6
Use new-style sub-system lookup
2020-08-05 15:15:17 +01:00
James Turner
f40c6187fb
Launcher: omit some setup for in-sim mode
...
Unfortunately this doesn’t fix the weirdness reported in:
https://sourceforge.net/p/flightgear/codetickets/2180/
.. but will keep trying.
2020-07-30 12:30:23 +01:00
James Turner
ebdf34e81a
Launcher add-ons: tweak display of missing version
...
Show missing min/max FG version as ‘-‘ to avoid a translation headache.
Thanks to Slawek Mikula for the suggestion.
2020-07-30 12:29:06 +01:00
James Turner
25d88573d1
Launcher add-ons styling fixes
...
Suggested by Slawek Mikula, thanks!
2020-07-29 20:43:37 +01:00
James Turner
f5f3054a7a
Launcher: Fix cast of helipd to runway
...
Should fix trying to retrieve an ILS from a pad.
2020-07-17 12:04:12 +01:00
James Turner
ae5b17920c
Launcher: Fix a missed translation tag
2020-07-16 09:21:33 +01:00
James Turner
dc4201ed9f
Launcher: improve hit-testing of helipad
...
Use the other circle only, for hit testing pads in the airport diagram.
2020-07-15 09:52:02 +01:00
Florent Rougon
f105e8dfb2
Improve locale handling
...
- fgfs --language=fr-FR now works as expected for the launcher (also with
--language=fr_FR as before): the value added by option --language to
the _languages member of FGLocale is normalized in "underscore" style
(e.g., fr_FR).
- Add-on translations must now use a hyphen in their property node names
in addon-metadata.xml (talking about children of <localized>): i.e.,
use for instance <fr-FR> there, not <fr_FR>. An exception
(addons::errors::error_loading_metadata_file) is thrown if one of
these nodes has a name containing an underscore.
2020-07-14 12:23:23 +01:00
James Turner
54264e6591
Add —disable-gui option
...
Prevents showing a GUI message box if the user wants to run from the
console.
As requested here:
https://sourceforge.net/p/flightgear/codetickets/2306/
2020-07-14 12:05:53 +01:00
James Turner
1c1a41ed22
Remove an obsolete comment
2020-07-13 14:29:20 +01:00
James Turner
3993fc7d35
Launcher: fix helipad selection
...
Helipads were not being shown for convention airports, only for
heliports. Fix this up so helipads work alongside runways at
conventional airports, when the selected aircraft is a helicopter.
2020-07-13 14:29:20 +01:00
James Turner
b08de513d0
Launcher: show helipads and runways for airports
...
Where an airport (as opposed to heliport) has helipads, show them
as well in the diagram.
2020-07-13 14:29:20 +01:00
James Turner
f5c70e01b0
Launcher: fix detection of seaplanes and helis.
2020-07-13 14:29:20 +01:00
James Turner
faa211bf5d
Launcher: cap the search history at 20 items.
2020-07-13 14:29:20 +01:00
James Turner
0bb9600795
Add-ons localization support
...
Add-on meta-data can be localized now, in the same manner as aircraft
metadata.
2020-07-09 18:14:56 +01:00
James Turner
c71fc5ae73
Fix missing File menu in Dutch translation
...
Set the menu action roles to avoid the text heuristic, which erroneously
confuses our configuration menu items with preferences and moves them.
Fixes bug:
https://sourceforge.net/p/flightgear/codetickets/2253/
Will pick to 2018.3, 2020.1 and 2020.2 since it’s nicely self-contained
and rather annoying.
2020-07-04 14:38:38 +01:00
Stuart Buchanan
c4942eaa69
AirportBuilder to generate airports from apt.dat
2020-07-01 20:57:15 +01:00
James Turner
bb75d24fc0
Make the launcher defensive about bad add-ons
...
Tolerate missing add-on data if a bogus add-on is added by the user.
https://sourceforge.net/p/flightgear/codetickets/2266/
2020-07-01 11:57:04 +01:00
James Turner
05e40bfde3
Log-to-file level can be raised to debug/bulk
...
Fixes ticket:
https://sourceforge.net/p/flightgear/codetickets/2100/
2020-06-25 11:01:52 +01:00
James Turner
ee6f4388ee
Change how fatalMessageBoxThenExit works
...
This avoids crashing when using Qt : we cannot call exit() safely since
QGuiApplication won’t shut down correctly. Instead throw a special
marker object and catch this in boostrap.
For an instance of this, see:
https://sourceforge.net/p/flightgear/codetickets/2070/
2020-06-24 15:48:02 +01:00
James Turner
b85f2aba5c
Launcher: margin tweaks suggested by Slawek
...
Use a margin on all the vertical scrolled lists, for text readability
https://sourceforge.net/p/flightgear/codetickets/2268/
2020-06-23 23:21:01 +01:00
James Turner
c07a4c2df9
Launcher: improve local -set.xml scanning
...
Fix some more cases found by LarsT, where -set.xml scanning would
failure due to include paths.
2020-06-23 23:13:43 +01:00
James Turner
3883b19556
Remove use of unary_function, binary_function
...
Preparing for switch to C++17
2020-06-22 10:25:51 +01:00
James Turner
39a2d270fc
Fix some macOS 10.12 SDK deprecation warnings
2020-06-22 10:25:51 +01:00
James Turner
a9f48ce130
Fix some file/class name violations.
...
Ensure the file-name matches the class within, to avoid confusing
people more than necessary.
2020-06-22 10:25:51 +01:00
James Turner
7d7b7b3bd1
Launcher: if user has favorites defined, show them.
...
Suggested by Henning, that if the user has defined favorite aircraft,
default to that tab.
Will pick to 2020.2 once verified.
2020-06-22 10:25:51 +01:00
Julian Smith
9e610af55d
Added some #includes of Qt headers that were missing.
...
We get away with things without these includes because
the build concats lots of C++ files together into
build/flightgear/src/GUI/fglauncher_autogen/mocs_compilation.cpp and luckily
earlier ones had the right includes.
2020-06-19 20:45:11 +01:00
James Turner
4e12748b8c
Fix some compiler warnings
2020-06-19 10:46:01 +01:00
James Turner
5a11e57d0a
I18N: support localised local aircraft strings
...
Allows us to localize aircraft names/descriptions, especially for the
UFO and C172
2020-06-19 10:45:47 +01:00
James Turner
06e0924bfc
Remove checks for older Qt versions
2020-06-18 13:23:26 +01:00
James Turner
cc798bf21a
Launcher: use built-in QQC2 ScrollBar
...
The built-in has some nice features and generally updates better than
my previous verion.
2020-06-18 13:20:02 +01:00
James Turner
7313f62353
Qt 5.9: drop overlay for Shortcut support
...
Now we required 5.9, can use this everywhere
2020-06-18 13:03:35 +01:00
Julian Smith
037db25e29
src/GUI/FGQQWindowManager.cxx: fix gcc warning about initialiser.
2020-06-17 22:46:41 +01:00
Julian Smith
8ae21d86dd
src/GUI/FGFontCache.cxx: fix gcc warning about initialiser.
2020-06-17 22:46:41 +01:00
James Turner
dbec99abc9
Translate weather scenarios names+descriptions
...
Allow weather scenarios to be translated, and display this in the
launcher.
2020-06-17 16:15:01 +01:00
James Turner
38cccc3f62
Bugfix: empty popup menus in the launcher
...
Propagate the display role to the overlay menu correctly.
2020-06-17 16:12:37 +01:00
James Turner
7948a135b6
Launcher: load aircraft with odd -set.xml includes
...
Lars T identified some cases where the launcher would fail to include
local aircraft due to them using weird ways to include additional
XML into their -set.xml. Add a temporary resource provider while the
launcher is scanning, to make this work.
Will pick to LTS branch once verified.
2020-06-17 11:51:16 +01:00
Lars Toenning
42ed210c9c
Add warning if *-set.xml couldn't be parsed for launcher
2020-06-16 22:48:26 +01:00
James Turner
c8a88f7c40
Fix some missed translation markers for Add-ons
...
See: https://sourceforge.net/p/flightgear/codetickets/2163/
Thanks to Slawek for spotting these.
2020-06-15 12:24:57 +01:00
James Turner
1d97267663
Fix crash on shutdown in FGFontCache
...
Reported here by Michael:
https://sourceforge.net/p/flightgear/codetickets/2114/
2020-06-12 11:26:20 +01:00
James Turner
bce6b56c8d
Remove use of QQ.Window / PopupTracker
...
Overlay menus work better than native popups for most use-cases, and
simplify integration (no window focus changes). Switch the remaining
menus to always use the overlay system
As part of this, fix how Overlay positions are adjusted, to avoid
the ugly zero-interval timer.
2020-06-10 16:54:27 +01:00
James Turner
aedaf798c0
Launcher: add key shortcut for Fly!
...
Ctrl-F, since we don’t have a find function.
Requested by Richard, and easy to add :)
2020-06-09 14:53:43 +01:00
James Turner
6278e74e4b
Fix MSVC build: include <atomic>
...
(Weirdly, only needed with some MSVC versions…)
2020-06-09 08:43:14 +01:00
James Turner
32ff21c1df
UI: support OSG multi-threading modes, partially
...
Requires private header, so might need an additional package installed
on some Unixes.
2020-06-08 22:44:52 +01:00
James Turner
2ca06d5b69
Launcher: move PNGs to assets/ subdir
2020-06-05 22:16:02 +01:00
James Turner
3cd3ad465e
Add Qt dialog state controller
...
Allow standard control of drill-down dialogs (with back / forward
navigation)
2020-06-05 22:09:03 +01:00
James Turner
faa070307d
Add property Qt item-model
...
Allows exposing a set of property nodes as a model in combo boxes,
lists, etc.
2020-06-05 22:09:03 +01:00
James Turner
c2c3bc17f6
Expose child-props to QML binding class
2020-06-05 22:09:03 +01:00
James Turner
033a53f1d7
Add missing code to previous commit :)
2020-06-05 20:49:05 +01:00
James Turner
a9e5a27e55
UI handling tweaks
...
- add class to handle top-level windows
- remove requirement to use custom graphics-window
- order alongside PUI UI
2020-06-05 17:54:27 +01:00
James Turner
023fbe35ea
Tweaks to avoid a crash when asking for FGData path
...
exit(-1) early in startup seems to cause QApplication to be cleaned
up in a weird way
2020-06-04 17:43:27 +01:00
James Turner
f242d1a226
Fix case sensitivity of Compositor spec names
...
https://sourceforge.net/p/flightgear/codetickets/2249/
2020-05-24 08:53:25 +01:00
James Turner
1eef7300be
PosInit: fix a crash with invalid park-pos.
...
Add test-cases for this,
2020-05-21 23:19:39 +01:00
James Turner
2759977ab6
Fix Launcher compositor setting
2020-05-19 22:22:04 +01:00
James Turner
1cf8e5641c
Fix testing version of previous commit.
2020-05-18 11:47:11 +01:00
James Turner
645548cbcc
Launcher: ensure cache rebuild dialog stays open.
...
Disable the auto-close behaviour, which was causing us to end the
rebuild too early, and then corrupt the DB
2020-05-18 11:46:17 +01:00
James Turner
f010e78e55
Launcher: basic Compositor support
2020-05-14 10:57:16 +01:00
James Turner
0c0947458f
NavCache init: make progress updates smoother
2020-05-13 15:51:42 +01:00
James Turner
31c66b3a37
Use QApp::exec to run the nav-cache init dialog.
...
This avoids an issue where the dialog doesn’t update on macOS, if it’s
shown immediately after a native message box, such as the migration
warning dialog.
2020-05-12 22:00:43 +01:00