]> git.mxchange.org Git - simgear.git/log
simgear.git
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^^

10 years agoHopefully fixing windows build.
Thomas Geymayer [Wed, 4 Jun 2014 10:17:00 +0000 (12:17 +0200)]
Hopefully fixing windows build.

10 years agoNow the real fix for old compilers...
Thomas Geymayer [Wed, 4 Jun 2014 01:16:02 +0000 (03:16 +0200)]
Now the real fix for old compilers...

10 years agoFix headless build and reduce include dependencies.
Thomas Geymayer [Wed, 4 Jun 2014 00:46:57 +0000 (02:46 +0200)]
Fix headless build and reduce include dependencies.

10 years agoTrying to fix problems retrieving static member address with old compilers.
Thomas Geymayer [Wed, 4 Jun 2014 00:45:52 +0000 (02:45 +0200)]
Trying to fix problems retrieving static member address with old compilers.

10 years agoFix for old versions of Boost.
Thomas Geymayer [Tue, 3 Jun 2014 18:34:21 +0000 (20:34 +0200)]
Fix for old versions of Boost.

No support for BOOST_STATIC_ASSERT_MSG before Boost 1.46.

10 years agocppbind::Ghost: safely use strong and weak references.
Thomas Geymayer [Tue, 3 Jun 2014 07:55:32 +0000 (09:55 +0200)]
cppbind::Ghost: safely use strong and weak references.

Allow using strong and weak references within the same
class hierarchy and seemlessly convert between them -
from and to Nasal.

10 years agoSGSharedPtr: add constructor to convert from SGWeakPtr.
Thomas Geymayer [Mon, 2 Jun 2014 23:58:57 +0000 (01:58 +0200)]
SGSharedPtr: add constructor to convert from SGWeakPtr.

10 years agoPackage::match case-insensitive string comparison
James Turner [Sun, 1 Jun 2014 10:35:26 +0000 (11:35 +0100)]
Package::match case-insensitive string comparison

10 years agoSubstring search of package name/description.
James Turner [Sun, 1 Jun 2014 10:28:10 +0000 (11:28 +0100)]
Substring search of package name/description.

Note this only searches the current locale, should potentially also
search the default locale too.

10 years agoMissing return statement
Thomas Geymayer [Sun, 1 Jun 2014 10:14:31 +0000 (12:14 +0200)]
Missing return statement

10 years agoFix wrong include guard (identified by clang)
Thomas Geymayer [Sun, 1 Jun 2014 10:11:35 +0000 (12:11 +0200)]
Fix wrong include guard (identified by clang)

10 years agoCanvas/Layout: tweak the way elements are exposed to Nasal.
Thomas Geymayer [Sun, 1 Jun 2014 10:00:33 +0000 (12:00 +0200)]
Canvas/Layout: tweak the way elements are exposed to Nasal.

10 years agoCanvas: fix possible crash with destroyed canvasses
Thomas Geymayer [Sun, 1 Jun 2014 10:00:07 +0000 (12:00 +0200)]
Canvas: fix possible crash with destroyed canvasses

10 years agoCanvas: trigger immediate update from property tree/Nasal.
Thomas Geymayer [Sun, 1 Jun 2014 09:58:46 +0000 (11:58 +0200)]
Canvas: trigger immediate update from property tree/Nasal.

10 years agoAdd installedPackages() to Catalog.
James Turner [Sat, 31 May 2014 17:00:38 +0000 (18:00 +0100)]
Add installedPackages() to Catalog.

10 years agoUpdate package classes ownership model.
James Turner [Sat, 31 May 2014 15:46:49 +0000 (16:46 +0100)]
Update package classes ownership model.

Use SGReferences as the base for package classes, so they can be
exposed directly to Nasal by cppbind.

10 years agoCanvas: basic layouting system.
Thomas Geymayer [Sat, 31 May 2014 00:40:59 +0000 (02:40 +0200)]
Canvas: basic layouting system.

Support for vertical and horizontal layouts. More layouts and
widgets can be created using Nasal.

10 years agoSky dome: remove unused variables/code.
Thomas Geymayer [Fri, 30 May 2014 22:09:56 +0000 (00:09 +0200)]
Sky dome: remove unused variables/code.

