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
James Turner
fec454def9
PUI map: disable key-bindings for now
2020-05-12 11:26:07 +01:00
James Turner
b52d41b0c3
Allow region/local specifications of translations
2020-05-08 14:54:53 +01:00
James Turner
6b41eb69eb
Lock-file dialog: allow quit-ing, make translated
...
Add translation macros for the text of the lock-file warning dialog,
and update the default text after some discussion on the devel list.
Also allow quiting the app, as an alternative option.
2020-05-07 16:49:50 +01:00
James Turner
ddc7baada2
Improve UI around read-only mode / lock-files
...
See ticket:
https://sourceforge.net/p/flightgear/codetickets/2133/
Give the user a chance to intervene, if we select read-only mode.
Offer a button to clear the lock file if it’s stale, and start in
read-write mode.
This is still evolving, but want to get some feedback on it.
2020-05-03 18:02:20 +01:00
Julian Smith
387b61e211
src/GUI/MapWidget.cxx: don't pan map with cursor keys if /gui/map/key-pan is 0.
...
Allows control of autopilot with cursor keys when map is being displayed.
Default is 1, which preserves old behaviour.
2020-05-02 10:09:04 +01:00
James Turner
6c66126bdb
I18N: fix translation of nav-cache-init dialog
...
Thanks to Slawek Mikula for spotting, that this was not working
correctly, now it does.
2020-04-29 11:44:09 +01:00
James Turner
1f07a8eba8
PUIDialog: some C++11 style clean-ups
2020-04-27 14:21:47 +01:00
James Turner
aae2ddd7e4
Launcher: split on non-word characters in search
...
This means ‘pa-28’ or ‘c-130’ will match pa28 or c130, where previously
they did not. This makes search for aircraft designations a bit easier.
2020-04-27 14:21:47 +01:00
gallaert
4854607382
Replace boost::lexical_cast by std::ostringstream and std:stof/stoi/stod
2020-04-22 14:06:13 +01:00
gallaert
0dfed0a096
Replace boost::shared_ptr/weak_ptr by std::shared_ptr/weak_ptr
2020-04-22 14:05:46 +01:00
James Turner
381919451d
Fix for reset crash:
...
https://sourceforge.net/p/flightgear/codetickets/2217/
This requires a matching Simgear change, but ensure all places
tolerate Nasal subsystem being gone, since this occurs during reset.
2020-04-22 10:56:54 +01:00
James Turner
858fc6ea01
Launcher: Fix compilation with Qt < 5.6
2020-04-21 16:34:24 +01:00
Stuart Buchanan
52a6245b49
Add --carrier-position command line argument
...
Takes special values "FLOLS" and "abeam" to set up
aligned for final approach or at the 180 for the carrier flight
deck. Or alternatively a catapult or parking position.
2020-04-17 20:25:18 +01:00
James Turner
a24301f746
UI for enabling crash-reporting in the launcher
2020-04-16 22:33:37 +01:00
James Turner
d7398866c7
Launcher: allow ‘Airports’ when adding a scenery path
...
Adjust the warning message to allow for ‘Airports-only’ scenery paths
to be added.
2020-04-13 09:35:52 +01:00
Stuart Buchanan
9b20c08db3
Fix compiler warnings
2020-04-12 21:52:19 +01:00
gallaert
fb65f64342
Replace BOOST_FOREACH by C++ 11 for range loop.
2020-04-12 14:40:36 +01:00
James Turner
440ca82bca
Launcher: fix a bug setting combo box state
...
Fix for callsign broke settings where the default value of setting is
not that of the control.
2020-04-10 19:09:54 +01:00
James Turner
4fd59a6613
Launcher: fix a glitch in restoring callsign
...
The base version of setValue used the wrong syntax, causing callsign
restoring to fail.
2020-04-10 11:58:18 +01:00
Stuart Buchanan
00fd5fbaec
Carrier "abeam" position support
...
Support for --carrier-abeam option, which places the aircraft
at the end of a downwind opposite the FLOLS.
Add launcher support for above.
Add carrier display for launcher showing position relative to
carrier.
2020-04-05 23:13:32 +01:00
Julian Smith
26168e5175
src/GUI/FavouriteAircraftData.cxx: add #include of <memory> to fix compile error.
2020-04-04 11:19:46 +01:00
James Turner
e596eb3716
Launcher: move favourites to its own storage class
...
This allows viewing/changing favourite-ness from the details view.
2020-04-04 09:20:23 +01:00
Stuart Buchanan
e0fb27037b
Carrier launcher: Usability improvements
...
- Support for <description> under <entry> in AI scenario
- Carrier icon consistent with UI
- Location "ship" icon toggles between ships and airports.
2020-04-03 21:43:19 +01:00
Stuart Buchanan
6b17604ba8
Carrier launcher: Allow setting altitude
2020-04-03 20:37:37 +01:00
Stuart Buchanan
8a782ea386
Updated Aircraft Carrier iconography for Launcher
2020-04-03 16:16:11 +01:00
Stuart Buchanan
e1f9f6707c
Add carrier-take-off and carrier-approach overlays
...
Adds support for carrier variants of the take-off
and approach overlays, with Automatic selection if
requested.
2020-04-03 16:06:55 +01:00
James Turner
f24b886ce4
Launcher: fix favourites loading
...
Also fix some warnings, closer to no output from the launcher.
2020-04-02 16:13:12 +01:00
James Turner
ca97866dd3
Fix a warning
2020-04-01 15:30:06 +01:00
James Turner
2904321959
Launcher: favourite aircraft support
2020-04-01 10:47:29 +01:00
James Turner
8ddf4d6699
Fix reset-data-path dialog logic
...
Use correct root path key in QSettings, everywhere
Use the direct Win32 API until Qt wrapper is fixed.
2020-03-26 17:35:01 +00:00
James Turner
0483f2996a
Simplify Launcher thumbnail display code
...
Remove old code paths in the AircraftModel/LocalCache, especially
2020-03-26 17:35:01 +00:00
James Turner
2c056507ce
Launcher: reduce timeout for HTTP updates
...
This helps download performance from inside the launcher
2020-03-24 22:37:23 +00:00
James Turner
5dc2f20848
Launcher: fix scanning of aircraft dirs on startup
...
https://sourceforge.net/p/flightgear/codetickets/2195/
2020-03-23 16:33:39 +00:00
James Turner
86e81735c5
Launcher: fix a typo
2020-03-23 10:06:31 +00:00
James Turner
cb830b70ff
Launcher: add setting for texture-cache
2020-03-23 10:06:31 +00:00
James Turner
177fc565da
Launcher: initial carrier support
...
Allow selecting carriers from scenarios, and starting at either a
parking position, or a distance offset from the FLOLS (effectively
a crude ‘on-final’)
Extend the —carrier startup option to accept a runway ident of FLOLS,
in conjunction with the existing —offset-distance argument.
2020-03-20 15:51:47 +00:00
James Turner
a22d7943a4
Launcher: set package locale based on user language
...
This should in theory enable localised strings in catalogs, but need
to validate the full workflow here.
2020-03-17 11:46:26 +00:00
James Turner
ffbbe54cbc
Launcher: create popup windows on demand
...
This avoids some flickering issues on macOS, and reduces resource use
generally.
2020-03-17 11:14:11 +00:00
James Turner
cf8ec5998e
Launcher: disable grid mode for update tab
...
Since the UI doesn’t work well in grid mode, and the list of updates
is limited, force list mode for the updates tab.
https://sourceforge.net/p/flightgear/codetickets/2172/
2020-03-17 10:00:17 +00:00
James Turner
d52f1b5d47
Improve in-sim launcher behaviour
...
Restrict the UI to the pieces which make sense.
2020-03-17 10:00:17 +00:00
James Turner
7688007c68
Guard against potential cause of crash:
...
https://sourceforge.net/p/flightgear/codetickets/2138/
2020-03-17 10:00:12 +00:00