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
James Turner
2dcf9c30bb
Further path -> UTF8 fixes for Windows
...
Requires corresponding SimGear change. With this last round, we work
with FGData on non-Latin1 path on Windows. (Final fixes are for
Nasal io.readfile, which needed io.stat to work, and SGSky allowing
correct SGPath use)
2020-03-15 15:00:55 +00:00
James Turner
7e9930e871
Move fnt code from PLIB into 3rdparty
...
This enables us to fix TXF loading to use UTF8 paths, required for
handling non-ASCII paths on Windows.
2020-03-13 12:21:56 +00:00
James Turner
27410761f3
Lots of UTF8 path correctness fixes
2020-03-12 14:23:44 +00:00
James Turner
40a85cae28
Launcher: fix some warnings, maybe a crash
...
Avoid binding loop warning, and change logic around re-starting the
aircraft dirs scan, to hopefully clarify the crash Brendan and others
are seeing.
2020-03-10 16:10:55 +00:00
Lars Toenning
d14073cd24
[swift] Adding aircraft to property tree and map
2020-03-10 14:08:28 +00:00
James Turner
de172de5b3
Launcher: Fix a typo breaking path re-ordering
2020-03-10 10:28:56 +00:00
James Turner
410c249ba8
Launcher: enable/disable all add-on types
...
Allow enable/disable in the UI of everything in the ‘add-ons’ page of
the launcher.
2020-03-09 16:16:50 +00:00
James Turner
ff70578d57
Launcher: Fix a QML warning on startup
2020-02-24 11:33:05 +00:00
James Turner
a3731875a1
Make Launcher ratings settings persistent
2020-02-24 11:33:05 +00:00
James Turner
f76709a853
Save settings on Launcher window close.
...
Patch by Slawek Mikula, from:
https://sourceforge.net/p/flightgear/codetickets/2158/
2019-12-17 22:47:50 +00:00
James Turner
ba36bd90e0
Launcher respects —enable-fullscreen arg
...
Patch by Slawek Mikula from:
https://sourceforge.net/p/flightgear/codetickets/2162/
2019-12-17 22:40:25 +00:00
Julian Smith
10414fada4
src/GUI/new_gui.cxx: NewGUI::setStyle(): remove old nodes before copying across new style.
...
Previously old nodes that weren't in the new style, would be left in place,
leading to a confusing mix of styles sometimes.
2019-09-04 10:55:43 +01:00
Edward d'Auvergne
34a6cb3c74
SGSubsystem classes: Registration of all subsystems.
2019-07-01 14:51:32 +02:00
Edward d'Auvergne
fb5c36fc82
SGSubsystem classes: Renaming of the subsystem ID variables and functions.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
7a6e63ddb9
SGSubsystem classes: Subsystem and subsystem group API declaration standardisation.
...
This is a cleanup commit.
2019-07-01 14:27:30 +02:00
Edward d'Auvergne
60a2444766
SGSubsystem classes: Whitespace standardisation of the declarations.
...
This is a clean up commit prior to the subsystem API standardisation to simplify
the diffs. It includes all SGSubsystem and SGSubsystemGroup derived classes.
2019-07-01 14:27:28 +02:00
James Turner
79562bcf31
Avoid crash on Cmd-Q exit of the app on macOS
...
On this code path, AppKit uses exit, rather than letting main run as
normal. We handle most things via C++ destructors, which do run, but
Qt is happier if we clean it up explicitly.
2019-04-17 22:53:10 +01:00