]> git.mxchange.org Git - simgear.git/log
simgear.git
11 years agoCanvas: clip region rounding and catch negative size.
Thomas Geymayer [Fri, 19 Jul 2013 21:37:04 +0000 (23:37 +0200)]
Canvas: clip region rounding and catch negative size.

11 years agoCanvas: don't crash with invalid clip rect
Thomas Geymayer [Thu, 18 Jul 2013 13:35:44 +0000 (15:35 +0200)]
Canvas: don't crash with invalid clip rect

11 years agocanvas::Element: Fix bounding box calculation of groups
Thomas Geymayer [Thu, 18 Jul 2013 12:15:57 +0000 (14:15 +0200)]
canvas::Element: Fix bounding box calculation of groups

11 years agoBump version on development trunk.
James Turner [Wed, 17 Jul 2013 19:29:22 +0000 (20:29 +0100)]
Bump version on development trunk.

11 years agonasal::String: add ends_with method
Thomas Geymayer [Mon, 15 Jul 2013 20:26:11 +0000 (22:26 +0200)]
nasal::String: add ends_with method

11 years agoFix inverted checks...
Thomas Geymayer [Sat, 13 Jul 2013 12:06:11 +0000 (14:06 +0200)]
Fix inverted checks...

11 years agoFix for OSG without OSG_INIT_SINGLETON_PROXY
Thomas Geymayer [Sat, 13 Jul 2013 09:37:24 +0000 (11:37 +0200)]
Fix for OSG without OSG_INIT_SINGLETON_PROXY

11 years agoCanvas::Group: Print warning message if using expired Group instead of crashing
Thomas Geymayer [Fri, 12 Jul 2013 15:48:21 +0000 (17:48 +0200)]
Canvas::Group: Print warning message if using expired Group instead of crashing

11 years agoFix render order of canvas elements
Thomas Geymayer [Fri, 12 Jul 2013 14:13:06 +0000 (16:13 +0200)]
Fix render order of canvas elements

11 years agoCSSBorder fix: width/height swapped
Thomas Geymayer [Sat, 6 Jul 2013 10:05:19 +0000 (12:05 +0200)]
CSSBorder fix: width/height swapped

11 years agointerpolate without values is used to abort interpolating -> no warning
Thomas Geymayer [Thu, 4 Jul 2013 17:46:27 +0000 (19:46 +0200)]
interpolate without values is used to abort interpolating -> no warning

11 years agoReplace auto_ptr to prevent possible undefined behavior
Thomas Geymayer [Thu, 4 Jul 2013 14:08:58 +0000 (16:08 +0200)]
Replace auto_ptr to prevent possible undefined behavior

11 years agoCanvas: Fix removing text elements.
Thomas Geymayer [Thu, 4 Jul 2013 12:11:54 +0000 (14:11 +0200)]
Canvas: Fix removing text elements.

Removing text elements failed due to prefering removing the
style property with the same name. Add a flag to each style
indicating whether it can be inherited. The text property
is only applicable to text elements and can not be inherited.
Now groups can not have a text property, avoiding the name
clash with the text element.

11 years agoCanvas Event System: add missing currentTarget field.
Thomas Geymayer [Wed, 3 Jul 2013 22:53:49 +0000 (00:53 +0200)]
Canvas Event System: add missing currentTarget field.

11 years agoCanvas: fix property inheritance.
Thomas Geymayer [Tue, 2 Jul 2013 20:42:46 +0000 (22:42 +0200)]
Canvas: fix property inheritance.

 - Do not override style of children if they have own values set.
 - Retrieve style of parent if own style value has been removed.

11 years agoCanvas: prevent bubbling of mouseenter and mouseleave.
Thomas Geymayer [Sun, 30 Jun 2013 19:27:03 +0000 (21:27 +0200)]
Canvas: prevent bubbling of mouseenter and mouseleave.

11 years agoRestore compatibility with stable OSG (3.0.1)
Thomas Geymayer [Sun, 30 Jun 2013 19:25:21 +0000 (21:25 +0200)]
Restore compatibility with stable OSG (3.0.1)

