Automatic Release Builder
21e6c06a0c
Fix a glitch in adding the default catalog
2020-11-12 09:35:32 +00:00
Automatic Release Builder
74e27eec16
SetupRootDialog: fix download URI
2020-11-12 09:35:03 +00:00
Automatic Release Builder
81150ff6a1
Sentry: don't report more XML errors
...
Don't report XML errors when parsing Nasal-loaded content,
or n the launcher when scanning aircraft information.
2020-11-12 09:34:18 +00:00
James Turner
c63594acec
Launcher: abandon NautralEarth loading on ‘fly!’
...
Otherwise we waste time trying to commit loaded data during FG main
startup, which causes races on the NavCache, and is pointless.
2020-11-12 09:33:07 +00:00
James Turner
3c1594ead4
Launcher add-ons: drop missing paths on load
...
Don’t probe for, or pass, missing paths to FlightGear. Since we don’t
show such paths in the UI, they hang around forever, causing exceptions
Sentry-Id: FLIGHTGEAR-NG
2020-11-12 09:32:58 +00:00
James Turner
e62c64859c
Launcher FirstRun: add ‘scroll to bottom’ hint
2020-11-12 09:31:44 +00:00
James Turner
d29f25c391
Launcher: missed translations MichaelD spotted
2020-11-12 09:30:23 +00:00
James Turner
ca103e7fce
UI NumericalEdit: tweak marings
2020-11-12 09:30:12 +00:00
James Turner
134e06af68
Avoid NavCache races on multiple copies rebuilding
...
If impatient users start multiple copies of FlightGear when a cache
rebuild is required, we can get into a mess. Use an additional
named mutex on Windows to avoid this situation, and block the secondary
copies until the primary instance has completed its cache rebuild.
Sentry-Id: FLIGHTGEAR-8D
Sentry-Id: FLIGHTGEAR-FY
2020-11-10 23:25:04 +00:00
Julian Smith
cf55c5f4f5
src/GUI/new_gui.cxx: disable rescan of style files because causes problems.
2020-11-02 10:53:38 +00:00
Julian Smith
68938ddb4b
src/GUI/QtLauncher.cxx: fix call to sglog() to pass __FUNCTION__.
2020-11-01 00:03:03 +00:00
Julian Smith
4ec80297bf
src/Viewer/FGEventHandler.cxx: NewGUI::setStyle(): added code to rescan style files.
...
Changing style will reload style from filesystem, so one can edit styles and
see results without restarting fg.
Note that this duplicates initial populating of /gui/styles/ from
defaults.xml's <sim><gui>...</gui></sim> section, so it's a bit of a hack.
2020-11-01 00:02:43 +00:00
Julian Smith
43468727ad
Added command 'dialog-toggle' - toggles display of dialogue.
...
E.g. useful for keyboard shortcuts.
2020-10-31 17:23:28 +00:00
Julian Smith
f04f902b66
src/GUI/MessageBox.cxx:modalMessageBox(): If no gui, use SG_POPUP to ensure message is printed to terminal.
2020-10-31 17:23:28 +00:00
Automatic Release Builder
6d2f1d33d8
Launcher: fix L10N issues found by Michael D
...
Address parts of the issues mentioned in:
https://sourceforge.net/p/flightgear/codetickets/2386/
2020-10-29 21:21:40 +00:00
James Turner
29d171e73a
Launcher: port the QQC2 check to next
...
Since we require QQC2 on next, make it a critical warning.
2020-10-29 21:21:00 +00:00
James Turner
4075ea02e9
Launcher: Fix scrollbar for next
2020-10-29 21:12:36 +00:00
James Turner
3af8d11e1b
Fix for renamed file
2020-10-29 16:26:36 +00:00
Automatic Release Builder
f8aea84541
Launcher: nicer back button.
...
Avoid localisation issues for the back button, by switching to an
icon.
2020-10-29 16:24:41 +00:00
Automatic Release Builder
9855e89109
Launcher: Validate restored aircraft state on load
...
Otherwise a stray state can enter the logic, unless the user
re-selects it.
2020-10-29 16:24:41 +00:00
Automatic Release Builder
f0e2a297ae
Launcher: Fix excessively large mouse area
...
The notifications catch are was blocking the summary pane; fix the
size to follow the active notifications.
2020-10-29 16:24:41 +00:00
Automatic Release Builder
9f3f1a8f58
Launcher: Fix translation tag Michael D spotted.
2020-10-29 16:24:41 +00:00
Automatic Release Builder
f78d644a61
Launcher: fix feedback adding default catalog
...
When adding the default catalog from the aircraft browse tab,
the list on the add-ons page didn’t refresh correctly.
2020-10-29 16:24:41 +00:00
Automatic Release Builder
8c371cf3bb
Launcher: Separate recent-foo data by version
...
Since our data encoding is incompatible between 2018 and 2020, use
different settings keys so running both versions in parallel is easier.
Without this, each version screws up the data for the other.
2020-10-29 16:24:41 +00:00
Automatic Release Builder
9776c56faa
Fix a crash (race condition) closing the launcher
...
When local aircraft scanning is slow, we can end up clearing
the locale while a scan is in progress, which crashes. Ensure we
abandon any in-progress scan when closing the launcher.
Sentry-Id: FLIGHTGEAR-CH
2020-10-29 16:24:41 +00:00
Automatic Release Builder
df42c6f026
Launcher: UI feedback for hangar migrations
...
Add pop-up notification when we migrate to a new version of a hangar.
Convert the ‘new version available’ message to use a pop-up
notification as well.
2020-10-29 16:24:39 +00:00
Stuart Buchanan
c71f281a58
Launcher: First Run capitalization and grammar.
2020-10-29 16:23:26 +00:00
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