]> git.mxchange.org Git - simgear.git/log
simgear.git
10 years agocanvas::Text: fix global StateSet and line start cursor pos with empty line.
Thomas Geymayer [Sun, 31 Aug 2014 17:24:58 +0000 (19:24 +0200)]
canvas::Text: fix global StateSet and line start cursor pos with empty line.

10 years agoPartial fix for crash in SGPropertyNode::fireValueChanged
Torsten Dreyer [Fri, 29 Aug 2014 13:30:25 +0000 (15:30 +0200)]
Partial fix for crash in SGPropertyNode::fireValueChanged

The effect system used Listeners on property nodes to get the values
for shader uniforms. These listeners get deleted by an osg thread
causing access to freed memory when this happens while the main thread
calls fireValueChanged.

This patch changes the update method to polling for scalar properties.
This isn't 100% threadsafe, too. But at least it does not crash anymore.

10 years agoRemove Textures.high logic
Clément de l'Hamaide [Wed, 27 Aug 2014 20:08:20 +0000 (22:08 +0200)]
Remove Textures.high logic

10 years agoCanvas: add stroke-linejoin handling for path elements
Torsten Dreyer [Mon, 25 Aug 2014 22:05:01 +0000 (00:05 +0200)]
Canvas: add stroke-linejoin handling for path elements

10 years agocanvas::KeyboardEvent: C0/C1 control characters are not printable.
Thomas Geymayer [Mon, 25 Aug 2014 19:49:44 +0000 (21:49 +0200)]
canvas::KeyboardEvent: C0/C1 control characters are not printable.

10 years agoCanvas: add method clearFocusElement.
Thomas Geymayer [Mon, 25 Aug 2014 19:49:21 +0000 (21:49 +0200)]
Canvas: add method clearFocusElement.

10 years agocanvas::Text: clean up and expose character/cursor positions.
Thomas Geymayer [Sat, 23 Aug 2014 13:54:07 +0000 (15:54 +0200)]
canvas::Text: clean up and expose character/cursor positions.

10 years agoUse surface-lights effect for random tile lights.
Stuart Buchanan [Sun, 10 Aug 2014 19:20:42 +0000 (20:20 +0100)]
Use surface-lights effect for random tile lights.

10 years agoCanvas: prepare for keypress events.
Thomas Geymayer [Sun, 10 Aug 2014 17:39:18 +0000 (19:39 +0200)]
Canvas: prepare for keypress events.

10 years agoCanvas: fix element mouse hit detection with OSG 3.3.2.
Thomas Geymayer [Sun, 10 Aug 2014 13:36:27 +0000 (15:36 +0200)]
Canvas: fix element mouse hit detection with OSG 3.3.2.

10 years agoFix VS2010 lack of fminf
Stuart Buchanan [Sun, 10 Aug 2014 11:54:58 +0000 (12:54 +0100)]
Fix VS2010 lack of fminf

10 years agoNew materials.xml format
Stuart Buchanan [Sat, 9 Aug 2014 19:34:08 +0000 (20:34 +0100)]
New materials.xml format

10 years agoAdded some OSG headers for the correct evaluation of the OSG_VERSION_LESS_THAN macro.
bcoconni [Sat, 9 Aug 2014 17:53:19 +0000 (19:53 +0200)]
Added some OSG headers for the correct evaluation of the OSG_VERSION_LESS_THAN macro.

10 years agoUpdate for OpenSceneGraph 3.3.2 API changes.
Thomas Geymayer [Sat, 9 Aug 2014 15:18:21 +0000 (17:18 +0200)]
Update for OpenSceneGraph 3.3.2 API changes.

10 years agoAdd simple keyboard event demo application.
Thomas Geymayer [Thu, 7 Aug 2014 22:58:26 +0000 (00:58 +0200)]
Add simple keyboard event demo application.

10 years agoMove canvas::AlignmentFlag to separate file.
Thomas Geymayer [Sun, 3 Aug 2014 14:39:26 +0000 (16:39 +0200)]
Move canvas::AlignmentFlag to separate file.

Mapping in a separate file allows easier exposing of
values and string representation to Nasal.

10 years agoFix lights appearing three times.
Christian Schmitt [Sun, 3 Aug 2014 11:13:59 +0000 (13:13 +0200)]
Fix lights appearing three times.