11 years agoCanvas: clear mousedown/click if mouse leaves canvas.
Thomas Geymayer [Sat, 29 Jun 2013 12:29:38 +0000 (14:29 +0200)]
Canvas: clear mousedown/click if mouse leaves canvas.

11 years agoCanvas: Improve checks to mark events as handled.
Thomas Geymayer [Sat, 29 Jun 2013 12:16:39 +0000 (14:16 +0200)]
Canvas: Improve checks to mark events as handled.

11 years agoCanvas: Ensure events are dispatched to canvas with no element hit.
Thomas Geymayer [Sat, 29 Jun 2013 12:14:12 +0000 (14:14 +0200)]
Canvas: Ensure events are dispatched to canvas with no element hit.

11 years agoCanvas: Ignore hidden element on event traversal.
Thomas Geymayer [Sat, 29 Jun 2013 12:12:59 +0000 (14:12 +0200)]
Canvas: Ignore hidden element on event traversal.

11 years agoCanvas: fix distance check for click events.
Thomas Geymayer [Sat, 29 Jun 2013 12:11:19 +0000 (14:11 +0200)]
Canvas: fix distance check for click events.

11 years agoCanvas: trigger missing events on mouseup.
Thomas Geymayer [Sat, 29 Jun 2013 09:33:40 +0000 (11:33 +0200)]
Canvas: trigger missing events on mouseup.

On mouseup send mouseout/mouseleave to old element and
mouseenter/mouseover to new element. This fixes hover
actions after dragging.

11 years agoBump version number to 2.12.0
Torsten Dreyer [Fri, 28 Jun 2013 10:09:30 +0000 (12:09 +0200)]
Bump version number to 2.12.0

11 years agostd::string namespace fixes.
James Turner [Thu, 27 Jun 2013 09:13:58 +0000 (10:13 +0100)]
std::string namespace fixes.

11 years agoSet binding after color array (required by OSG 3.1.8)
Thomas Geymayer [Wed, 26 Jun 2013 22:38:44 +0000 (00:38 +0200)]
Set binding after color array (required by OSG 3.1.8)

11 years agoEnsure compatibility with OSG 3.1.8.
Alex Romosan [Wed, 26 Jun 2013 21:53:07 +0000 (23:53 +0200)]
Ensure compatibility with OSG 3.1.8.

11 years agoFix crash when telnet or other protocols close.
James Turner [Wed, 26 Jun 2013 20:50:27 +0000 (21:50 +0100)]
Fix crash when telnet or other protocols close.

http://code.google.com/p/flightgear-bugs/issues/detail?id=1144

11 years agoXCode warning fixes.
James Turner [Sat, 22 Jun 2013 15:15:41 +0000 (16:15 +0100)]
XCode warning fixes.

11 years agoFix a warning spotted by Emilian.
James Turner [Sat, 22 Jun 2013 15:15:30 +0000 (16:15 +0100)]
Fix a warning spotted by Emilian.

11 years agoObject names for STG groups / nodes.
James Turner [Sat, 22 Jun 2013 13:27:53 +0000 (14:27 +0100)]
Object names for STG groups / nodes.

11 years agoFix preview exclusion of sliders.
James Turner [Sat, 22 Jun 2013 13:27:18 +0000 (14:27 +0100)]
Fix preview exclusion of sliders.

11 years agoFix pick callbacks on scenery.
James Turner [Sat, 22 Jun 2013 10:59:42 +0000 (11:59 +0100)]
Fix pick callbacks on scenery.

Ensure pick callbacks work over the whole pick group, otherwise
the visible render group is hit first, and resolves to the ground
pick callback instead.

This fixes the hangar doors at KSFO and Moffett.

11 years agoCanvas: Fix creating/forwarding of mouseenter/mouseleave events.
Thomas Geymayer [Thu, 20 Jun 2013 21:13:10 +0000 (23:13 +0200)]
Canvas: Fix creating/forwarding of mouseenter/mouseleave events.

