Thomas Geymayer
5fb7b2e12c
Canvas: Now only one global SystemAdapter is used...
2013-12-09 23:13:45 +01:00
Thomas Geymayer
e8f4e25c8c
CanvasWidget: get new GUI camera on reset.
2013-12-01 12:58:17 +01:00
Thomas Geymayer
bf477ba678
Canvas GUI: completely reset on reinit
2013-12-01 01:35:30 +01:00
Thomas Geymayer
42ab4fd222
Canvas/GUI: add/remove placement factories on init/shutdown.
2013-11-24 15:50:44 +01:00
Thomas Geymayer
26a3573aea
Update/simplify for SimGear changes.
2013-10-15 17:48:13 +02:00
Thomas Geymayer
5c42071fbb
Scripting: get rid of gcHash and use new SimGear/Nasal functions.
2013-10-15 00:58:21 +02:00
Thomas Geymayer
5b17a6c33f
Canvas GUI: don't crash if enable decoration on window without content canvas
2013-07-27 22:16:00 +02:00
Thomas Geymayer
d2524d8fe6
Canvas window: separate handling of content-size and overall size.
2013-07-27 00:01:50 +02:00
Thomas Geymayer
e79e70062e
Canvas window: increase drag accuracy.
2013-07-27 00:01:44 +02:00
Thomas Geymayer
02e66fd034
Canvas GUI: fix updating canvas on window with decoration.
2013-07-27 00:00:33 +02:00
Thomas Geymayer
c3a87f75cd
Canvas GUI: check for window on handling mouse events.
2013-07-25 01:14:23 +02:00
Thomas Geymayer
a75b9e5de9
Expose canvas GUI "desktop" to Nasal.
...
- Restructure GUIMgr and move most parts to implementation class.
- Expose new (simgear::canvas::Group based) DesktopGroup class
to Nasal.
2013-07-25 00:59:59 +02:00
Thomas Geymayer
73456b05b4
Canvas GUI: send mouseleave after mouseup outside original window
2013-06-29 14:36:32 +02:00
Thomas Geymayer
0239e9c8c8
Fix cursor hide timeout if hovering on canvas windows
2013-06-21 22:00:09 +02:00
Thomas Geymayer
9e2625d575
Canvas GUI: preserve window size on reinit
2013-06-21 17:42:16 +02:00
Thomas Geymayer
4f129a283b
Canvas GUI: refactor and simplify based on canvas::Group
2013-06-14 20:20:17 +02:00
Thomas Geymayer
2dee846930
Base canvas::Window on simgear::canvas::Image
2013-06-08 11:33:53 +02:00
Thomas Geymayer
1c24acf41e
canvas::Window: make shadow part of decoration canvas
2013-06-08 11:32:53 +02:00
Thomas Geymayer
326ee0c5cf
Add window decoration support to Canvas GUI.
...
canvas::Window now optionally creates a second canvas for showing
window decoration. After setting its dimensions with the property
"decoration-border" a Nasal based window decorator should add the
required elements to the decoration canvas.
Using the properties "shadow-radius" and "shadow-inset" a drop
shadow can be added to the window.
2013-06-06 22:37:16 +02:00
Thomas Geymayer
53c3033135
Expose canvas::Window ghost to Nasal.
2013-06-03 23:46:34 +02:00
Thomas Geymayer
351f1f4565
Canvas window: Update for SimGear MouseEvent changes.
2013-05-13 00:37:13 +02:00
Thomas Geymayer
d9881aecf8
Allow Canvas placed on 3D objects receiving mouse events.
...
- Add option 'capture-events' to canvas aircraft and scenery
placements to allow events being forwarded to the respective
canvas.
- Clean up and restructure parts of the mouse event/picking
handling to support forwarding events to canvasses.
2013-05-09 21:38:40 +02:00
Thomas Geymayer
952a61424a
Allow Canvas to also read images with absolute paths (if allowed by IOrules)
2013-04-29 22:17:09 +02:00
Thomas Geymayer
eba03b5e46
Allow placing canvas on scenery objects.
2013-03-21 01:16:47 +01:00
Thomas Geymayer
0bc5a813a8
Revert "Ensure immediate canvas update inside GUI windows."
...
This reverts commit 07f01bd734
.
We don't need this anymore as there is now a proper fix
in SimGear.
2013-03-11 21:24:40 +01:00
Thomas Geymayer
07f01bd734
Ensure immediate canvas update inside GUI windows.
...
Ensure canvas displayed inside GUI windows are updated in the same
frame as the according window is made visible. This prevents
showing previous contents for the first frame.
2013-03-10 20:43:14 +01:00
Thomas Geymayer
1c905e5881
Typos, license headers...
2013-03-06 01:04:52 +01:00
Thomas Geymayer
1b49f5cc78
Canvas Window: use new CanvasImage method to handle events
2013-02-28 01:15:59 +01:00
Thomas Geymayer
38ca30cbd5
Ignore events if canvas::Window is not visible
2013-02-13 12:10:25 +01:00
Thomas Geymayer
c0173cf2b5
Improve mouse event capturing with Canvas windows.
...
- Don't capture mouse events if mouse mode has
pass-through disabled. This behaviour is
consistent with the PUI dialogs and allows
changing moving view and controls while above
any GUI dialog.
- Add option to canvas windows to ignore all
events and let them pass through
("capture-events").
2013-02-07 23:08:53 +01:00
Thomas Geymayer
7ce1e100d7
Reapply canvas placements upon aircraft-model reinit
2013-02-06 01:23:06 +01:00
Thomas Geymayer
0a879d3c65
Fix canvas gui size sometimes not initialized correct
2013-01-01 13:45:45 +01:00
Thomas Geymayer
c9976155d6
Update to latest SimGear and fix eating up every 2nd scroll event
2012-12-13 23:39:41 +01:00
Thomas Geymayer
4bf4754f7b
Allow Canvas Windows to be resized by dragging
...
- Setting 'resize' property to true on canvas::Window shows
resize icons and exposes requested size to the property
tree. This can be used eg. from Nasal to actually resize
the window and/or show a preview of the resized window
while resizing.
- Event handling now ignores events which have already
been handled. Before eg. clicking inside a window
also caused picking to be performed inside the
scene which is for sure not the expected behaviour.
- Also forwards scroll wheel events from canvas::Window.
2012-12-13 14:12:29 +01:00
Thomas Geymayer
e62649e075
CanvasWidget: Retrieve texture id every frame.
...
If the size of a Canvas changes also the texture id
changes. We now retrieve the texture id for the CanvasWidget
every frame to ensure it uses the latest texture instance.
2012-12-09 23:15:49 +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
28f2779c4b
Forward mouse events from (PUI) CanvasWidget to Canvas for new DOM like callbacks
2012-12-02 13:33:16 +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
846a838c70
Expose NasalSys::gcSave/gcRelease to Canvas
2012-11-22 01:06:22 +01:00
Thomas Geymayer
258d387d15
Allow setting emission for each canvas placement
2012-11-21 13:07:57 +01:00
Thomas Geymayer
7e7d921515
Adapt for latest SimGear changes and insert missing bracket
2012-11-06 18:50:14 +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
71eeb62c1b
Simplify canvas OpenVG initialization and fix sometimes rendering too lazy
2012-10-31 01:44:25 +01:00
Thomas Geymayer
4e75587332
Refactor PropertyBasedElement and Manager
2012-10-29 16:19:13 +01:00
ThorstenB
076bbb8487
Fix some compiler warnings.
...
Unused vars, loss of precision, bool type conversions.
2012-10-13 17:59:47 +02:00
James Turner
4994973ef4
Separate instruments from cockpit displays.
2012-10-05 18:13:50 +01:00
Thomas Geymayer
f462dfdfac
Canvas: default fill-rule to evenodd and make it configurable
2012-09-29 19:54:31 +02:00
Thomas Geymayer
37d0c19f7c
Canvas: Make path destroying more robust
2012-09-27 14:41:00 +02:00
Thomas Geymayer
b8b4fb00f8
Canvas: On z-index change move element always to last position of elements with same z-index
2012-09-26 23:52:43 +02:00