The 3 lights showing up are fixed by my patch. It's the old way of
calculating a normal (PLIB-style) that makes them show up.

10 years agocanvas::Layout: support for alignment.
Thomas Geymayer [Sun, 3 Aug 2014 10:02:39 +0000 (12:02 +0200)]
canvas::Layout: support for alignment.

Set alignment inside layouts, taking care of where
excess space is distributed.

10 years agoLots of (mostly) doxygen fixes/cleanup.
Thomas Geymayer [Thu, 31 Jul 2014 22:13:25 +0000 (00:13 +0200)]
Lots of (mostly) doxygen fixes/cleanup.

10 years agoCanvas: Support for preventDefault() on Events.
Thomas Geymayer [Wed, 30 Jul 2014 15:16:26 +0000 (17:16 +0200)]
Canvas: Support for preventDefault() on Events.

10 years agoFallback for old Boost (also with UTF8-CPP library).
Thomas Geymayer [Wed, 30 Jul 2014 10:44:21 +0000 (12:44 +0200)]
Fallback for old Boost (also with UTF8-CPP library).

10 years agoImprove (mostly Canvas event related) documentation.
Thomas Geymayer [Tue, 29 Jul 2014 21:04:45 +0000 (23:04 +0200)]
Improve (mostly Canvas event related) documentation.

10 years agoCanvas: basic Keyboard event support (with input focus).
Thomas Geymayer [Tue, 29 Jul 2014 20:20:24 +0000 (22:20 +0200)]
Canvas: basic Keyboard event support (with input focus).

10 years agoCanvas: warn for missing tff and png plugins.
Thomas Geymayer [Sun, 27 Jul 2014 10:11:09 +0000 (12:11 +0200)]
Canvas: warn for missing tff and png plugins.

10 years agoCanvas: backdrop/stroke option for text (based on Gijs patch).
Thomas Geymayer [Sun, 27 Jul 2014 09:05:49 +0000 (11:05 +0200)]
Canvas: backdrop/stroke option for text (based on Gijs patch).

10 years agoDoxygen: disable (not working) latex output and update version.
Thomas Geymayer [Mon, 21 Jul 2014 23:02:18 +0000 (01:02 +0200)]
Doxygen: disable (not working) latex output and update version.

10 years agocanvas::Layout: support for contents margins.
Thomas Geymayer [Mon, 21 Jul 2014 22:48:42 +0000 (00:48 +0200)]
canvas::Layout: support for contents margins.

10 years agoMove overflow protected add helpers to math.
Thomas Geymayer [Mon, 21 Jul 2014 22:36:17 +0000 (00:36 +0200)]
Move overflow protected add helpers to math.

10 years agocanvas::Layout: clear parent/canvas after calling onRemove.
Thomas Geymayer [Mon, 21 Jul 2014 21:56:41 +0000 (23:56 +0200)]
canvas::Layout: clear parent/canvas after calling onRemove.

10 years agoHopefully final fix for old gcc...
Thomas Geymayer [Mon, 21 Jul 2014 11:26:09 +0000 (13:26 +0200)]
Hopefully final fix for old gcc...

10 years agoOne more fix for old gcc.
Thomas Geymayer [Mon, 21 Jul 2014 10:22:33 +0000 (12:22 +0200)]
One more fix for old gcc.

10 years agoTrying to make old gcc on Jenkins happy.
Thomas Geymayer [Mon, 21 Jul 2014 08:54:31 +0000 (10:54 +0200)]
Trying to make old gcc on Jenkins happy.

10 years agocanvas::Layout: support for hiding items.
Thomas Geymayer [Sun, 20 Jul 2014 22:24:25 +0000 (00:24 +0200)]
canvas::Layout: support for hiding items.

10 years agocppbind: helper to call Nasal methods on NasalWidget.
Thomas Geymayer [Sun, 20 Jul 2014 22:19:31 +0000 (00:19 +0200)]
cppbind: helper to call Nasal methods on NasalWidget.

10 years agocanvas::NasalWidget: check for empty setGeometry callback.
Thomas Geymayer [Sun, 20 Jul 2014 21:31:32 +0000 (23:31 +0200)]
canvas::NasalWidget: check for empty setGeometry callback.

