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
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
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
9848930e16
Fix translations context for some strings
2018-08-19 16:50:38 +01: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
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
James Turner
23196184cc
add missing assert
2018-07-27 19:43:42 +01:00
James Turner
d2c3ecace1
Fix PNG sRGB iCC warning
2018-07-27 08:26:38 +01:00
James Turner
78a3e8d979
Expose performance/ICAO planning data to QML
2018-07-26 23:08:49 +01:00
Edward d'Auvergne
8d0db45c51
TestSuite: Shifted the non-functional src/GUI/layout-test.cxx file to the attic.
2018-07-26 15:52:07 +02:00
Edward d'Auvergne
3e4132e660
modalMessageBox: Support for the runtime headless mode.
...
The caption, message, and additional text are instead output via SG_LOG().
2018-07-26 15:52:06 +02:00
James Turner
68141f3675
Launcher shows aircraft URLs
...
(in the details view)
2018-07-26 12:03:21 +01:00
James Turner
72d5f1efa0
Basic support for structured authors data
2018-07-25 13:58:48 +01:00
James Turner
4395f96b13
Launcher: Fix helipad selection
2018-07-25 09:27:43 +01:00
James Turner
f3a1c10b24
Fix bug #2306 - missed refresh of the history model
...
The HistoryPopup was caching its contents rather early, and we failed
to tell the model when its underlying data updated. Connect that
through so the history model refreshes also.
https://sourceforge.net/p/flightgear/codetickets/2036/
2018-07-23 09:34:31 +01:00
James Turner
af380e0d8c
Fix glitch in custom start date/time persistence
2018-07-19 09:58:44 +01:00
James Turner
3422caa4d2
Launcher: Fix default runway selection
2018-07-19 09:58:44 +01:00
James Turner
86786496a5
Working on airport entry
2018-07-19 09:58:44 +01:00
James Turner
9098219032
Better units handling in the launcher / UI
2018-07-19 09:58:44 +01:00
James Turner
9716274612
Hacking UI for FP entry
2018-07-19 09:58:43 +01:00
James Turner
b24ba303dc
Fix a bug restoring a lat-lon location from history
...
https://sourceforge.net/p/flightgear/codetickets/2035/
2018-07-05 00:42:18 +01:00
James Turner
0f83a71860
Launcher search box clear icon
2018-07-05 00:41:42 +01:00
James Turner
916f2d7d76
Fix yes-no panel transparency
2018-07-05 00:17:05 +01:00
James Turner
b177d407f8
Launcher: fix setting altitude for lat/lon
...
https://sourceforge.net/p/flightgear/codetickets/2034/
2018-07-04 23:17:18 +01:00
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