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
Thomas Geymayer
724d54b3a3
Clean up and some more testing
2012-11-15 12:43:34 +01:00
Thomas Geymayer
863cd6a290
Canvas/Nasal and Nasal/C++ binding experiments
2012-11-15 12:43:34 +01:00
ThorstenB
1d99401c04
Remove osg dependency for isNaN only.
2012-11-11 17:22:42 +01:00
James Turner
afcdbd3158
Overhaul the ground-net / parking code.
...
Use the nav-data-cache to cache groundnet information, including
parking positions and the taxi-node graph.
2012-11-08 09:07:05 +00:00
Thomas Geymayer
c79510ef34
Fix include and compiler warning
2012-11-04 23:03:06 +01:00
Thomas Geymayer
28779e7a51
Update for new simgear Canvas system.
...
A refactored version of the Canvas system can now be found in
SimGear.
2012-11-04 14:18:31 +01:00
Thomas Geymayer
79f7907a82
Let Nasal props.Node.removeChildren behaviour consistent (Don't keep deleted nodes)
2012-10-22 17:59:19 +02:00
Thomas Geymayer
b22ede2fd5
Expose SGPropertyNode::addChildren to Nasal
2012-10-14 17:39:53 +02:00
ThorstenB
076bbb8487
Fix some compiler warnings.
...
Unused vars, loss of precision, bool type conversions.
2012-10-13 17:59:47 +02:00
ThorstenB
60eaa22fda
Drop sorting of Nasal scripts.
...
simgear::Dir now always provides results in a deterministic order.
2012-10-13 15:45:15 +02:00
Thomas Geymayer
78b5dfb58b
Expose SGPropertyNode::addChild to Nasal
2012-10-13 15:13:56 +02:00
James Turner
b1ff365a8f
Make FGTaxiNode and FGParking inherit FGPositioned.
...
In preparation for caching the groundnet in the NavCache, make taxi-nodes and parkings inherit from FGPositioned. As part of this, make them heap (as opposed to value) classes, disable their copy-constructors, remove many mutating operations, and give them real constructors.
2012-09-25 00:31:17 +01:00
Stuart Buchanan
a3a40af860
Simplify code for taxiways.
2012-09-20 21:53:31 +01:00
Stuart Buchanan
ac1fc699b7
Expose surface types and taxiways via the airportinfo() Nasal call.
2012-09-19 22:33:43 +01:00
James Turner
3cf7715485
Expose the route-path of leg to Nasal.
...
In advance of converting the Map and NavDisplay to use the canvas, expose the full route-path vector for each flight plan leg, as a vector on the leg. Use leg.path() to get this.
E.g.:
var fp = flightplan();
for (var i=0; i<fp.getPlanSize(); i += 1)
{
var leg = fp.getWP(i);
debug.dump(leg.path());
}
2012-09-19 18:40:34 +01:00