11 years agoWindows SGPath::desktop() impl
James Turner [Wed, 19 Jun 2013 22:58:57 +0000 (23:58 +0100)]
Windows SGPath::desktop() impl

Basic SHGetSpecialFolderPath wrapper, with dynamic
finding of the function since linking to shell32.dll
is painful. Obviously could be generalised to other
CSIDLs in the future.

11 years agoFix preprocessor boolean ops for MSVC
James Turner [Wed, 19 Jun 2013 08:04:15 +0000 (09:04 +0100)]
Fix preprocessor boolean ops for MSVC

11 years agoSVN client - prefix error constants.
James Turner [Wed, 19 Jun 2013 07:42:30 +0000 (08:42 +0100)]
SVN client - prefix error constants.

Avoid Windows clashes on common names (NO_ERROR, etc)

11 years agoCanvas: fix updating placements after non matching placements
Thomas Geymayer [Tue, 18 Jun 2013 21:07:20 +0000 (23:07 +0200)]
Canvas: fix updating placements after non matching placements

11 years agocanvas::Text: Make font resolution user configurable
Thomas Geymayer [Sun, 16 Jun 2013 08:49:46 +0000 (10:49 +0200)]
canvas::Text: Make font resolution user configurable

11 years agocanvas::Text: set font resolution to actual texel size.
Thomas Geymayer [Fri, 14 Jun 2013 21:33:26 +0000 (23:33 +0200)]
canvas::Text: set font resolution to actual texel size.

11 years agoCanvasGroup: Do not try to remove already removed children.
Thomas Geymayer [Fri, 14 Jun 2013 17:47:09 +0000 (19:47 +0200)]
CanvasGroup: Do not try to remove already removed children.

11 years agoFix #1139
Thomas Geymayer [Wed, 12 Jun 2013 21:56:04 +0000 (23:56 +0200)]
Fix #1139

Always set TEST_LIBS as applications/tools also need to link
them, even if tests are disabled. Also allow disabling building
of sg_pkgutil.

11 years agoUse CoreServices, not Cocoa, for FSFindFolder
James Turner [Wed, 12 Jun 2013 20:11:43 +0000 (22:11 +0200)]
Use CoreServices, not Cocoa, for FSFindFolder

11 years agoCanvasGroup: allow derived classes to provide more/other child factories
Thomas Geymayer [Tue, 11 Jun 2013 20:09:57 +0000 (22:09 +0200)]
CanvasGroup: allow derived classes to provide more/other child factories

11 years agoUse TEST_LIBS to include all libraries needed (on Mac)
Thomas Geymayer [Tue, 11 Jun 2013 18:26:07 +0000 (20:26 +0200)]
Use TEST_LIBS to include all libraries needed (on Mac)

11 years agoUse global TEST_LIBS...
Thomas Geymayer [Tue, 11 Jun 2013 17:41:29 +0000 (19:41 +0200)]
Use global TEST_LIBS...

11 years agoMissing library for Apple
Thomas Geymayer [Tue, 11 Jun 2013 16:04:06 +0000 (18:04 +0200)]
Missing library for Apple

11 years agoSGPath: new helpers and static members for home and desktop path
Thomas Geymayer [Mon, 10 Jun 2013 19:37:00 +0000 (21:37 +0200)]
SGPath: new helpers and static members for home and desktop path

11 years agostrutils: move unescape and simplify starts_with/ends_with
Thomas Geymayer [Mon, 10 Jun 2013 19:35:27 +0000 (21:35 +0200)]
strutils: move unescape and simplify starts_with/ends_with

11 years agoFix HTTP tests build.
James Turner [Sun, 9 Jun 2013 22:45:43 +0000 (23:45 +0100)]
Fix HTTP tests build.

11 years agoFix Linux build of SVN code.
James Turner [Sun, 9 Jun 2013 22:14:25 +0000 (23:14 +0100)]
Fix Linux build of SVN code.

11 years agoOptionally, use internal code for SVN syncs.
James Turner [Sun, 9 Jun 2013 18:18:32 +0000 (19:18 +0100)]
Optionally, use internal code for SVN syncs.

