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