Thomas Geymayer
0646d5f443
Nasal: expose LayoutItem visibility methods.
2014-07-21 00:27:20 +02:00
Thomas Geymayer
a673f4a5f9
Nasal: update for simgear changes.
2014-07-21 00:26:54 +02:00
Thomas Geymayer
5f4ad79954
canvas.Layout: expose missing methods to Nasal.
2014-07-16 11:24:53 +02:00
Thomas Geymayer
a94ad46dc0
Nasal: expose missing Canvas::setLayout
2014-06-26 18:26:43 +02:00
Thomas Geymayer
a66e30aa04
Nasal: Limit SGPath::create_dir access rights to 0755
2014-06-26 16:03:10 +02:00
Thomas Geymayer
694df4b337
Fix compiler warning (naRuntimeError does not return...)
2014-06-23 00:42:17 +02:00
Thomas Geymayer
1b55ab5f40
Nasal: expose SGCondition using nasal::Ghost and improved error checking.
2014-06-22 15:37:48 +02:00
Thomas Geymayer
1d5f229653
Nasal: set CustomEvent::bubbles.
2014-06-21 00:24:57 +02:00
Thomas Geymayer
f4b7ae5da3
Nasal: md5 is now in simgear.
2014-06-18 15:59:41 +02:00
Thomas Geymayer
cfbf9e7e4e
Nasal: expose md5 function.
2014-06-17 22:33:53 +02:00
Thomas Geymayer
da2bb6353e
Nasal: expose canvas::Text::maxWidth.
2014-06-17 17:02:10 +02:00
Thomas Geymayer
26a4948642
NasalSys: process nasal::Ghost deletion queue.
2014-06-15 16:36:35 +02:00
Thomas Geymayer
52a4ded502
Nasal: expose canvas::Layout::clear()
2014-06-14 13:22:22 +02:00
Thomas Geymayer
4409c8cca6
Expose parse_markdown to Nasal.
2014-06-13 19:16:26 +02:00
Thomas Geymayer
b53b1a3a25
Nasal: expose canvas height-for-width layouting methods.
2014-06-13 00:09:33 +02:00
Thomas Geymayer
0fb94ba596
Nasal: expose canvas::Layout item remove and get methods.
2014-06-12 00:44:26 +02:00
Thomas Geymayer
c0eda4a47c
Nasal: expose more methods to Nasal.
2014-06-10 18:44:38 +02:00
Thomas Geymayer
9c0b5a5c54
Nasal: Expose BoxLayout methods for spacer and stretch.
2014-06-08 23:34:37 +02:00
Thomas Geymayer
371b71dd6c
Nasal: expose vbox layout and allow setting item stretch.
2014-06-04 17:50:52 +02:00
Thomas Geymayer
75f5eba002
Update includes (required by simgear changes)
2014-06-04 02:58:14 +02:00
Thomas Geymayer
3c0b7f88b8
Updates for simgear nasal::Ghost changes.
2014-06-03 19:00:25 +02:00
Thomas Geymayer
06a9958689
Canvas: expose more methods to Nasal
2014-06-01 12:15:02 +02:00
Thomas Geymayer
3b4bb10e4f
Canvas: expose layouting to Nasal.
2014-05-31 02:43:03 +02:00
Thomas Geymayer
7c31654b3a
Canvas: store data inside canvas and elements.
...
- jQuery/HTML5 like .data() method on Canvas and Elements to store
custom data in the property tree.
- CustomEvent takes additional parameter hash with 'detail' data
stored in event.
2014-05-29 16:47:32 +02:00
Thomas Geymayer
5b74a72506
Canvas: support for custom events and event dispatching.
2014-05-19 00:28:40 +02:00
Thomas Geymayer
b3946f08f9
NasalCanvas: Update for simgear changes.
2014-05-18 20:21:56 +02:00
Thomas Geymayer
741c3c892c
NasalPositioned: Update for nasal::Ghost changes in SimGear
2014-05-18 17:48:46 +02:00
Thomas Geymayer
0fc2d57211
Scripting: expose flight history as aircraft.history()
...
var hist = aircraft.history();
debug.dump(hist.pathForHistory(50));
2014-05-10 10:56:09 +02:00
Thomas Geymayer
bd29974683
Canvas: move Window class to simgear.
2014-05-09 16:42:54 +02:00
James Turner
b3c7cb7c15
Fix crash with Nasal bindings.
...
naBindFunction doesn't save the function code to the global
hash, so pass an explicit context to various 'call' overloads so
the function can't be GC-ed in between parsing and calling.
(Patch by Nicholas Scheel)
https://code.google.com/p/flightgear-bugs/issues/detail?id=1397
2014-04-15 14:13:46 +01:00
Thomas Geymayer
7f43a09fc5
Canvas: update for new bounding box getters.
2014-03-31 13:29:14 +02:00
Thomas Geymayer
f0ef2b9576
Expose HTTP client to Canvas.
2014-03-18 18:35:35 +01:00
James Turner
070dba29f9
Close dialogs on GUI shutdown
...
- avoids orphaned dialogs on reset
- requires some guards in NasalSys since Nasal is shutdown first, but
dialogs can have Nasal modules.
2014-03-16 22:52:55 +00:00
Torsten Dreyer
aaa7fca621
NasalSys: arg is never null
2014-03-12 22:42:51 +01:00
Thomas Geymayer
ef3f0a2738
Canvas.MouseEvent: fix specific modifier states (ctrl, alt,...)
2014-03-07 16:19:40 +01:00
Thomas Geymayer
88b7d4f530
Update for SGPropertyNode changes.
2014-03-06 00:41:41 +01:00
Thomas Geymayer
36f7ef93aa
Canvas.MouseEvent: expose button/modifier state.
2014-03-04 18:00:57 +01:00
James Turner
34ed79e5f8
getprop/setprop allows integer indices.
...
As suggested by a long-standing enhancement idea,
extend getprop/setprop to accept multiple args,
including integer arguments. This removes the need
for string concatenation (and hence, allocation)
on the Nasal side.
Patch by Nicholas 'Philosopher' Scheel
2014-02-18 20:07:29 -08:00
Thomas Geymayer
3b23892ccf
Canvas: also apply matrix of element to getTransformedBounds.
...
Part of the fix for #1333 .
2014-02-08 00:28:24 +01:00
Thomas Geymayer
61da998e02
Expose SGPath::standardLocation to Nasal.
2014-01-28 01:08:06 +01:00
Thomas Geymayer
67be73fdde
Expose SGPath to Nasal
2013-12-18 10:30:19 +01:00
Thomas Geymayer
3a170e1a39
Scripting: clean up a bit and user more of cppbind.
2013-12-08 19:24:45 +01:00
Thomas Geymayer
cac6407a8e
Add positioned.diff for fast difference calculations on positioned lists.
2013-12-08 19:24:45 +01:00
Thomas Geymayer
fcc6d3edc2
Expose SGPropertyNode::removeAllChildren() to Nasal.
2013-12-07 13:47:10 +01:00
James Turner
9c11dfd545
Reset: free nasal-module-listeners on shutdown.
2013-12-03 21:38:45 +00:00
James Turner
d99109c9e4
Reset: do re-init Ghost bindings.
2013-11-24 15:10:00 +00:00
James Turner
0fbc448af0
Nasal changes for reset
...
- reduce use of global context (will die soon)
- replace static wrappedNode ref which breaks reset
2013-11-22 22:52:33 +00:00
James Turner
fecb475145
Refactor Cocoa helpers.
...
Change away from using deprecated FSFindFolder.
2013-11-16 10:58:17 +00:00
bcoconni
139af0026f
Synchronized FG with the removal of 'using std::*' in simgear's easyxml
2013-11-14 22:07:50 +00:00
James Turner
881df711ba
Reset: Nasal can be shutdown.
...
Also guard against duplicate init of cppbind wrapped classes.
2013-11-12 22:47:41 +00:00