11 years agoSVN read-only client code using our HTTP engine.
James Turner [Thu, 25 Oct 2012 15:45:59 +0000 (16:45 +0100)]
SVN read-only client code using our HTTP engine.

11 years agoEasyXML: expose attributes easier.
James Turner [Sun, 9 Jun 2013 18:18:02 +0000 (19:18 +0100)]
EasyXML: expose attributes easier.

11 years agoBase64 and hex helpers for strings
James Turner [Sun, 9 Jun 2013 18:17:37 +0000 (19:17 +0100)]
Base64 and hex helpers for strings

11 years agosimgear::Dir helpers
James Turner [Sun, 9 Jun 2013 18:17:23 +0000 (19:17 +0100)]
simgear::Dir helpers

- remove all children of the dir
- check is the dir has children / is empty

11 years agoHTTP engine tweaks for SVN support.
James Turner [Sun, 9 Jun 2013 18:16:46 +0000 (19:16 +0100)]
HTTP engine tweaks for SVN support.

11 years agoRestructure Canvas/PropertyBasedElement
Thomas Geymayer [Sat, 8 Jun 2013 09:28:49 +0000 (11:28 +0200)]
Restructure Canvas/PropertyBasedElement

Nodes inside the osg scenegraph now hold a strong reference to
the according canvas element. Canvas elements in turn now only
hold a weak reference to the according node. This simplifies
for example the canvas::Group as it does not need to keep a
list of children on its own anymore. This is now stored inside
the scenegraph (as it was already before).

The restructuring will also allow to use a canvas::Group for
the canvas gui inside FlightGear and share for example the
handling of stacking based on z-index.

11 years agoCSSBorder: Do not return unitialized data.
Thomas Geymayer [Fri, 7 Jun 2013 16:54:41 +0000 (18:54 +0200)]
CSSBorder: Do not return unitialized data.

11 years agoCanvas: More helper functions and cleanup.
Thomas Geymayer [Fri, 7 Jun 2013 14:39:03 +0000 (16:39 +0200)]
Canvas: More helper functions and cleanup.

11 years agoCanvasGroup: Fix handling z-index while moving child to front.
Thomas Geymayer [Fri, 7 Jun 2013 14:23:44 +0000 (16:23 +0200)]
CanvasGroup: Fix handling z-index while moving child to front.

11 years agoHelper functions for SGRect and canvas::Element
Thomas Geymayer [Thu, 6 Jun 2013 20:28:00 +0000 (22:28 +0200)]
Helper functions for SGRect and canvas::Element

11 years agoCanvas: clear event listeners on destroy
Thomas Geymayer [Mon, 3 Jun 2013 21:39:11 +0000 (23:39 +0200)]
Canvas: clear event listeners on destroy

Removing all event listeneres on destroying a canvas
prevents circular references due to Nasal event listeners
keeping a reference to the canvas in their closure.

Also fix event handling with direct children of the root
group and add some more helpers to the Canvas.

11 years agoCanvas: set blend function for elements and prevent autoresize
Thomas Geymayer [Sun, 2 Jun 2013 21:32:53 +0000 (23:32 +0200)]
Canvas: set blend function for elements and prevent autoresize

11 years agoMake nasal::Ghost usable with weak_ptr
Thomas Geymayer [Sun, 2 Jun 2013 19:20:47 +0000 (21:20 +0200)]
Make nasal::Ghost usable with weak_ptr

11 years agoMore helper methods for Canvas and PropertyBasedElement.
Thomas Geymayer [Sun, 2 Jun 2013 19:19:37 +0000 (21:19 +0200)]
More helper methods for Canvas and PropertyBasedElement.

11 years agoMove BlendFunc parsing to separate file for easier reuse.
Thomas Geymayer [Sun, 2 Jun 2013 18:38:22 +0000 (20:38 +0200)]
Move BlendFunc parsing to separate file for easier reuse.

11 years agoSupport for parsing basic CSS color keywords.
Thomas Geymayer [Fri, 31 May 2013 17:18:36 +0000 (19:18 +0200)]
Support for parsing basic CSS color keywords.