10 years agocppbind: fix Ghost casting/storage in polymorphic class hierarchies.
Thomas Geymayer [Sun, 20 Jul 2014 17:50:53 +0000 (19:50 +0200)]
cppbind: fix Ghost casting/storage in polymorphic class hierarchies.

10 years agocanvas::Element: floating point scissor coordinates.
Thomas Geymayer [Sat, 19 Jul 2014 18:52:17 +0000 (20:52 +0200)]
canvas::Element: floating point scissor coordinates.

GL_SCISSOR itself only supports integer coordinates, but
with reference frames different from GLOBAL transforms
influence the position of the clipping frame, possibly
resulting in wrong positions due to too low precision.

10 years agocanvas::BoxLayout: fix parent ref on add/remove.
Thomas Geymayer [Thu, 17 Jul 2014 13:05:13 +0000 (15:05 +0200)]
canvas::BoxLayout: fix parent ref on add/remove.

10 years agoNew Version: 3.3.0
Torsten Dreyer [Thu, 17 Jul 2014 12:54:35 +0000 (14:54 +0200)]
New Version: 3.3.0

10 years agoNew Version: 3.2.0
Torsten Dreyer [Wed, 16 Jul 2014 12:56:49 +0000 (14:56 +0200)]
New Version: 3.2.0

10 years agocanvas::BoxLayout: set stretch factor by item.
Thomas Geymayer [Wed, 16 Jul 2014 17:24:41 +0000 (19:24 +0200)]
canvas::BoxLayout: set stretch factor by item.

10 years agoNasal: require 0o as prefix for octal numbers.
Thomas Geymayer [Mon, 14 Jul 2014 16:51:11 +0000 (18:51 +0200)]
Nasal: require 0o as prefix for octal numbers.

Using just 0 as prefix for octal number can lead to confusion
where numbers could be interpreted the wrong way (oct instead of
dec).
Lets follow the same convention as Python 3 and Ecma 262 level 6
and use '0o' as prefix which can not be confused inadvertently.

10 years agocanvas::Layout: keep user provided size hints.
Thomas Geymayer [Sat, 12 Jul 2014 15:30:33 +0000 (17:30 +0200)]
canvas::Layout: keep user provided size hints.

Don't let size hints layouted or calculated by Nasal widgets
override user provided hints.

10 years agoSGTrackToAnimation: supress wrong warnings.
Thomas Geymayer [Sat, 12 Jul 2014 09:55:38 +0000 (11:55 +0200)]
SGTrackToAnimation: supress wrong warnings.

10 years agoSGPropertyNode: add InterpolationMgr getter.
Thomas Geymayer [Fri, 11 Jul 2014 23:05:56 +0000 (01:05 +0200)]
SGPropertyNode: add InterpolationMgr getter.

10 years agoDon't restore old canvasses on reset.
Thomas Geymayer [Fri, 11 Jul 2014 17:07:53 +0000 (19:07 +0200)]
Don't restore old canvasses on reset.

No need for this anymore as PRESERVE now works as expected.
Otherwise old canvasses are restored and do not work anymore
as the placements of the new canvasses do not apply.

10 years agocanvas::Element: fix cleanup (and hopefully crash)
Thomas Geymayer [Tue, 1 Jul 2014 10:09:55 +0000 (12:09 +0200)]
canvas::Element: fix cleanup (and hopefully crash)

10 years agopkg::Package: callback for installation start.
Thomas Geymayer [Mon, 30 Jun 2014 16:36:15 +0000 (18:36 +0200)]
pkg::Package: callback for installation start.

Allow eg. Aircraft Center to add listeners to packages to
be called if installation starts.

10 years agopkg: Remove Install from list after uninstall.
Thomas Geymayer [Mon, 30 Jun 2014 16:34:41 +0000 (18:34 +0200)]
pkg: Remove Install from list after uninstall.

10 years agoHTTPRequest/pkg::Install: do not replace callbacks.
Thomas Geymayer [Mon, 30 Jun 2014 16:22:24 +0000 (18:22 +0200)]
HTTPRequest/pkg::Install: do not replace callbacks.

Keep a list of callbacks to allow registering multiple callbacks
to the same event. This is consistent with eg. jQuery.Deferred
and is needed for example to open multiple dialogs showing the
progress of installing a package at the same time.

