James Turner
ab5342888b
Launcher: Install-scenery dialog supports .zips
...
Use the improved Simgear archive support to allow the WS2.0 zips
to be extracted
2018-07-04 11:36:30 +01:00
James Turner
728a5b13db
Tweak addons catalog styling
...
Refactor into a separate delegate component to make things cleaner
2018-07-04 09:54:26 +01:00
James Turner
81f4ce5ea8
Opt out of Qt's DPI scaling by default
2018-07-03 09:49:00 +01:00
James Turner
6dd374408c
Launcher: keyboard shortcuts
...
Use The Qt 5.6 Shortcut item, but via a conditional file so
we don’t touch the base Qt requirement. (This means no shortcuts
when using Qt 5.4 or 5.5, oh well)
2018-07-03 09:36:30 +01:00
James Turner
abcbbe897f
Ensure we build on Qt 5.4 (no qInfo)
2018-07-03 09:35:26 +01:00
James Turner
5c3c4a6733
Fix property-inspector Nasal module hookup
...
We need to clone the binding nodes so that we
can set / override the module on each binding,
when opening a dialog multiple times.
2018-07-03 00:34:33 +01:00
James Turner
68a2e80cb1
Add another human name for a state
...
Found this in the Citation Bravo, missing ‘taxi’
2018-07-02 23:15:01 +01:00
James Turner
12dac05d38
Launcher: experimenting with SVG icons
2018-07-02 23:15:01 +01:00
James Turner
c684701b7f
Fix 'restart the app' functionality on Windows
...
The read-only lock in fghome was tripping things up. Explicitly
release the lock in the restart-the-app situation.
2018-07-02 23:13:36 +01:00
James Turner
08c7707782
Launcher: altitude entry for runway-approach
2018-07-02 16:45:17 +01:00
James Turner
f76be60459
Confirm aircraft uninstallation
2018-07-02 14:40:18 +01:00
James Turner
85024d0f75
Improve aircraft list hightling
...
When selecting an aircraft programtically, don't animate the move
2018-07-02 14:31:05 +01:00
James Turner
946366a9d0
Fix aircraft list divider margin
2018-07-02 14:17:05 +01:00
James Turner
4752d266c6
Save settings on launcher exit
2018-07-02 14:13:00 +01:00
James Turner
8f9afcd796
Fix jumping aircraft when selecting variants
...
Always sort on the primary aircraft name, otherwise select a variant
triggers a re-sort of the list which is confusing for the user.
2018-07-02 14:11:01 +01:00
James Turner
a311e744ff
Fix variant poup on Linux
...
Maybe WM specific, but sizing the window late seems to trigger a bug. Fixes
repeated variant selection on Ubuntu for me.
2018-07-02 14:09:52 +01:00
James Turner
6475ae32b1
Launcher: nicer min-window-size computation
2018-07-02 11:59:01 +01:00
James Turner
b7e98caecf
Ensure the C172P tutorial airport (PHTO) is always listed
...
Adjust the location history so the default and tutorial airports always appear at
history locations 0 and 1.
2018-07-02 11:50:48 +01:00
James Turner
33ed13f889
Fix menu width when a header item is present.
2018-07-02 11:50:48 +01:00
James Turner
d126c5a3da
Tweak launcher location-arg knock-out mode.
...
Allow setting of various secondary location args without
knocking out the main ones. The user arg values still override, but
this allows selecting a runway (for example) and manually setting
altitude / heading / offset if desired.
2018-06-29 14:56:05 +01:00
James Turner
7a0483281d
Aircraft update list gets its own tab
2018-06-28 23:45:52 +01:00
James Turner
2212e9342f
Launcher: increase precision of lat/lon args
2018-06-28 22:51:53 +01:00
James Turner
1a7f513fb1
Allow setting VC for on-final start
2018-06-28 16:54:21 +01:00
James Turner
aa61c55168
Disable on-final for heliport starts
2018-06-28 16:54:21 +01:00
James Turner
f6106e39d1
Launcher window-state saving
2018-06-28 16:54:21 +01:00
James Turner
7f554bd0fd
Fix saved config naming
2018-06-28 16:54:21 +01:00
James Turner
7d7dc725a8
Bug fixes for location saving
2018-06-28 16:54:21 +01:00
James Turner
5ebee55632
Launcher can save/load configs to disk
...
Aircraft state is also persisted to configs and on flying
2018-06-28 16:54:21 +01:00
James Turner
e49b1328c8
Route-manager waypoint-list lat-lon formatting
...
Use the new Simgear helpers to make the lat-lon formatting the
waypoint list dialog nicer.
2018-06-28 16:44:10 +01:00
James Turner
c86ed96433
Fix a compilation issue reported by Dany
2018-06-28 12:05:49 +01:00
James Turner
2573644518
Many small style fixes
2018-06-28 11:43:40 +01:00
James Turner
cf09e3f138
Tiny style tweak
2018-06-28 09:22:29 +01:00
James Turner
82f99a6a9e
Fix popup-width warning
2018-06-28 09:07:51 +01:00
James Turner
81b9105a8f
Show location history on 'back'
2018-06-27 23:33:16 +01:00
James Turner
ce15ca666f
Remove obsolete files
2018-06-27 23:18:18 +01:00
James Turner
2d6a6cd59e
Fix JS warning in Sidebar
2018-06-27 23:02:58 +01:00
James Turner
6535846732
Launcher styling tweaks
2018-06-27 16:46:22 +01:00
James Turner
2f12c0b0bd
Trim aircraft names to fix alphabetical sort
...
(Note, only for locl acft, hangar acft need a seperate fix)
2018-06-26 17:35:31 +01:00
James Turner
5229f8eabf
Basic menu for the launcher
2018-06-26 17:13:28 +01:00
James Turner
31f80e2431
View-command-line page marks overriden args
...
We mark up launcher arguments which are over-ridden
2018-06-26 11:20:10 +01:00
James Turner
5ada6d46d9
Improve launcher feedback when location is disabled
...
Also improve warning text about conflicting args
2018-06-26 11:20:10 +01:00
James Turner
92ab8549bd
Add ellipsis icon for QQ2 menu
...
Copying the same icon as Spotify and Chrome :)
2018-06-26 11:17:36 +01:00
James Turner
268f9c9c33
Launcher: ensure extra args override launcher ones
...
Categorise arguments to ensure user-specified ones take precedence
over values set by the launcher.
When any positional arg is set, exclude all positional ones from being
set at all, to prevent strange interactions.
2018-06-25 23:06:20 +01:00
James Turner
9098e47664
Launcher: use new SGGeod <-> string functions
...
This relies on the latest Simgear to provide these functions.
2018-06-25 18:12:43 +01:00
James Turner
ca785f01e5
Launcher: Fix a crash in the new location code
2018-06-25 16:40:00 +01:00
James Turner
0987b82fa8
Launcher styling tweaks
2018-06-24 11:15:01 +01:00
James Turner
c38e820756
Launcher: fix Windows build
2018-06-23 17:55:39 +01:00
James Turner
1bf52662ae
Launcher converted to QQ2
...
This simplifies the launcher's rendering since the widget-based
code is gone, various things get hooked up as a result. Styling
fixes everywhere as well.
Menubar on Linux/Windows needs to be re-added.
2018-06-23 17:14:21 +01:00
James Turner
01f05b5383
Launcher: styling improvements everywhere
...
Use a standard text component to ensure the base font size can be
controlled centrally.
2018-06-21 22:54:37 +01:00
James Turner
225a128540
Consistent capitalisation of ACTIVE
2018-06-21 17:34:16 +01:00
James Turner
24d877fc18
Launcher: experiment with HiDPI airport icons
2018-06-21 16:16:35 +01:00
James Turner
240ac0f458
Launcher: optional alt/spd/hdg select
...
Bring this feature up to parity with the release branch.
2018-06-21 15:27:48 +01:00
James Turner
198f9ccb70
Tweaks to location search based on feedback
2018-06-21 14:34:05 +01:00
James Turner
ccabc052bc
Restore alphabetical sort of aircraft
2018-06-16 22:52:59 +01:00
James Turner
670bc17def
Launcher: improve transparent panel legibility
2018-06-16 22:17:45 +01:00
James Turner
e8ef24a54f
MSVC warning fixes
2018-06-16 13:03:36 +01:00
James Turner
dde2ef5972
Fix compilation on Qt 5.4
2018-06-15 10:33:11 +01:00
James Turner
6f8a788d80
Launcher bugfix: custom download dirs
...
Partial fixes for:
https://sourceforge.net/p/flightgear/codetickets/2019/
But further work needed on Windows I expect, will do that now.
2018-06-14 16:28:03 +01:00
James Turner
2e438e357e
Launcher: fix scenery path re-ordering
2018-06-13 11:03:06 +01:00
James Turner
c3414a63c2
Fix the launcher summary license link
2018-06-13 10:55:04 +01:00
James Turner
29ec23e582
Ensure launcher terraysync setting is used
...
Terrasync state is auto-saved, so we need to force the value each start,
to avoid a previous value getting used.
2018-06-13 10:52:35 +01:00
James Turner
b2f90fbfa4
Launcher: location page in QtQuick
...
This moves the last page into QQ2 implementation, in preparation
for making the top-level UI be a QQuickWindow.
2018-06-13 10:01:04 +01:00
James Turner
7e8b1b67e7
JS comparison type safety warning fixes
2018-06-13 10:01:04 +01:00
James Turner
e3fd7f7d61
Launcher warns when setting conflicting args
...
Display a warning when the user tries to set arguments in additional
settings which the launcher will also set / conflict with. Blacklist
is still evolving, and we don’t actually prevent the user from running,
since maybe they are doing something special
2018-06-13 10:01:04 +01:00
James Turner
100155e37e
Launcher: improve state handling
...
Fix some dumb bugs and improve selection of states inside the launcher
2018-06-01 15:11:30 +01:00
James Turner
b52cdf8723
Vector helipad symbol
...
Nicer rendering when zooming in, and easier to indicate the selected
helipad, in the same was as runways
2018-06-01 15:11:30 +01:00
James Turner
19ec0027e8
Launcher: heliport / helipad fixes
2018-05-31 22:12:08 +02:00
James Turner
3da6d42945
Launcher: fix location not saving
...
When the history was empty, the ‘don’t re-insert’ logic was breaking,
because the beginning and end of the vector range were equivalent.
2018-05-31 22:12:08 +02:00
James Turner
6906ce40fd
Launcher: show navaid diagram for lat-lon position
...
Another change broke showing the navaid diagram when entering a lat,lon
position in the launcher
2018-05-28 22:43:05 +02:00
James Turner
ea9ae959e4
PUI: simplify dialog binding handling
...
Fixes a perf issue when opening and closing dialogs which uses
bindings, reported by Michael Danilov - huge thanks for his help
in tracking this down.
This bug was caused by the SGBinding ‘don’t delete properties’ change,
since the PUI code was copying nodes to work-around that problem. With
SGBinding fixed, the copying caused huge numbers of nodes under
/sim/bindings/gui
2018-05-28 19:51:41 +02:00
James Turner
16b8335a5e
Launcher MP fixes:
...
- connecting works
- no instant exit with an invalid/missing server
2018-05-28 18:39:35 +02:00
James Turner
1b5d557c86
Fix launcher adding aircraft folder with ‘Aircraft’ subdir
...
We validate the modified path but didn’t actually use it.
2018-05-23 10:24:11 +01:00
James Turner
1555e1d6cb
Launcher: fixes for lingering previews
...
Also better fix for some ‘assign Qurl from undefined’ warnings
2018-05-09 20:11:58 +01:00
James Turner
8738e18921
Launcher: spinner when adding a catalog
2018-05-09 19:43:44 +01:00
James Turner
57a866fc60
Scrollbar for launcher settings
2018-05-09 19:35:24 +01:00
James Turner
b6f7f17c5c
Launcher: fix warning about Qurl / undefined
2018-05-09 19:35:12 +01:00
James Turner
607cef530a
Add the default tutorial airport to the launcher
2018-05-08 23:18:19 +01:00
James Turner
d4cd82b521
Fixes for Qt 5.4 compat
2018-05-08 22:17:07 +01:00
James Turner
ee48fddd5e
Compute scrollbar extent using alternate props
...
This computation is close enough, and removes the need for private
headers.
2018-05-08 22:16:53 +01:00
James Turner
0da17d895c
Fix ‘add-default-catalog’ flow from aircraft list
2018-05-08 06:52:07 +01:00
James Turner
42936f4f22
Launcher: fix date-time picker
2018-05-07 22:19:34 +01:00
James Turner
71a1348037
UI tweaks for the launcher
2018-05-07 16:53:25 +01:00
James Turner
e45c93dbc7
launcher: explicitly request desktop OpenGL
...
This should help with a white-screen in the launcher Gijs reported,
due to our Optimus selection symbol interacting weirdly with the
dynamic OpenGL detection in Qt
2018-04-27 09:53:49 +01:00
James Turner
1fcd86a8a9
Launcher: fix missing import for Style
2018-04-25 16:24:14 +01:00
James Turner
7ae8137b77
Launcher: nicer looking summary transparency
2018-04-16 15:41:48 +01:00
James Turner
7431fb12b3
Launcher UI feedback: mark history buttons as disabled
2018-04-16 15:13:06 +01:00
James Turner
8a390dab2a
Add-ons page UI improvements based on feedback
2018-04-16 15:04:21 +01:00
James Turner
361225f919
Launcher: fix the descriptionForState/null warning
2018-04-09 17:13:15 +01:00
James Turner
9fbd879c9f
Remove a stray log message
2018-04-09 15:52:14 +01:00
James Turner
72f9ff3735
Remove obsolete Launcher files
2018-04-09 15:48:43 +01:00
James Turner
a94d893124
Styling tweak for launcher hangars list
2018-04-09 11:17:15 +01:00
James Turner
4878b28a22
Fix MSVC build
2018-04-09 01:29:01 +01:00
James Turner
205fadbff3
Stubbing out Add-ons controller
...
Also CatalogListModel stubs
2018-04-08 23:52:27 +01:00
James Turner
01f840487d
Split launcher code to fix ownership issues
...
This avoids passing a QmainWindow into the QML engines, which don’t
seem to handle that very well.
2018-03-22 13:52:03 +00:00
James Turner
f75f413970
Ensure launcher AW toggle overrides the sim setting
...
Set the property value to false explicitly when BW is requested in
the launcher, otherwise the auto-saved value takes over.
2018-03-22 11:59:15 +00:00
James Turner
28d8317242
Work-arounds for launcher crashes on ‘fly’
...
Two are enabled, one is disabled for people to test.
2018-03-22 09:32:30 +00:00
James Turner
1c78c65b19
Popup an error box when QtQuick errors occur.
2018-03-20 16:32:31 +00:00
James Turner
010bfc8378
Fix a compile error reported by Edward
2018-03-19 22:33:17 +00:00
James Turner
cb4a823836
Missed some files fixing QQ2 version import
2018-03-19 22:32:23 +00:00
James Turner
4c2e52c2dc
Standardise QtQuick version to 2.4
...
Will fix an issue reported on the forum where a 2.7 dep crept it.
2018-03-19 08:22:11 +00:00
James Turner
e894cb5188
Fix case-sensitivity
2018-03-19 00:36:49 +00:00
James Turner
d3299a1f71
Remove references to deleted files
2018-03-18 22:09:01 +00:00
James Turner
024ffa5e9d
Remove obsolete launcher files
...
Clean-up now widget-based settings are gone
2018-03-18 17:00:54 +00:00
James Turner
19ae26164a
Summary page converted to QtQuick
2018-03-18 16:39:17 +00:00
James Turner
eaf89ab23b
Avoid use of Connections.enabled for Qt < 5.7 compat
2018-03-18 16:25:48 +00:00
James Turner
7339e261e9
Direct file dialog (no need for QtQuick Controls)
...
This should simplify the needed packages on Debian, Ubuntu, etc
2018-03-18 16:18:17 +00:00
James Turner
d92647b364
Fix duplicate entries in threaded location search
2018-03-16 10:02:20 +00:00
James Turner
fa72d8dd06
Popup window tracking helper hooked up
2018-03-11 11:10:02 +00:00
James Turner
37dc418ce1
QtQuick launcher settings implementation
...
Moves the settings and environment pages of the launcher into QQ2,
and provides more QtQuick items to use.
2018-03-11 11:10:02 +00:00
James Turner
7b7e50741f
Launcher: fix preview image aspect ratio
...
Accidentally left in a hard-coded 16:9 ratio, no wonder some images got
squished. Shuttle is now re-elongated verticallitaly :)
2018-03-06 18:34:54 +00:00
James Turner
5020e4655e
Launcher: explicit sizes in aircraft list
...
Fix some scaling issues when mixing pixel- and point- sized fonts,
especially on Windows
2018-03-05 10:49:30 +00:00
James Turner
7f815c4c51
Remove non-functional transparency from PUI map
...
This alpha blending never worked, and now it really doesn’t work, so
remove it (PUI map is not long for this world, anyway)
2018-03-01 15:55:41 +00:00
James Turner
6e6fafd5b4
Launcher: fix on-disk aircraft variant previews
...
This fixes e.g the issue with the Shuttle reported by Thorsten, variant
previews are now shown correctly.
2018-03-01 15:39:46 +00:00
James Turner
e571564c59
Launcher: tweak to be compatible with older Qt
2018-03-01 11:34:53 +00:00
James Turner
f760b8cd8f
Launcher: fixes for invalid catalog handling
2018-02-28 17:56:40 +00:00
Florent Rougon
a9084ac561
Add-ons: make NewGUI read dialogs from $addon_dir/gui/dialogs
...
As for aircraft, an add-on can now add its custom dialogs in
$addon_dir/gui/dialogs. This commit makes NewGUI consider this directory
as a dialog-providing one for each registered add-on.
2018-02-27 13:17:42 +01:00
James Turner
4f96039e70
Fix a crash when package data is missing
...
This may explain some of the erratic startup crashes, due to the
master catalog being out of date for 2018.*
2018-02-27 11:33:40 +00:00
James Turner
234320fe9d
Launcher: basic aircraft state selection
...
Automatic selection in the launcher is disabled for now, since
it needs more testing before release, but the basic UI for selection
is straightforward enough to throw in.
2018-02-11 21:28:25 +00:00
James Turner
e4343f4f46
Launcher: reduce warnings loading thumbnail data
2018-01-30 18:40:41 +00:00
James Turner
b6cd4c8726
Launcher: show aircraft URI and local path
...
Shift-clicking on the compact delegate will show the local path and
URI of the aircraft, to identify the source.
2018-01-30 18:40:21 +00:00
James Turner
db57b12723
Remove dead code
2018-01-30 17:25:08 +00:00
James Turner
f9e113d811
Fix jumping aircraft list when editing ratings
2018-01-30 17:24:41 +00:00
James Turner
9dc1c1bbcf
Fix scrolling of aircraft details view
2018-01-30 17:24:07 +00:00
James Turner
c035b3e9e3
Better fix for Canvas-in-PUI compositing
...
This seems to work everywhere, let’s try it.
2018-01-28 16:10:18 +00:00
James Turner
f076fe1c1b
Fix unwanted waypoint list transparency
...
Ticket: https://sourceforge.net/p/flightgear/codetickets/2009/
2018-01-28 15:59:51 +00:00
James Turner
c1947b6bc4
Fix PUICamera compilation
...
Some blending issues remain with Canvas-in-PUI, waiting to hear back
if Thomas has nay great ideas on those.
2018-01-28 14:23:22 +00:00
James Turner
e186fc6e2a
Launcher: avoid MP start with no server selected.
...
Default to first server in the list, if there is no valid previous
server to restore.
2018-01-28 12:35:12 +00:00
James Turner
821ae89f64
Fix aircraft-list selection bug after searching
...
Reported by Brendan Black, thanks!
2018-01-14 15:04:55 +00:00
James Turner
1493c0adc8
Fix missing style import in the delegate
2018-01-12 22:18:59 +00:00
James Turner
d2cb99ba1d
Launcher: fixes for scanning local aircraft dirs
...
When multiple ‘added items’ signals occur, don’t loose some entries,
always pull the full list from the aircraft cache.
2018-01-07 14:19:28 +00:00
James Turner
d98cd3a717
Launcher: move QML files to a sub-directory
2017-12-15 14:38:23 +00:00
James Turner
f964728422
Launcher aircraft list: show counts
2017-12-15 14:38:23 +00:00
James Turner
595b0d16da
Launcher aircraft: fix a layout bug
2017-12-15 14:38:23 +00:00
James Turner
88940eb6bc
Launcher: fix some warnings from QML
2017-12-09 09:46:14 +00:00
James Turner
58fa9fcaa7
Launcher: fix for unreliable aircraft-dir scanning
2017-12-09 09:32:25 +00:00
James Turner
d127a6ff9a
Launcher: fix on-disk variant enumeration
2017-12-08 23:18:42 +00:00
James Turner
e6e055dbb0
Launcher: preview image loading feedback
...
Expose the loading state as a property so the UI can show some feedback
when the image is still loading.
2017-12-08 16:14:47 +00:00
James Turner
033d5f65d5
Usability tweaks for editing ratings
...
Adjust ratings text now has mouse hover, and sliders can be clicked
on the track to adjust the value directly
2017-12-08 16:14:47 +00:00
James Turner
ac50a3c7ed
Restore OSG 3.2 compilation support
2017-12-05 21:39:30 +00:00
James Turner
3ffed7d867
Style singleton for the QML UI
2017-12-05 21:30:09 +00:00
James Turner
31c781257b
Remove obsolete UI files
2017-12-04 22:34:39 +00:00
James Turner
d34edaa569
Pure QtQuick aircraft-UI
...
Moves previews, searching, rating handling and extended aircraft
information entirely into QQ. Many cosmetic tweaks and improvements
still to come.
2017-12-04 22:34:39 +00:00
James Turner
041b9527d3
Seperate aircraft cache from the model.
...
Allows exposing aircraft data to QML (via a helper object) outside the
context of the model.
2017-12-04 21:48:20 +00:00
Gijs de Rooy
8ca9dd89c9
QtLauncher: fix aircraft ratings
...
Index of rating indicators starts at 0 while ratings that correspond to a point/star/dot start at 1
2017-11-22 16:35:21 +01:00
Florent Rougon
0537d569d5
Remove method FGAirport::isAirportType()
...
FGAirport::isAirportType() was redundant with
FGPositioned::isAirportType(). Remove the former and change existing
calls to use the latter.
2017-11-16 20:28:00 +01:00
James Turner
8fc04fdfb3
Fix Windows build for launcher changes
2017-11-15 22:04:03 +00:00
James Turner
2d663f2509
Fix crash with adding catalogs in the launcher
...
Change how we get notified about catalog changes, so we can remove
our hook and hence not leave a dangling pointer.
Fixes https://sourceforge.net/p/flightgear/codetickets/1994/
2017-11-15 21:46:57 +00:00
James Turner
72ca36535a
Fix the PUI map ruler feature, use right-click
...
The OSG Ctrl to right-click mapping was breaking this on Mac, but
changing that will break other things, so move the ruler feature from
‘ctrl left click’ to a simple ‘right click’ which ends up being the
same on Mac anyway.
2017-11-15 17:02:25 +00:00
James Turner
78bacefb60
Advanced weather support in the launcher
2017-11-14 17:54:22 +00:00
James Turner
daedf1e546
PUI dialog correct positioning on HiDPI displays
...
Apply the device-pixel-ratio when calculating the initial position of
PUI dialogs, so they appear correctly (eg, centered) when running with
device-pixel-ratio != 1.0
2017-11-14 17:30:31 +00:00
James Turner
b870b3f022
Fix wrong launcher aircraft name on startup
...
The mapping from aircraft URI to name was wrong for local (non-package)
aircraft, as spotted by Thorsten Renk. Note other data (thumbnail) is
still incorrect, but another change I have pending will replace this
code anyway so only doing the simple fix for now.
2017-11-14 17:30:31 +00:00
James Turner
e090427591
Better fix for CanvasWidget transparency
...
Use osg GLExtensions to retrieve glBlendFuncSeperate on Win32
2017-10-22 19:25:46 +01:00
James Turner
c1df6e9d15
Hack to fix Windows build.
...
glBlendFuncSeperate will need some ugly trick to use in CanvasWidget, I better find another way.
2017-10-20 17:25:06 +01:00
James Turner
804dc4e74a
Steps to make PUI optional, HiDPI tolerant.
...
Move all PUI event and rendering into a custom camera, which can be
rendered via an FBO to account for display-resolution scaling (HiDPI).
Start wrapping PUI calls in #ifdefs so PUI can be disabled at compile
time; a run-time switch is trivial now but not implemented yet.
2017-10-20 12:10:51 +01:00
Richard Harrison
9d590feaf3
Add support for fonts from the property tree for PUI dialog.
...
This permits, for example the following
<font>
<property>sim/gui/selected-style/fonts/nasal-editor</property>
</font>
2017-10-15 21:50:41 +02:00
Richard Harrison
5af55a1409
Copy currently selected gui style tree to sim/gui/selected-style
...
This makes it considerably easier to reference an item from the currently selected style without having to lookup the selected style index and then use that to select the appropriate element from the styles/ tree
2017-10-15 21:49:40 +02:00
James Turner
2d5f56a05d
Fix build with Qt < 5.6
2017-10-09 12:15:40 +01:00
James Turner
2e37fabd80
Fix crash with Qt < 5.9 in thumbnail items.
...
Qt 5.4, etc will work now
2017-10-09 10:37:50 +01:00
James Turner
e022e4fed5
Command / property bridges for QML / QtQuick
2017-10-05 12:38:27 +01:00
James Turner
2eab935dff
Canvas proxy for QtQuick rendering
...
Has zero testing so far, still a work in progress.
2017-10-05 12:37:43 +01:00
James Turner
45cb6849b2
QtQuick drawable for OpenSceneGraph
...
Still work in progress, especially different threading modes are not
supported yet, and may crash doing QSG synchronisation.
2017-10-05 12:36:19 +01:00
James Turner
386c13a84d
Fix Windows compilation
2017-09-29 09:51:20 +01:00
James Turner
78d735a97b
Fix Linux compilation
2017-09-28 15:49:42 +01:00
James Turner
4c4cfb3b44
Clean up CocoaMenuBar code
...
- remove use of Boost
- remove work-around for macOS < 10.7
2017-09-28 14:02:53 +01:00
James Turner
3b1b43f864
Include default airport in the location history
...
Only a quick hack, need to show more context to make this really
useful as a feature.
2017-09-26 16:52:48 +01:00
James Turner
c47325183c
Simplify Qt version checks by requiring 5.4
2017-09-26 16:52:48 +01:00
James Turner
3a8d3506d6
Replace launcher aircraft list with QtQuick version
...
Improves various flow / layout / usability issues, since delegates
in ListView can do full event interaction.
2017-09-26 16:52:48 +01:00
James Turner
6db901a67f
Add missing tr/qsTr wrappers to the launcher
...
Ensure all user-facing strings are annotated with translation macros,
so they can be translated soon.
2017-09-22 09:32:47 +01:00
James Turner
c4aa3434ab
Fix WS 2.0 paths to live inside a Terrain/ prefix
2017-09-21 17:48:30 +01:00
James Turner
32cc9be007
Enable auto-save migration.
...
When performing the migration, let the user know it happened, and to
be alert for any issues that might occur.
2017-09-20 17:57:25 +01:00
James Turner
351f6063c9
Permit more screenshots. (More than 1000)
2017-09-19 06:55:22 +01:00
James Turner
b6bfe45759
Change how anti-aliasing is requested by the launcher.
...
This seems to fix https://sourceforge.net/p/flightgear/codetickets/1971/
for me, but I have some reservations about my testing of this, so
pushing this change to get wider feedback.
2017-08-29 14:22:32 +01:00
James Turner
c000f1fb43
Fix back-slashes in quoted args in the launcher
...
Logic was messed up, back-slashed got ignored due to the
escaping logic.
2017-07-25 10:00:31 +01:00
James Turner
5ba953ad61
Fix custom download-dir in launcher
...
Updating the value takes immediately, as it did in 2017.1 and prior.
Additionally, passing —download-dir on the command-line is detected
and handled specially; the UI option is disabled, and no changes are
made to the value passed in. (The launcher does not override the value
with any value it has saved)
2017-07-19 19:24:33 +01:00
James Turner
8fdb56a185
Only qInfo was added in 5.5
...
Other logging operators are present in 5.0, so simplify this code.
2017-07-19 13:21:06 +01:00
Torsten Dreyer
c9eff67409
Hopefully fix "qInfo not defined"
2017-07-07 11:50:06 +02:00
Richard Harrison
2c8aad12ba
Model relative property tree root binding.
...
Change fgcommand to take an optional property tree root element.
This fixes the animation bindings to use the defined property tree root - to support multiplayer (or other) model that can bind to the correct part of the property tree.
Requires a corresponding fix in sg to allow the command methods to take an optional root parameter.
What this means is that when inside someone else's multiplayer model (e.g. backseat, or co-pilot), the multipalyer (AI) model will correctly modify properties inside the correct part of the property tree inside (/ai), rather than modifying the properties inside the same part of the tree as the non-ai model.
This means that a properly setup model will operate within it's own space in the property tree; and permit more generic multiplayer code to be written.
This is probably responsible for some of the pollution of the root property tree with MP aircraft properties.
2017-07-05 11:37:17 +02:00
James Turner
aef9bc4e06
Launcher: more robust preview downloading.
...
Tolerate download failures, which seem to happen due to Ibiblio rate-
limiting, more gracefully.
2017-06-21 23:50:04 +01:00
James Turner
0c59583b32
Fix intermittent crash on exit with Qt+XCB
...
We can still crash on exit(-1) code paths since we can’t run this from
atexit, but at least the non-error paths are ok.
2017-06-07 17:52:47 +01:00
James Turner
7951abefe2
Auto-select built-in FGdata when possible.
...
As spotted by Thorsten, reduce user annoyance by asking about FGData
when the built-in data is acceptable. (Advanced users can use the
launcher or other options to change FGdata as normal).
2017-05-30 10:02:41 +01:00
James Turner
27b34182c7
Launcher: Enable DPI-scaling
...
(for Windows especially)
2017-05-22 08:53:27 +01:00
James Turner
15c84139fa
Fix launcher failure with custom MP server
...
When the user specified an MP server without providing a port, the
launcher would pass a malformed command line, leading the the simulator
bailing out.
(Should go to the release branch)
2017-05-22 08:53:27 +01:00
James Turner
18b8b59af6
Validate MP callsign with a reg-exp
2017-05-22 08:53:27 +01:00
James Turner
42508619ee
Validation of METAR in the launcher
2017-05-22 08:53:27 +01:00
James Turner
3c8bedb9c3
Make launcher summary version dynamic.
2017-05-16 13:25:51 +01:00
Florent Rougon
4b48aca411
Rename flightgear.desktop to org.flightgear.FlightGear.desktop; improve it
...
This closes ticket #1961
(<https://sourceforge.net/p/flightgear/codetickets/1961/ >). To be sure
the file is found, call app->setDesktopFileName() in
src/GUI/QtLauncher.cxx if the Qt version is 5.7 or later.
See <https://sourceforge.net/p/flightgear/mailman/message/35840997/ > and
<https://sourceforge.net/p/flightgear/mailman/message/35841007/ > for the
small changes to the desktop file contents.
2017-05-16 13:58:37 +02:00
Florent Rougon
6ef8b5bf94
Qt launcher: more spelling fixes
2017-05-13 17:17:32 +02:00
Alessandro Menti
42495e3251
Qt launcher: spelling fixes
2017-05-13 10:24:17 +02:00
James Turner
00845b17b9
Prevent PUI menubar obscuring startup tips
...
Add an additional visibility flag to the menubar implementations,
conditional on whether or not the menubar overlaps the window content.
(I.e for PUI but not Cocoa). This flag is linked to a new property
/sim/menubar/overlap-hide, which the renderer drives off the splash-
screen visibility.
2017-05-11 08:39:48 +01:00
Florent Rougon
4dc2e4fc09
Disable use of the WindowsFileDialog class
...
On Windows, use:
- QtFileDialog if FG was built with Qt support;
- PUIFileDialog otherwise.
Behavior on other platforms is unchanged. This change is motivated by
the fact that some Windows users have reported[1][2] weird,
non-deterministic behavior of WindowsFileDialog and unfortunately, no
one seems to be willing and able to fix the problem. The Qt
implementation comes for free and should be quite robust. Of course, if
someone wants to maintain the WindowsFileDialog class again, the change
can be reverted.
See discussion at [3].
[1] https://forum.flightgear.org/viewtopic.php?f=25&t=31945
[2] https://sourceforge.net/p/flightgear/mailman/message/35761650/
[3] https://sourceforge.net/p/flightgear/mailman/message/35759819/
2017-05-11 00:12:20 +02:00
Alessandro Menti
c00f98b0d1
QT Launcher spelling/style fixes
...
Fix a couple of spelling mistakes, as well as some terms which are
styled differently in the main FG interface.
2017-05-08 21:29:42 +02:00
James Turner
cbdbe2882b
Fix disabled appearance of toolbox buttons.
...
Ensures ‘fly’ button appears disabled as appropriate in the
launcher.
2017-04-19 13:31:45 +01:00
James Turner
a05860608b
Fix erroneous button highlighting.
2017-04-19 13:12:48 +01:00
James Turner
b006ef5c78
Launcher: fix navaid map default scaling.
2017-04-15 14:18:02 +01:00
James Turner
f2d5f18da6
Title label for location airport/nav pages.
2017-04-15 14:18:02 +01:00
James Turner
5fa9242d7a
Launcher: fix handling of prop custom args.
...
The parser wasn’t special case these, and they have to be handled
differently to work now.
2017-04-15 08:39:18 +01:00
James Turner
ec9989c244
FIx build issue with previous commit.
2017-04-14 22:16:22 +01:00
James Turner
95a6d31e18
Launcher: update all aircraft UI.
...
Replaces more complex previous attempt, which was also not hooked
up properly, ooops.
2017-04-14 18:31:23 +01:00
James Turner
c19fc6bc06
Launcher: add ‘show console’ setting on Windows
...
This entailed fixing the handling of the visibility property with an
override from the QWidget basic version.
2017-04-14 17:36:28 +01:00
James Turner
ac38f29ae3
Launcher: exit/quit item on non-Mac
...
(Mac gets one automatically)
2017-04-13 13:01:29 +01:00