James Turner
0bb67136ab
Launcher: only submit a FP when requested
...
Add an explicit toggle switch to the planning page so we don’t
always set an empty plan.
2018-09-02 09:32:13 +01:00
James Turner
5312ed9071
Launcher: allow copying the raw command line
2018-09-02 09:18:46 +01:00
James Turner
5ae818e526
Launcher: fix a compile error for Stuart
2018-09-02 09:18:21 +01:00
Ganael Laplanche
2756735d0c
Fix build with clang 7 on FreeBSD 12-CURRENT:
...
error: reference to 'stack' is ambiguous
(see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230502 )
2018-09-01 22:28:41 +02:00
Ganael Laplanche
ff69754756
Fix build with clang 7 on FreeBSD 12-CURRENT:
...
src/AIModel/AIFlightPlanCreatePushBack.cxx:96:48: error: ordered comparison between pointer and zero ('FGTaxiNode *' and 'int')
(see: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230502 )
2018-09-01 22:27:07 +02:00
James Turner
525cfadfa3
Reset: persist USERARCHIVE settings
...
Save user-setting properties to disk before beginning a reset, so
they are restored correctly.
2018-09-01 19:21:47 +01:00
James Turner
09fdfe358c
Reset: ensure Nasal shutdown is clean
...
Some improvements / bullet-proofing while trying to track down the
slow-on-reset issue.
2018-09-01 18:53:45 +01:00
James Turner
5cc9b4f127
Launcher: remove some debug output
2018-09-01 18:53:45 +01:00
James Turner
b210f2021d
Launcher: indent location detail heading text.
...
As suggested on the devel list, this looks more comfortable with a
margin set.
2018-09-01 18:53:45 +01:00
James Turner
776588066a
Launcher: shrink sidebar height further
...
Since the icons have some margin included, go to a really small margin
external to this, gets us down to 560px vertical here.
2018-09-01 18:53:45 +01:00
Stuart Buchanan
c5840b1039
Fix translations variable where no translations data
2018-09-01 16:22:08 +01:00
James Turner
c537bbcfe7
Translations: detect missing lrelease explicitly.
...
This gives a clearer message and behaviour when Qt is installed but
the translation tools have been omitted.
2018-09-01 14:59:24 +01:00
James Turner
e6a3b9c012
Extend Nasal FlightPlan API for new members
...
Cruise alt/speed, remarks and callsign are now exposed and settable
from Nasal. Duration and route path still to be done.
2018-08-30 16:40:16 +01:00
James Turner
40d5d918ba
Allow local acft to override packaged acft
...
When an explicit aircraft-dir is set, check this location before
checking installed packages. This allows setting —aircraft and
-aircraft-dir to correctly take precedence over a package.
2018-08-30 15:23:45 +01:00
James Turner
ec7816a565
Reduce the launcher minimum vertical height
2018-08-30 14:41:22 +01:00
James Turner
b184a7f06e
Unify SGGeodVec definition
2018-08-29 14:55:23 +01:00
James Turner
7fe11b800a
Launcher: use a more robust resource path
...
Some version of Qt seem to dislike the qrc:/// format, so use the
single-slash format here.
2018-08-28 23:35:38 +01:00
James Turner
47847a5a57
Fix an assert in debug mode
2018-08-28 23:34:55 +01:00
James Turner
41687767b9
Translations looked up correctly
...
Tweak both the launcher and main locale lookups, to tolerate the
different region suffixes encountered in reality.
2018-08-28 23:34:44 +01:00
James Turner
2329654e3b
Disabling translations is tricky.
2018-08-28 17:12:31 +01:00
James Turner
61f33e0195
One more fix for translations-disabled case
2018-08-28 16:32:23 +01:00
James Turner
f99a25ba7f
Fix build when translations are not defined
2018-08-28 16:15:26 +01:00
James Turner
df7e13d734
Flight planning in the launcher
...
Still evolving but usable to import or build a route now
2018-08-28 12:23:01 +01:00
James Turner
331939f640
Reduce level of some debug output
2018-08-28 12:23:01 +01:00
James Turner
e062026d9c
UI: small fixes to various controls
...
Especially, add return key handling to many editing controls
2018-08-28 12:23:01 +01:00
James Turner
f33b15575f
Navaid search: optionally constrain results
2018-08-28 12:23:01 +01:00
James Turner
f0c48110d3
Units model knows about frequency units
2018-08-28 12:23:01 +01:00
James Turner
cd0b493426
Base diagram can draw airways
2018-08-28 12:23:01 +01:00
James Turner
69dbfc0a27
Core airway and flight-plan enhancements
...
Add better airway support, fix various issues with VIA, and add
parsing / generation of ICAO route strings. Also fix the
serialisation of flight-plans with airway enroute segments, so these
can be restored correctly.
2018-08-28 12:23:01 +01:00
James Turner
5c9771fb00
Airport tweaks for flight-planning
2018-08-28 12:23:01 +01:00
James Turner
f4b98cf204
Fix CMake dependencies for translations
...
When only building the fgfs target (which IDEs tend to do), we didn’t
update the translations. Add an explicit dependency to remedy this.
2018-08-28 12:04:56 +01:00
James Turner
eaa2ed5cbb
Launcher translations enabled
...
Translations are build into the executable at compile time, providing
FGData is available during the build.
2018-08-27 13:20:23 +01:00
James Turner
5bb3f10ba1
Linux / GCC compile fixes
2018-08-26 15:39:30 +01:00
James Turner
e3d032942e
Move aircraft-performance code into a public API
...
Upcoming flight-planning changes want to use the perf computation code
in route-path, so move it to a public class, and implement some of the
missing functionality, especially correct GS computation for altitude.
2018-08-26 14:39:42 +01:00
Michael Danilov
e425f74a7d
Fix crash on invalid(?) fallback model id.
2018-08-25 18:43:05 +05:00
James Turner
a419a80de4
Clang/C++11 warning fixes
2018-08-20 02:59:23 +01:00
James Turner
f54cba9586
Fix a warning, remove unused
2018-08-20 02:58:12 +01:00
James Turner
9848930e16
Fix translations context for some strings
2018-08-19 16:50:38 +01:00
James Turner
3f5a0a47ad
Improved build.h generation (each build)
...
Use a custom_target to recursively invoke Cmake at build time; this
ensures the build ID and Git revision are always up to date.
2018-08-19 16:06:16 +01:00
James Turner
8b72229ffd
C++11 improvements in Mac event-input code
2018-08-19 12:34:47 +01:00
James Turner
09918a6862
Fix Nasal duplicate init
...
Also ensure Nasal reset is handled correctly (requires corresponding
SimGear commit)
2018-08-19 12:34:27 +01:00
James Turner
26bc3713b5
Changes for SimGear subsystem add/remove tracking
...
Since the subsystem manager tracks group state, it now binds/inits
automatically. This means groups which create subsystems during init
no longer need to manually bind() them.
2018-08-12 11:18:50 -07:00
James Turner
f5117109fe
Load translations from XLIFF format
...
When an <xliff> entry is present inside a locale specification,
this takes precedence over the legacy translations.
2018-08-12 11:18:50 -07:00
James Turner
d534a5ba36
Move build-ID variables to their own header
...
This is to reduce rebuilding by changing version.h needlessly, since
only a few places use the build ID info.
2018-08-12 11:18:50 -07:00
Richard Harrison
8ac8446256
GUIDialog: attempts to fix segfault
...
- change to get property node rather than calling set string.
- only set dialog name on mouse down event; (Scott's suggestion)
2018-08-12 10:43:20 +02:00
James Turner
e24134f34a
HID-input: fix crash with null manufacturer name
...
https://sourceforge.net/p/flightgear/codetickets/2041/
2018-08-10 15:11:32 +01:00
James Turner
696c95d612
Fix passing —-config files via the launcher
...
Curt found this, allow using --config from the launcher additional
settings box.
2018-08-10 12:51:51 +01:00
Richard Harrison
518fb79e01
PUI Dialogs fixes
...
- fix double zoom on mouse wheel in map
- change getName() to return const char* to see if that fixes the crash in linux.
2018-08-10 02:00:38 +02:00
James Turner
c4e4f83030
Launcher: hide sidebar tooltips when button updates
...
Happens with Fly! button when refresh or update occurs.
2018-08-08 11:30:38 +02:00
Richard Harrison
c13bfe2722
PUI: window (FgPopup) handling changes
...
- I think I've fixed a long standing problem with clicks traveling through windows and bringing the dialog window underneath to the foreground.
- Added /sim/gui/dialogs/current-dialog that contains the name of the currently active (in front) dialog window.
- Changed dialog-open to bring a dialog to the front if it is already open.
2018-08-07 18:54:29 +02:00