10 years agocanvas::Widget: pass ghost to onRemove handler
Thomas Geymayer [Sun, 29 Jun 2014 09:57:12 +0000 (11:57 +0200)]
canvas::Widget: pass ghost to onRemove handler

10 years agocanvas::BoxLayout: fix hfw layouting (fix updating size hint cache).
Thomas Geymayer [Sat, 28 Jun 2014 11:08:06 +0000 (13:08 +0200)]
canvas::BoxLayout: fix hfw layouting (fix updating size hint cache).

10 years agofix g++ 4.4: "warning: suggest parentheses around ‘&&’ within ‘||’"
Thomas Geymayer [Thu, 26 Jun 2014 23:44:04 +0000 (01:44 +0200)]
fix g++ 4.4: "warning: suggest parentheses around ‘&&’ within ‘||’"

Warning does not make sense, but the old g++ complains...

10 years agoSGPath: fix creating paths with permission checker.
Thomas Geymayer [Thu, 26 Jun 2014 16:04:11 +0000 (18:04 +0200)]
SGPath: fix creating paths with permission checker.

Check permission of the whole path and not to individual
directories, as none of the intermediate directories need
to be writeable by IORules.

10 years agoNasal: fix parsing octal/hex numbers in strings as well as during lexing.
Thomas Geymayer [Thu, 26 Jun 2014 07:44:36 +0000 (09:44 +0200)]
Nasal: fix parsing octal/hex numbers in strings as well as during lexing.

Parse the same number formats (octal, dec, hex) in literals and tokens. Was
previously quite a mess, and is still not the best solution, as lexing and
string parsing uses different implementations, although they are meant to
do exactly the same conversions.

10 years agonasal::Ghost: improve intrusive pointer storage and weak references.
Thomas Geymayer [Sun, 22 Jun 2014 22:27:41 +0000 (00:27 +0200)]
nasal::Ghost: improve intrusive pointer storage and weak references.

 - Just increment/decrement reference count for intrusive
   smart pointers. No need to create an additional object
   on the heap.
 - Keep strong reference for weak pointer based ghosts
   to prevent destroying objects while beeing used.

10 years agoSGConditionRef typedef. No functional changes.
Thomas Geymayer [Sun, 22 Jun 2014 13:35:31 +0000 (15:35 +0200)]
SGConditionRef typedef. No functional changes.

10 years agoShivaVG: fix call to shCopyPixels.
Thomas Geymayer [Sat, 21 Jun 2014 11:09:29 +0000 (13:09 +0200)]
ShivaVG: fix call to shCopyPixels.

It is not used anyhow, but just in case...

10 years agoShivaVG: check for zero before dividing.
Thomas Geymayer [Sat, 21 Jun 2014 10:26:58 +0000 (12:26 +0200)]
ShivaVG: check for zero before dividing.

10 years agoNasal: better error message for non-numeric string.
Thomas Geymayer [Fri, 20 Jun 2014 22:21:36 +0000 (00:21 +0200)]
Nasal: better error message for non-numeric string.

10 years agocanvas::CustomEvent: init bubbles member.
Thomas Geymayer [Thu, 19 Jun 2014 11:04:21 +0000 (13:04 +0200)]
canvas::CustomEvent: init bubbles member.

10 years agoUse Boost.Test for strutils_test and add some md5/hex tests.
Thomas Geymayer [Wed, 18 Jun 2014 16:22:31 +0000 (18:22 +0200)]
Use Boost.Test for strutils_test and add some md5/hex tests.

10 years agoKeep md5 inside simgear and use single encodeHex implementation.
Thomas Geymayer [Wed, 18 Jun 2014 16:07:42 +0000 (18:07 +0200)]
Keep md5 inside simgear and use single encodeHex implementation.

10 years agoExpose md5.h to flightgear for. Will need a better interface...
Thomas Geymayer [Tue, 17 Jun 2014 20:32:40 +0000 (22:32 +0200)]
Expose md5.h to flightgear for. Will need a better interface...

10 years agoNasal: support for standard bitwise operators.
Thomas Geymayer [Tue, 17 Jun 2014 14:13:53 +0000 (16:13 +0200)]
Nasal: support for standard bitwise operators.