10 years agocppbind: use Hash iterators to extract simgear::Map
Thomas Geymayer [Fri, 30 May 2014 21:59:36 +0000 (23:59 +0200)]
cppbind: use Hash iterators to extract simgear::Map

10 years agoFix for clang/template dependent name lookup.
Thomas Geymayer [Fri, 30 May 2014 21:57:55 +0000 (23:57 +0200)]
Fix for clang/template dependent name lookup.

Thanks to James & Nicholas...

10 years agoCanvas: allow dispatching events to Canavs itself
Thomas Geymayer [Thu, 29 May 2014 14:34:33 +0000 (16:34 +0200)]
Canvas: allow dispatching events to Canavs itself

10 years agocppbind: some new methods and safer type check.
Thomas Geymayer [Thu, 29 May 2014 14:29:02 +0000 (16:29 +0200)]
cppbind: some new methods and safer type check.

10 years agonasal::Hash: add iterators.
Thomas Geymayer [Thu, 29 May 2014 12:14:52 +0000 (14:14 +0200)]
nasal::Hash: add iterators.

10 years agoPropertyBasedElement: extend HTML5 (Canvas) data props interface
Thomas Geymayer [Wed, 28 May 2014 22:29:12 +0000 (00:29 +0200)]
PropertyBasedElement: extend HTML5 (Canvas) data props interface

Allow check if property exists and removing properties.

10 years agoUpdate doxgen config and some comments.
Thomas Geymayer [Wed, 28 May 2014 22:27:50 +0000 (00:27 +0200)]
Update doxgen config and some comments.

10 years agocanvas::Element: setter/getter for HTML5 style data-* properties.
Thomas Geymayer [Wed, 28 May 2014 16:09:34 +0000 (18:09 +0200)]
canvas::Element: setter/getter for HTML5 style data-* properties.

10 years agocanvas: exclude data-* properties from triggering an update.
Thomas Geymayer [Tue, 27 May 2014 15:54:37 +0000 (17:54 +0200)]
canvas: exclude data-* properties from triggering an update.

Allows using data-* properties on canvas and elements,
similar to HTML5, without triggering a new rendering of
the canvas.

10 years agoShivaVG: get rid of glu dependency.
Thomas Geymayer [Tue, 27 May 2014 15:50:49 +0000 (17:50 +0200)]
ShivaVG: get rid of glu dependency.

We do not use the image rendering part anyhow, so
just disable it for now. If we want to use it we
will need a modified implementation anyhow to
integrate with OpenSceneGraph threaded OpenGL
resource management.

10 years agoFix bad Nasal parse of ‘foo[]’.
James Turner [Tue, 27 May 2014 09:05:17 +0000 (10:05 +0100)]
Fix bad Nasal parse of ‘foo[]’.

When a vector subscript is empty, don’t parse it as ‘[foo]’, instead
print a parse error.

Fix by Nicholas Scheel & Thomas Geymayer.

10 years agoCanvas: support for custom events and event dispatching.
Thomas Geymayer [Sun, 18 May 2014 11:29:48 +0000 (13:29 +0200)]
Canvas: support for custom events and event dispatching.

10 years agocppbind.Ghost: more member overloads.
Thomas Geymayer [Sun, 18 May 2014 21:54:59 +0000 (23:54 +0200)]
cppbind.Ghost: more member overloads.

10 years agoEnable dynamic linking on Mac for Boost.Test
Thomas Geymayer [Sun, 18 May 2014 15:46:50 +0000 (17:46 +0200)]
Enable dynamic linking on Mac for Boost.Test

10 years agocppbind.Ghost: clean up a bit
Thomas Geymayer [Sun, 18 May 2014 14:24:24 +0000 (16:24 +0200)]
cppbind.Ghost: clean up a bit

10 years agocppbind: convert maps from nasal.
Thomas Geymayer [Sun, 18 May 2014 11:33:10 +0000 (13:33 +0200)]
cppbind: convert maps from nasal.

10 years agocppbind.Ghost: register _get called on retrieving unset member.
Thomas Geymayer [Sun, 18 May 2014 11:31:31 +0000 (13:31 +0200)]
cppbind.Ghost: register _get called on retrieving unset member.

Allow registering a callback on ghosts called upon retrieving
an unset member.