11 years agoCanvas Image: fix updating while showing nested canvas.
Thomas Geymayer [Fri, 31 May 2013 17:17:30 +0000 (19:17 +0200)]
Canvas Image: fix updating while showing nested canvas.

11 years agoCanvas: add chainable helpers to Path for adding segments.
Thomas Geymayer [Fri, 31 May 2013 17:16:04 +0000 (19:16 +0200)]
Canvas: add chainable helpers to Path for adding segments.

11 years agoCanvas: separate CSSBorder parsing from image.
Thomas Geymayer [Fri, 31 May 2013 17:10:22 +0000 (19:10 +0200)]
Canvas: separate CSSBorder parsing from image.

11 years agoCanvas: bug fixing and add some helpers.
Thomas Geymayer [Fri, 31 May 2013 17:05:29 +0000 (19:05 +0200)]
Canvas: bug fixing and add some helpers.

11 years agoUse square textures for trees, with shrunk UV coordinates.
Stuart Buchanan [Sun, 19 May 2013 20:29:58 +0000 (21:29 +0100)]
Use square textures for trees, with shrunk UV coordinates.

11 years agoCanvas: Add local_pos to mouse event and fix transformation of event positions with...
Thomas Geymayer [Sun, 12 May 2013 22:34:09 +0000 (00:34 +0200)]
Canvas: Add local_pos to mouse event and fix transformation of event positions with multi-level nested canvases.

11 years agoCanvas: proper forwarding of dirty and visible flags within nested canvases.
Thomas Geymayer [Sun, 12 May 2013 22:23:34 +0000 (00:23 +0200)]
Canvas: proper forwarding of dirty and visible flags within nested canvases.

11 years agoAvoid UV bleeding issues on trees by using a strip of textures.
Stuart Buchanan [Fri, 10 May 2013 19:03:48 +0000 (20:03 +0100)]
Avoid UV bleeding issues on trees by using a strip of textures.

11 years agoUse simulation time for spin and timed animations
Thomas Geymayer [Thu, 9 May 2013 23:11:46 +0000 (01:11 +0200)]
Use simulation time for spin and timed animations

11 years agoExtend SGPickCallback to allow passing more information to callbacks
Thomas Geymayer [Thu, 9 May 2013 19:31:27 +0000 (21:31 +0200)]
Extend SGPickCallback to allow passing more information to callbacks

11 years agoAdd (optional) uv coordinates to SGPickCallback
Thomas Geymayer [Thu, 9 May 2013 10:40:59 +0000 (12:40 +0200)]
Add (optional) uv coordinates to SGPickCallback

11 years agoPrevent timer endless loops
Thomas Geymayer [Mon, 6 May 2013 21:26:45 +0000 (23:26 +0200)]
Prevent timer endless loops

11 years agoAllow adding a contition to locked-track animation
Thomas Geymayer [Wed, 1 May 2013 22:47:24 +0000 (00:47 +0200)]
Allow adding a contition to locked-track animation

11 years agoReduce the height of tree UV coordinates to work around mipmap issues.
Stuart Buchanan [Wed, 1 May 2013 21:01:45 +0000 (22:01 +0100)]
Reduce the height of tree UV coordinates to work around mipmap issues.

11 years agoExtend locked-track animation to support a slave element.
Thomas Geymayer [Sun, 28 Apr 2013 21:46:21 +0000 (23:46 +0200)]
Extend locked-track animation to support a slave element.

This allows tracking elements while at the same time changing the
rotation of both animated elements to fill the available distance
to the target element. This allows for example animating gear
scissors or other connected objects like gear doors and their
actuators/arms (possibly connected to the gear strut).

11 years agoMove and rework pow to math/SGMisc
Thomas Geymayer [Sun, 28 Apr 2013 13:43:02 +0000 (15:43 +0200)]
Move and rework pow to math/SGMisc