This makes bitwise operations a lot easier^^

10 years agocanvas::Text: get maximum width (if displayed on a single line).
Thomas Geymayer [Tue, 17 Jun 2014 14:12:29 +0000 (16:12 +0200)]
canvas::Text: get maximum width (if displayed on a single line).

10 years agocanvas::NasalWidget: ensure nasal part is destroyed
Thomas Geymayer [Mon, 16 Jun 2014 21:45:52 +0000 (23:45 +0200)]
canvas::NasalWidget: ensure nasal part is destroyed

10 years agoPackage: support for variants
James Turner [Sun, 15 Jun 2014 17:55:50 +0000 (19:55 +0200)]
Package: support for variants

- Catalog keeps a map from variant IDs to packages
- Package caches its ID
- Refreshing a catalog updates existing Package instances

Dropping a package from a Catalog will now warn, need to decide
a real policy for this scenario.

10 years agocppbind: queue Ghosts for deletion and delete outside gc.
Thomas Geymayer [Sun, 15 Jun 2014 14:31:40 +0000 (16:31 +0200)]
cppbind: queue Ghosts for deletion and delete outside gc.

10 years agocanvas::Element: check if element is valid.
Thomas Geymayer [Sun, 15 Jun 2014 14:30:57 +0000 (16:30 +0200)]
canvas::Element: check if element is valid.

10 years agocanvas::Layout: proper cleanup/update on removing items.
Thomas Geymayer [Sun, 15 Jun 2014 11:47:50 +0000 (13:47 +0200)]
canvas::Layout: proper cleanup/update on removing items.

10 years agopkg: allow 'installed' as filter criterion.
Thomas Geymayer [Sun, 15 Jun 2014 11:52:42 +0000 (13:52 +0200)]
pkg: allow 'installed' as filter criterion.

10 years agocanvas::Layout: add clear method to remove all items.
Thomas Geymayer [Sat, 14 Jun 2014 11:19:00 +0000 (13:19 +0200)]
canvas::Layout: add clear method to remove all items.

10 years agoSimple Markdown parser.
Thomas Geymayer [Fri, 13 Jun 2014 17:12:56 +0000 (19:12 +0200)]
Simple Markdown parser.

Parse just a tiny subset of Markdown, to basically collapse
multiple whitespace and do paragraphs only after two newlines.
Also one-level, unordered lists are supported. The output can
be eg. directly forwarded to canvas::Text.

10 years agocanvas::Text: add heightForWidth method.
Thomas Geymayer [Thu, 12 Jun 2014 22:04:57 +0000 (00:04 +0200)]
canvas::Text: add heightForWidth method.

10 years agocanvas::Layout: support height-for-width layouting.
Thomas Geymayer [Thu, 12 Jun 2014 22:03:40 +0000 (00:03 +0200)]
canvas::Layout: support height-for-width layouting.

10 years agoPackage: fix property type (description)
Thomas Geymayer [Thu, 12 Jun 2014 21:26:01 +0000 (23:26 +0200)]
Package: fix property type (description)

10 years agopkg: Fix recursion in Install destructor.
Thomas Geymayer [Thu, 12 Jun 2014 21:21:56 +0000 (23:21 +0200)]
pkg: Fix recursion in Install destructor.

Prevent creating a shared pointer from this in
destructor, which would lead to recursively
calling the descructor.

10 years agoPackage: expose file size property.
James Turner [Thu, 12 Jun 2014 16:58:03 +0000 (17:58 +0100)]
Package: expose file size property.

10 years agoPkg: record live installs in Catalog.
James Turner [Thu, 12 Jun 2014 14:26:05 +0000 (15:26 +0100)]
Pkg: record live installs in Catalog.

Ensures active Installs can be found immediately after creation.

10 years agoPkg: qualified ID accessor.
James Turner [Thu, 12 Jun 2014 07:50:09 +0000 (08:50 +0100)]
Pkg: qualified ID accessor.

10 years agocanvas::Layout: remove/get child items.
Thomas Geymayer [Wed, 11 Jun 2014 22:35:17 +0000 (00:35 +0200)]
canvas::Layout: remove/get child items.

10 years agoPackage: fix detection of unknown filter term.
Thomas Geymayer [Wed, 11 Jun 2014 16:18:18 +0000 (18:18 +0200)]
Package: fix detection of unknown filter term.

