James Turner
00d34b67e1
Fix translation of migration-notification dialog.
...
Was being shown before locale was selected, so always using default
translation. Fixed by deferring the dialog, and also added an assert
for debug builds, if trying to access translated string too early.
2020-06-17 10:57:34 +01:00
James Turner
9326c88f9b
Move Qt root path variable to top-level CMakeList
2020-06-10 17:59:09 +01:00
Julian Smith
4de00657c9
Multiplayer replay: added properties showing memory usage info.
2020-06-05 21:21:14 +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
26b0148747
Preserve developer-mode on reset
...
Thanks to Henning for pointing out problem.
2020-06-01 11:15:45 +01:00
James Turner
13bb1adf54
Better fix for orientation nodes init
...
(Avoid the chance that we overwrite a value set earlier)
2020-05-31 12:24:36 +01:00
James Turner
c0d347859f
Ensure various properties have a value on start.
...
Ensure /orientation/heading-magnetic-deg, etc have a type of double
immediately. Showed up as a bug in the SenecaII, since the property
is created but has NIL value until the first update() call.
2020-05-31 12:18:07 +01:00
James Turner
0423524b82
Fix crash on first-run on macOS
2020-05-25 14:13:21 +01:00
Lars Toenning
265d721bab
[swift] Transfer connection settings to defaults.xml
...
Related to commit d0cb2f on fgdata
2020-05-24 14:15:27 +01:00
Lars Toenning
f3edffd42b
Exit on startup if defaults.xml is corrupted
2020-05-21 22:49:57 +01:00
James Turner
63fe5237c6
Improve interaction of —parkpos and repositioning
...
Re-work how position-init and ATC-manager work together to do
parking assignment and fallback (when the parking is unavailable).
Improve the logic for the reposition case, and teach ATC-manager about
reposition explicitly.
When the parking is unavailable, explicitly fall back to best-runway
selection in finalizePosition.
Add many additional position-init tests, to cover all of this.
2020-05-19 18:00:34 +01:00
James Turner
620a02bad3
Make sentry APi key customisable
2020-05-12 12:01:59 +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
a01f3442c6
Fix non-Qt build.
...
Thanks Huntley for the catch.
2020-05-04 21:29:23 +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
James Turner
d2a04cecf7
Fix string category for locale
2020-04-30 16:22:59 +01:00
James Turner
4a485adcf3
Fix crash on —show-aircraft
...
Change how we return, so QApplication doesn’t explode. exit() is not
a happy thing for QApplication.
Ticket:
https://sourceforge.net/p/flightgear/codetickets/2139/
2020-04-29 14:55:37 +01:00
James Turner
de0826294c
Aircraft-loading: resolve symlinked dirs earlier.
...
This is to ensure we pass a realpath when validating Nasal / dialogs,
to fix: https://sourceforge.net/p/flightgear/codetickets/2057/
2020-04-29 12:33:25 +01:00
James Turner
954385ce0d
Improve log message when fgfs_lock.pid exists
...
Part of addressing:
https://sourceforge.net/p/flightgear/codetickets/2133/
Still need to decide about a better GUI dialog for this.
2020-04-29 11:44:21 +01:00
James Turner
489e6abb2a
Allow translation of ‘autosave migration’ dialog.
...
Thanks to Slawek Mikula for the suggestion, this can now be
translated.
2020-04-29 11:44:13 +01:00
James Turner
b69055ffca
Fix normalization of heading-mag-deg
2020-04-27 14:21:47 +01:00
James Turner
fdd509a080
Logging for Nasal errors, disabled for now.
...
Code to log Nasal, as well as C++, errors. But need a way to reduce
the false-positive rate, so disabled for now.
2020-04-20 11:03:35 +01:00
Stuart Buchanan
682293c0d0
Fix for C++11 using simgear::strutils::lowercase
2020-04-18 22:00:04 +01:00
James Turner
d96d903c0b
Sentry: fix conversion of Build-ID to string
2020-04-18 18:13:37 +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
faee5dbabf
Code changes for crash reporting with Sentry.
2020-04-17 17:55:34 +01:00
James Turner
a24301f746
UI for enabling crash-reporting in the launcher
2020-04-16 22:33:37 +01:00
James Turner
e1d00509c7
Enable sentry linkage (for Jenkins)
...
Note this require a sentry-native build with this commit applied:
0c631f6ec7
2020-04-14 11:15:40 +01:00
Erik Hofman
2fd0877824
Only load the video settings when the autosave file is not found. This requires the properties in the video settings configuration file to have the archive attribute set but it solves the problem of loading the autosave file twice (and too late in the process)
2020-04-13 17:03:37 +02:00
Stuart Buchanan
6ab7c08aa5
Fix --heading for --ndb position option.
...
Previously setting an offset for an NDB start position
resuled in any --heading setting being ignored. This fixes it.
2020-04-12 21:45:20 +01:00
James Turner
4571769ee7
Quiet some log messages
2020-04-10 19:12:10 +01:00
James Turner
0a6fe33bc3
Add support for compatible-fg-version in -set.xml
...
This is to evaluate if this is a good idea, not sure if we actually
want to commit to this approach yet.
2020-04-10 10:40:32 +01:00
James Turner
9304bcc9af
Change some warnings to developer mode.
2020-04-10 10:40:32 +01:00
James Turner
b1395a86ba
Add —disable-hold-short option for MP
...
Allow explicit disabling of the hold-short behaviour when it causes
problems.
2020-04-10 10:40:32 +01:00
Richard Harrison
b8f28d54c6
Carrier init:
...
As well as "FLOLS" in the runway allow it in the parkpos; probably we should rename this to "position" rather than "parkpos"
2020-04-10 00:06:00 +02:00
James Turner
f5b04684cf
Disable linking to sentry for now, due to a bug
...
Discovered na upstream issue in sentry-native’s exported CMake targets,
at least on macOS. Disabling until I hear back from them.
2020-04-08 16:07:31 +01:00
James Turner
2500534b1e
Build changes for new crash-reporting system.
2020-04-07 09:38:13 +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
Stuart Buchanan
6b17604ba8
Carrier launcher: Allow setting altitude
2020-04-03 20:37:37 +01:00
James Turner
968fbd82e0
Fix typo breaking mag-compass and others
2020-04-03 09:57:13 +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
gallaert
1ce36af298
- When HLA is enabled in Simgear, HLA is also enabled in Flightgear
...
making the build between Simgear and Flightgear consistent.
- Fix an issue with lib/lib64 path between CentOS/RedHat distributions
and Debian derived distributions.
- Fix a compilation issue with HLA in the Flightgear code.
2020-04-01 21:02:24 +01:00
James Turner
005ddf7c98
Optimisation: avoid property name lookups
2020-04-01 16:20: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
Fernando García Liñán
6f676ee85b
Compositor: Added $FG_ROOT/Compositor/Effects as a resource provider.
2020-03-24 19:44:05 +01:00
James Turner
5f0c10d94d
Fix incorrect write() return code handling
2020-03-20 22:24:44 +00:00
James Turner
162ba266d0
Fix a warning
2020-03-20 11:40:47 -07:00
James Turner
26b527f151
Fix Linux compilation
2020-03-20 11:40:32 -07: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