11 years agoWork around MSVC linker bug with classes derived from i/ofstream
Thomas Geymayer [Sat, 27 Apr 2013 21:44:32 +0000 (23:44 +0200)]
Work around MSVC linker bug with classes derived from i/ofstream

11 years agoFix linker error for test
Thomas Geymayer [Fri, 26 Apr 2013 21:48:25 +0000 (23:48 +0200)]
Fix linker error for test

11 years agoFix animation tests for low precision floating point
Thomas Geymayer [Thu, 25 Apr 2013 22:19:00 +0000 (00:19 +0200)]
Fix animation tests for low precision floating point

11 years agoRemove debug output (and shorten test names)
Thomas Geymayer [Thu, 25 Apr 2013 22:13:35 +0000 (00:13 +0200)]
Remove debug output (and shorten test names)

11 years agoAdd trackTo (locked-track) animation
Thomas Geymayer [Thu, 25 Apr 2013 21:22:04 +0000 (23:22 +0200)]
Add trackTo (locked-track) animation

11 years agoReduce the texture coords for trees.
Stuart Buchanan [Sat, 20 Apr 2013 20:05:55 +0000 (21:05 +0100)]
Reduce the texture coords for trees.

Support winter, summer and snow textures on single texture sheet.

11 years agoCanvas: rework style setter system.
Thomas Geymayer [Fri, 19 Apr 2013 22:22:37 +0000 (00:22 +0200)]
Canvas: rework style setter system.

Style setters are now only setup once for each element type and
not for each element instance as before. A static map holds the
setters for each element type. Also an animation type is stored
which will later allow to animate properties of Canvas elements
without specifying and animation type.

11 years agoCanvaImage: Enable texture repeat for images
Thomas Geymayer [Mon, 15 Apr 2013 19:09:41 +0000 (21:09 +0200)]
CanvaImage: Enable texture repeat for images

11 years agoComparison operators for SGSharedPtr
Thomas Geymayer [Sat, 13 Apr 2013 14:20:50 +0000 (16:20 +0200)]
Comparison operators for SGSharedPtr

11 years agoRestructure to avoid ordering issues.
James Turner [Sat, 13 Apr 2013 13:40:55 +0000 (14:40 +0100)]
Restructure to avoid ordering issues.

Create a pick group for each object, instead of a single one. This
can be optimised in the future but this structure is backwards-
compatible with existing usage, which is more important.

11 years agoNasal: add naVec_removelast. (Thanks to Philosopher)
Thomas Geymayer [Fri, 12 Apr 2013 10:32:03 +0000 (12:32 +0200)]
Nasal: add naVec_removelast. (Thanks to Philosopher)

11 years agoSupport for proxy pick objects.
James Turner [Fri, 5 Apr 2013 08:13:58 +0000 (09:13 +0100)]
Support for proxy pick objects.

Pick, knob and slider animations support additional object-names,
which are always invisible and untransformed (in the case of knobs/
sliders). These objects act to extend the hover/pick area, making small
switches and knobs more usable. (Especially for users with smaller
screens / windows).

11 years agoRemove stray debug.
James Turner [Tue, 2 Apr 2013 17:10:09 +0000 (18:10 +0100)]
Remove stray debug.

11 years agonasal::Ghost tweaking to allow using with osg::oberser_ptr.
Thomas Geymayer [Mon, 1 Apr 2013 11:35:41 +0000 (13:35 +0200)]
nasal::Ghost tweaking to allow using with osg::oberser_ptr.

11 years agoEnsure every scenery model has own SGModelData.
Thomas Geymayer [Mon, 1 Apr 2013 11:22:28 +0000 (13:22 +0200)]
Ensure every scenery model has own SGModelData.

This makes Nasal unload hooks of scenery objects working again.
Previously the same SGModelData instance was used for all objects
which never got destroyed and therefore was not able to call any
unload callback.

11 years agonasal::Ghost tweaking and to_nasal_helper for SGGeod.
Thomas Geymayer [Sat, 23 Mar 2013 11:47:06 +0000 (12:47 +0100)]
nasal::Ghost tweaking and to_nasal_helper for SGGeod.