10 years agoUse Boost.Test to test utf8tolatin1 - others to be converted too...
Thomas Geymayer [Tue, 10 Jun 2014 22:29:17 +0000 (00:29 +0200)]
Use Boost.Test to test utf8tolatin1 - others to be converted too...

10 years agopkg: Support for install callbacks and fix memory corruption.
Thomas Geymayer [Tue, 10 Jun 2014 21:46:14 +0000 (23:46 +0200)]
pkg: Support for install callbacks and fix memory corruption.

10 years agoPackage::existingInstall helper.
James Turner [Tue, 10 Jun 2014 20:21:30 +0000 (21:21 +0100)]
Package::existingInstall helper.

10 years agoutf8ToLatin1: add test
Rebecca Palmer [Tue, 10 Jun 2014 19:45:05 +0000 (20:45 +0100)]
utf8ToLatin1: add test

10 years agoutf8ToLatin1: return original instead of crashing on non-UTF-8 input
Rebecca Palmer [Tue, 10 Jun 2014 18:30:09 +0000 (19:30 +0100)]
utf8ToLatin1: return original instead of crashing on non-UTF-8 input

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750859
(In the long run we should probably fix the underlying
inconsistent-text-encodings problem, but probably not in time for 3.2)

10 years agocppbind: expose SGRect as [x, y, w, h]
Thomas Geymayer [Tue, 10 Jun 2014 16:42:12 +0000 (18:42 +0200)]
cppbind: expose SGRect as [x, y, w, h]

10 years agoPackage: use correct tag for download url.
Thomas Geymayer [Mon, 9 Jun 2014 22:45:03 +0000 (00:45 +0200)]
Package: use correct tag for download url.

10 years agocanvas::BoxLayout: add custom additional whitespace (spacer/stretch)
Thomas Geymayer [Sun, 8 Jun 2014 21:30:11 +0000 (23:30 +0200)]
canvas::BoxLayout: add custom additional whitespace (spacer/stretch)

10 years agocanvas::Image: allow aspect ratio preserving display.
Thomas Geymayer [Sun, 8 Jun 2014 00:12:44 +0000 (02:12 +0200)]
canvas::Image: allow aspect ratio preserving display.

10 years agoDowngrade "Please decompress this texture for increased portability"
Rebecca Palmer [Sat, 7 Jun 2014 07:26:30 +0000 (08:26 +0100)]
Downgrade "Please decompress this texture for increased portability"
to a warning (logged but not displayed by default),
to avoid needlessly annoying end users

10 years agoFix over-read error in the test suite
Rebecca Palmer [Sat, 7 Jun 2014 07:25:13 +0000 (08:25 +0100)]
Fix over-read error in the test suite

https://buildd.debian.org/status/fetch.php?pkg=simgear&arch=mips&ver=3.0.0~git20140123%2Bf16c99-1&stamp=1391666349

10 years agocanvas::Image: abort http requests if image is destroyed.
Thomas Geymayer [Thu, 5 Jun 2014 15:25:12 +0000 (17:25 +0200)]
canvas::Image: abort http requests if image is destroyed.

10 years agoCanvas: fix transformation of clip rect.
Thomas Geymayer [Thu, 5 Jun 2014 14:07:09 +0000 (16:07 +0200)]
Canvas: fix transformation of clip rect.

10 years agocanvas: BoxLayout shared pointer typedef.
Thomas Geymayer [Wed, 4 Jun 2014 15:48:46 +0000 (17:48 +0200)]
canvas: BoxLayout shared pointer typedef.

10 years agoCatalog: add method to get all packages in a catalog.
Thomas Geymayer [Wed, 4 Jun 2014 15:47:29 +0000 (17:47 +0200)]
Catalog: add method to get all packages in a catalog.

10 years agocppbind::Ghost: improve compiler error message for wrong usage.
Thomas Geymayer [Wed, 4 Jun 2014 15:46:35 +0000 (17:46 +0200)]
cppbind::Ghost: improve compiler error message for wrong usage.

10 years agoThis has to work on windows now^^
Thomas Geymayer [Wed, 4 Jun 2014 11:41:48 +0000 (13:41 +0200)]
This has to work on windows now^^