James Turner
e090427591
Better fix for CanvasWidget transparency
...
Use osg GLExtensions to retrieve glBlendFuncSeperate on Win32
2017-10-22 19:25:46 +01:00
Alessandro Menti
89ca665bfb
PUICamera Linux compilation fixes
...
* Correct the filename case in the #include directive in PUICamera.cxx,
so that compilation succeeds on case-sensitive filesystems.
* Add the PU_SCROLL_UP_BUTTON and PU_SCROLL_DOWN_BUTTON #defines, as
they are missing from some systems which ship old versions of the PUI
library.
2017-10-21 11:20:07 +02: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
Stuart Buchanan
02ceb8832a
Correct spacing of settings migration dialog
2017-10-13 17:36:20 +01: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
907420d3f4
Windows / non-Qt build fixes
2017-10-05 15:02:30 +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
7824571ec2
One more tweak for QtQuick header detection.
2017-10-04 12:07:12 +01:00
James Turner
e6402f505a
Help debugging missing QtQuick headers.
2017-10-04 11:12:36 +01:00
James Turner
343fce4470
Improve mouse-warping with GraphicsWindowQt5
2017-10-03 08:21:15 +01:00
James Turner
0331180e4f
Fix for UCrt runtime packaging, from Erik
2017-10-02 12:30:56 +01:00
James Turner
b7a2e993b6
Fix crash in traffic code
...
Hit an exception where no runway node was found creating the landing taxi.
Probably should not happen but anyway let's not crash
2017-09-29 12:49:22 +01:00
James Turner
a4f1f8aca1
Fix error in setSpeed / setAltitude from Nasal
...
https://sourceforge.net/p/flightgear/codetickets/1992/
2017-09-29 12:39:30 +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
948435a465
Fix Ubuntu lib64 handling / Cmake 3.7
2017-09-28 15:12:06 +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
a89d747348
Unused include
2017-09-26 16:52:48 +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
06d206828a
De-boost-ify position-init code
...
Also remove some now redundant parking-availability code, which is now
covered inside the dynamics code.
2017-09-26 16:52:48 +01:00
James Turner
a8e1fd4fd0
Move the user aircraft proxy into the AIManger
...
This should ensure there is always a proxy for the user in the AI
world for parking and ATC purposes.
2017-09-26 16:52:48 +01:00
James Turner
561e39e94f
Quiet a log message.
2017-09-26 16:52:48 +01:00
James Turner
bb6510ad68
De-Boost-ify the AIManger, modernise to C++11
2017-09-26 16:52:48 +01:00
James Turner
972af3f254
Parking selection avoids AIObjects
...
This ensures AITraffic aircraft avoid parking stands occupied by
other AI objects, such as the user or MP aircraft
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
a005273724
Quiet a warning loading some ground-nets
2017-09-22 09:33:03 +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
69934e04a6
Probably fix for Bug 1972 - AI parking positions
...
https://sourceforge.net/p/flightgear/codetickets/1972/
2017-09-21 18:37:43 +01:00
James Turner
66eb3d2690
Use a unique_ptr to manage FGAIFlightPlan
2017-09-21 18:37:14 +01:00
James Turner
c4aa3434ab
Fix WS 2.0 paths to live inside a Terrain/ prefix
2017-09-21 17:48:30 +01:00
Florent Rougon
5fbf5fceab
Fix build error in src/Main/test_autosaveMigration.cxx
...
The previous commit (32cc9be007
) removed the second parameter of
FGGlobals::loadUserSettings(). Adapt testMigration() accordingly.
2017-09-20 22:19:01 +02: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
c99504f321
Fix crash in Nasal _setChildren
...
We had a bit of stack smashing happening, fortunately the macOS runtime
is pretty good at detecting such things.
2017-09-19 08:20:08 +01:00
James Turner
351f6063c9
Permit more screenshots. (More than 1000)
2017-09-19 06:55:22 +01:00
James Turner
8e58c54544
Make routeRestrictionFromArg more robust.
2017-09-19 06:42:39 +01:00
James Turner
fba649a0e6
Fix crashes calling leg.setSpeed|Altitude(nil)
...
Treat passing nil as clearing the speed / altitude restriction for
the leg. Also default the second arg to ‘at’, so calling these
methods with a single numerical arg is permitted.
2017-09-19 06:36:32 +01:00
Torsten Dreyer
a82d955554
set fallback location to LKPR
2017-09-18 19:55:10 +02:00
Torsten Dreyer
7e9549c1bc
new version: 2017.4.0
2017-09-17 12:14:03 +02:00
Torsten Dreyer
3eba38a682
new version: 2017.3.1
2017-09-17 12:14:03 +02:00
James Turner
1b8d0fb277
Nasal FlightPlan insertWp[After] return the leg.
2017-09-11 23:43:59 +01:00
James Turner
b0de9d5a11
Make Nasal Flightplan.indexOfWP work on Legs
2017-09-11 23:30:53 +01:00
James Turner
2acf2aa5ba
Saving flightplans from Nasal.
...
Usage:
var fp0 = flightplan();
fp0.save("p6.xml");
2017-09-11 23:24:25 +01:00
James Turner
ddea3929f8
Fix clearing FlightPlan elements from Nasal.
...
Clearing the departure or destination elements, including the SID,
STAR or approach to nil, now works, e.g:
var fp = flightplan();
fp.departure = nil;
2017-09-11 23:24:24 +01:00