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