James Turner
688ae7d156
Bugfix: Qt launcher, enable variant aircraft on-disk
...
When mapping a URI to a QModelIndex, we were only considering the
primary aircraft path, for on-disk aircraft as opposed to packages.
2016-03-05 09:34:16 +00:00
James Turner
1aa6482a59
Fix bug #1845 , closing the Qt launcher
...
Intercept the close event and quit the app instead of continuing to
run the main FlightGear application.
https://sourceforge.net/p/flightgear/codetickets/1845/
2016-02-24 21:50:48 +02:00
Rebecca N. Palmer
e1d0699bdb
add new QtFileDialog to avoid using Nasal in file selectors
...
(and hence avoid applying Nasal security rules to them)
2016-02-10 22:58:56 +00:00
James Turner
c72309360e
Defensive handling of locales.
...
- Use setlocale() to ensure consistent handling of locales and
string handling irrespective of whether or not QCoreApplication
is invoked. Forces a the C locale for numerics and collation,
since many pieces of FG assume this.
2016-02-02 20:44:46 +00:00
James Turner
2677b3a226
Use target_include_directories in some places.
...
I didn’t know about this feature when doing the original CMake files,
we can use this to target header-file includes more precisely.
(Probably more cases exist that can be changed from global to target-
specific includes)
2016-01-26 07:48:30 +01:00
James Turner
d81d353940
Improved fg-root control from the Qt Launcher
...
- add a button to the main dialog, explaining how to adjust the
fg-root path via the GUI
- tweak the GUI flow to support explicitly changing the path even
when the default path is acceptable.
2016-01-18 20:06:43 -05:00
James Turner
e32b02b28f
Launcher: fix slot name for old-style syntax
2016-01-12 17:25:54 -06:00
Erik Hofman
f19c8ac05d
Apperently maybeRestoreAircraftSelection() needs to be a slot
2016-01-11 09:46:16 +01:00
James Turner
409ffc971d
Fixes to launcher aircraft delegate.
...
- fix some text size computation issues
2016-01-10 23:46:44 -06:00
James Turner
d10d279064
Launcher finds parking positions from scenery
...
- change launcher to examine the scenery paths and hence load
ground-net files for airports to populate parking data.
- refactor ground-net XML parsing to use FGGroundNetwork only, not
AirportDynamics.
- change parenting of GroundNetwork to Airport, since it contains
immutable data now.
2016-01-10 16:38:01 -06:00
James Turner
4befe0e6ea
Launcher: Maintain aircraft selection better
...
- when launching or toggling settings, try to keep the current
aircraft selected and in-view.
2016-01-10 13:47:57 -06:00
James Turner
b0ee3f98f3
‘only show installed checkbox’ for Qt launcher
...
- will be replaced when I think of a prettier UI, but this
feature is important to have for now.
2016-01-10 12:56:46 -06:00
James Turner
e5c6d14cef
Allow re-ordering of paths in the launcher.
...
- suggested by Gilberto, allow the user to set the order of the
scenery and aircraft paths by dragging.
2016-01-09 17:17:58 -06:00
James Turner
359f924ec9
Package variants working.
2016-01-03 20:58:03 -06:00
James Turner
fc9c43b48d
Remove FontCache from globals.
...
- access via a singleton instead.
2016-01-03 12:00:15 -06:00
Torsten Dreyer
7a69b9beff
don't always open "file opened in new browser window" popup
...
Setting /sim/gui/show-browser-open-hint to false disables the popup.
Default is true (show the popup)
2015-12-22 11:42:27 +01:00
James Turner
7afedb1702
Work on visualisation of Vias
2015-12-11 13:43:25 -06:00
James Turner
846fd21698
GUI support for VIA/Discontinuity
2015-12-11 13:43:25 -06:00
James Turner
8877b442f8
ATC/Traffic doesn’t crash reset.
...
- remove some global headers from AI headers, to avoid pollution
- change how ATC owns the ‘player’ FGAIAircraft so reset works
- ensure AIAircraft controllers are cleared on unbind for reset
2015-12-11 12:11:59 -06:00
James Turner
fc887b106b
Checkpoint - ground-net skips the cache
2015-12-01 14:01:32 +00:00
James Turner
cec1de6219
Use a transaction when indexing polylines.
2015-11-29 14:18:30 +00:00
James Turner
5e4f212b84
Remove some debugs
2015-11-27 23:25:24 +00:00
James Turner
6ee7e51af3
Clamp diagram zoom.
...
- avoid poor performance and unusable UI when zooming out
2015-11-27 23:25:11 +00:00
James Turner
242e79f5e9
Fix some coastline issues.
2015-11-27 23:02:42 +00:00
James Turner
bfb539f090
Launcher shows polygon/polyline data
2015-11-27 23:02:42 +00:00
James Turner
6a41353bdc
Remove accidentally duplicated functions.
2015-11-26 23:48:16 +00:00
James Turner
f39fc0f086
Remove a stray debug.
2015-11-26 23:48:16 +00:00
James Turner
a63fff14cc
Graphical picking of parking/helipads too.
2015-11-24 22:14:22 +00:00
James Turner
cfcdd9da45
Add helipad support to the diagram.
...
- stops crashes selecting a heliport.
2015-11-24 21:46:14 +00:00
James Turner
3cee5eea73
Initial work on rendering parking locations.
2015-11-24 21:46:14 +00:00
Rebecca N. Palmer
cc725c61de
Use SLOT for both uses of QTimer::singleShot
...
(fix Qt < 5.4 build)
2015-11-24 18:40:54 +00:00
James Turner
2d1c5d47ee
Fix MSVC2012 build
...
- multi-line QStringLiteral doesn’t work on MSVC prior to 2013. Boo.
2015-11-24 15:36:53 +00:00
James Turner
9e60dcba61
Use old-style SLOT macro for Qtimer::singleShot
...
- member-function-pointer variant was only added in 5.4
2015-11-24 08:05:17 +00:00
Rebecca N. Palmer
997a431d53
{fatal,modal}MessageBox: Use Qt on Linux when available
...
(console error messages are invisible when started from an icon)
2015-11-24 07:24:32 +00:00
James Turner
be1291f689
Change handling of default hangar / catalog.
...
- no longer re-add it on startup, add an explicit button in the UI
(will add a more obvious item to the aircraft list in a follow-up
commit)
2015-11-23 22:58:00 +00:00
James Turner
4ea093ecc4
Ensure aircraft list stays in sync
...
- when removing a catalog, use the new notification to refresh
the list, so we don’t show stale package data.
2015-11-23 17:59:16 +00:00
James Turner
3ccea681ea
Fix merge noise
2015-11-23 01:19:03 +00:00
James Turner
579881322e
Lat-lon startup location fixes.
2015-11-23 00:48:21 +00:00
James Turner
5184f3404c
Labels on large airports in the diagram
2015-11-23 00:48:21 +00:00
James Turner
e356e691b2
Cap number of airports displayed in diagrams
...
- restrict heliports / seaports by aircraft type
- prioritise by runway length
- clean up airport label names
2015-11-23 00:48:21 +00:00
James Turner
1010caeaf6
Remove some debugs.
2015-11-23 00:48:20 +00:00
James Turner
97a5e15aaf
Show paused message when starting frozen.
2015-11-23 00:48:20 +00:00
James Turner
e63a95feb9
Draw aircraft on airport diagram
2015-11-23 00:48:20 +00:00
James Turner
5fd350cb3d
Fix unproject / navaid drawing.
2015-11-23 00:48:20 +00:00
James Turner
eb06aeba97
Closed airport support.
2015-11-23 00:48:20 +00:00
James Turner
f4500e03f4
Label de-overlapping for diagrams
2015-11-23 00:48:20 +00:00
James Turner
317498fe4a
Move airplane drawing into the base class.
...
- ground work for showing airplane on airport diagram
2015-11-23 00:48:20 +00:00
James Turner
6ec9c36afb
Fix Linux compilation issues.
2015-11-23 00:48:20 +00:00
James Turner
9ab672abd8
Location history re-instaed
2015-11-23 00:48:20 +00:00
James Turner
19a8fc8822
Fixing launcher save/restore of settings.
2015-11-23 00:48:20 +00:00