James Turner
e89df85817
GPSs uses FlightPlans directly.
2013-04-09 10:20:02 +01:00
Thomas Geymayer
8f1df6c358
Helpers to clone SGModelData
...
This is needed for latest SimGear to fix scene model
unload not being called
2013-04-01 13:40:51 +02:00
Thomas Geymayer
913727239d
Expose pose of scenery models to Nasal load/unload scripts.
...
This allows Nasal code attached to scenery models access their
world position and orientation by calling _model.getPose().
Also ensure models are attached to the scenegraph before Nasal
load scripts are called. This ensures that the world position
and orientation are available upon executing the load script.
2013-03-23 12:54:45 +01:00
Thomas Geymayer
eba03b5e46
Allow placing canvas on scenery objects.
2013-03-21 01:16:47 +01:00
James Turner
6f80df0b8d
NasalTimerObject tweaks.
2013-03-20 18:10:27 +00:00
James Turner
9575783491
NasalPositioned-cppbind additions.
...
Expose searching by name, filtering by any type, and sorting by range.
2013-03-19 18:14:56 +00:00
Thomas Geymayer
1e4ba18284
Update/simplify property interpolation to latest SimGear changes
2013-03-17 23:49:15 +01:00
Thomas Geymayer
4b21dc51ee
Replace SGInterpolator with new advanced interpolation system.
...
Allow for advanced animations using easing functions and adapters
for interpolating specific property types (eg. CSS colors).
Old behavior should not have changed.
2013-03-16 16:45:03 +01:00
James Turner
ab939ff772
A real Timer object in Nasal.
...
A persistent timer object which can be stopped, started and restarted. Gosh. Has both singleShot and repeating modes.
2013-03-16 12:44:27 +00:00
Thomas Geymayer
3047c316dc
Clean up/simplify NasalPositioned_cppbind
...
Ensure all FGPositioned related functions return SGSharedPtr
instead of raw pointers to allow automatic conversion to
nasal ghosts without custom helper functions.
2013-03-06 23:21:49 +01:00
Thomas Geymayer
8d56b4664a
Port more airport/navaid methods to cppbind
2013-03-06 01:04:52 +01:00
Thomas Geymayer
c7e846bd2a
Parse geod/position and use it with new airportinfo.
2013-03-05 17:31:26 +01:00
James Turner
f2c267f5d7
MouseInput changes to support hover.
...
This adds the framework for platform cursor implementations; Windows and X11 to be done.
It also extend the mouse-input code to generate hover events suitable for driving tooltips.
Note there should be no visible functionality change from this commit, since everything
is inactive until fgdata changes are made.
2013-03-04 23:35:30 +00:00
Thomas Geymayer
22a1c9b2af
Finish porting airportinfo to cppbind
2013-03-04 23:14:26 +01:00
Thomas Geymayer
4b573ebd13
Start porting NasalPositioned to cppbind.
...
For now it is available in the positioned Nasal
module. FGAirport is fully ported, but especially
procedures/navaids and free functions are still
missing.
2013-03-04 19:24:47 +01:00
Thomas Geymayer
45e3b7e2d1
Clean up/prepare for porting NasalPositioned to cppbind
2013-03-04 16:31:37 +01:00
Thomas Geymayer
664cb474e1
NasalCanvas: clean up
2013-03-03 20:57:08 +01:00
Thomas Geymayer
0587db3b1e
Update for nasal::Ghost changes
2013-03-03 19:30:16 +01:00
Christian Schmitt
ee1c8a8d66
Expose more runway methods to Nasal
2013-03-01 12:53:25 +01:00
Christian Schmitt
8588eb2e4b
Expose heliports to Nasal for future use in maps
2013-02-26 18:20:10 +01:00
James Turner
1eb8ae1fbf
Give the FGAirport class a sane filename.
...
simple.[cxx|hxx] -> airport.[cxx|hxx]
2013-02-21 11:32:02 +00:00
Yves Sablonier
9ac1e82c82
Adding directive for osx sdk 10.5 in ClipBoardCocoa.mm
2013-02-18 09:18:48 +00:00
James Turner
808f42e86a
Linux fix.
...
One day I'm going to figure out why I get all the standard-library includes automatically on Mac, but not on Linux. Today is not that day.
2013-02-09 17:11:55 +00:00
Frederic Bouvier
aa19b2a77e
Include file only needed by MSVC
2013-02-09 17:40:37 +01:00
Frederic Bouvier
87b43057e1
Fix windows build
2013-02-09 17:24:44 +01:00
James Turner
7b663cd7f7
Split huge NasalSys header apart.
2013-02-09 15:33:05 +00:00
James Turner
ce9afecdbd
Support a log-list widget in PUI.
...
Add a puaListBox which can show the contents of a log-buffer. Currently only two buffer sources are supported more to follow (and the dialog XML updates).
2013-02-08 19:39:41 +00:00
Frederic Bouvier
7cc3ffb30f
Fix build for windows after logstream changes
2013-02-08 08:46:34 +01:00
James Turner
b52a61c2cb
Support logging from Nasal at custom levels.
...
For now, print() still logs at SG_ALERT level.
2013-02-07 16:44:24 +00:00
Thomas Geymayer
5b38e00ade
Expose some methods on strings to Nasal
2013-01-31 19:14:23 +01:00
James Turner
2e1fb7972e
Initial work on native file dialog support.
...
Add an abstract interface, version that forwards to the existing PUI dialog, and a Cocoa-native version.
2013-01-19 14:41:45 +00:00
James Turner
6705a2ec6d
Fix compilation on some platforms.
...
No idea why I don't need this on Mac - differing Boost versions?
2012-12-31 20:13:26 +00:00
James Turner
369e6b564f
Flightplan delegate hook for clearing the FP.
...
This allows delegates to take action when the flightlan is cleared, and especially, for the default delegate in the route-manager to deactivate itself, and hence the GPS LEG mode - which fixes bug 940 I hope.
2012-12-31 17:39:52 +00:00
James Turner
6c3853fd0d
Expose an additional flight plan leg data to Nasal.
2012-12-31 11:46:36 +00:00
James Turner
12076bce0e
Expose position along the flight-path to Nasal.
...
Useful to query a point '100nm before wpt X' from Nasal, especially for VNAV calculations (T/C, T/D).
2012-12-26 23:48:19 +00:00
Thomas Geymayer
e844383988
Expose canvas Text::getNearestCursor to Nasal as replacement for old property based method
2012-12-17 00:32:24 +01:00
Thomas Geymayer
cef12d406c
CanvasEvent: expose event target to Nasal
2012-12-17 00:32:24 +01:00
Thomas Geymayer
13cec7bd99
Canvas MouseEvent now provides client and screen position
2012-12-08 15:02:15 +01:00
Thomas Geymayer
91bc5e522a
Canvas add event time and expose current click count
2012-12-06 23:27:25 +01:00
Thomas Geymayer
ed211b043a
Expose canvas::Element::getTransformedBounds to Nasal
2012-12-04 23:59:21 +01:00
Thomas Geymayer
28f2779c4b
Forward mouse events from (PUI) CanvasWidget to Canvas for new DOM like callbacks
2012-12-02 13:33:16 +01:00
Thomas Geymayer
5e85bcacc8
Canvas: Expose more methods to Nasal.
...
- Expose canvas::Group::getElementById to Nasal
- Expose canvas::Group::getChild to Nasal
2012-11-30 17:32:13 +01:00
Thomas Geymayer
f7544744bb
Update for latest SimGear changes and remove some old code
2012-11-29 17:57:01 +01:00
Thomas Geymayer
af0bbfd657
Expose simgear::canvas::Group::createChild to Nasal
2012-11-29 01:25:01 +01:00
Thomas Geymayer
e5286f1217
More work on Canvas event handling/adapt for simgear changes
2012-11-27 13:56:53 +01:00
Thomas Geymayer
d51499382d
Clean up CanvasWidget and more work on Canvas/Nasal bindings
2012-11-18 16:46:03 +01:00
Thomas Geymayer
1a0fcd5f56
NasalCanvas: Clean up and expose Element node ghost
2012-11-16 12:34:38 +01:00
Thomas Geymayer
0761af344d
Visual Studio bug workaround
2012-11-15 12:43:35 +01:00
Thomas Geymayer
859e92a8ed
Experiment with exposing more canvas methods
2012-11-15 12:43:34 +01:00
Thomas Geymayer
892806cb3f
More cleanup an move of helper classes to simgear
2012-11-15 12:43:34 +01:00