Canvas widgets: Difference between revisions

Jump to navigation Jump to search
m
m (→‎C++ core requirements {{Pending}}: show-dialog can be overwritten via removecommand/addcommand from Nasal space)
Line 286: Line 286:
* https://www.svgopen.org/2004/papers/SPARK/
* https://www.svgopen.org/2004/papers/SPARK/
* http://www.svgopen.org/2003/papers/SPARK/Summary.html
* http://www.svgopen.org/2003/papers/SPARK/Summary.html
=== Reusing existing SVG based GUI widgets ===
There are many existing GUI widgets available in SVG, take a look at these links:
* http://www.carto.net/svg/gui/combobox/index.svg
* http://www.carto.net/svg/gui/tabgroup/index.svg
* http://www.carto.net/svg/gui/Window/index.svg
These are readily available widgets, in SVG format: http://www.carto.net/svg/samples (many more)
Obviously, they contain currently inline ECMA/JavaScript, but that could be easily removed or ported to Nasal (if we want to), even the blank widgets would be useful in FlightGear, and looking at the code could help us shape our Nasal widget API.
Basically, we would get all the essential widgets for free, and we could decide if we want to support embedded Nasal or not.
Reusing such widgets could give us a good head start.


=== Layout Management ({{Not done}}) ===
=== Layout Management ({{Not done}}) ===

Navigation menu