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

10 years agocppbind: from_nasal/to_nasal for SGWeakReferenced based objects
Thomas Geymayer [Sat, 10 May 2014 08:36:13 +0000 (10:36 +0200)]
cppbind: from_nasal/to_nasal for SGWeakReferenced based objects

10 years agoCanvas: move window from flightgear.
Thomas Geymayer [Fri, 9 May 2014 14:01:25 +0000 (16:01 +0200)]
Canvas: move window from flightgear.

10 years agoSGWeakReferenced: fix for clang.
Thomas Geymayer [Fri, 9 May 2014 09:52:42 +0000 (11:52 +0200)]
SGWeakReferenced: fix for clang.

10 years agoFix for CMake 2.6
Thomas Geymayer [Thu, 8 May 2014 09:17:06 +0000 (11:17 +0200)]
Fix for CMake 2.6

No named arguments for add_test in CMake 2.6.

10 years agoAdd smart pointer tests (finally using Boost.Test)
Thomas Geymayer [Thu, 8 May 2014 00:02:36 +0000 (02:02 +0200)]
Add smart pointer tests (finally using Boost.Test)

10 years agoFix use count for deleted, reference counted objects.
Thomas Geymayer [Wed, 7 May 2014 23:42:25 +0000 (01:42 +0200)]
Fix use count for deleted, reference counted objects.

Remove inconsitency of returning 0 or ~0. If the object
has been deleted there are no more references, so always
return 0.

10 years agoAdd support for using SGWeakPtr with virtual base classes.
Thomas Geymayer [Wed, 7 May 2014 22:19:36 +0000 (00:19 +0200)]
Add support for using SGWeakPtr with virtual base classes.

 - Add SGVirtualWeakReferenced to be used as base class
   for reference counted objects supporting weak references
   and virtual base classes.
 - Modify SGWeakPtr to copy with SGVirtualWeakReferenced
   objects.

10 years agoCanvas: base Elements/Canvas on SGWeakReferenced.
Thomas Geymayer [Tue, 6 May 2014 16:07:23 +0000 (18:07 +0200)]
Canvas: base Elements/Canvas on SGWeakReferenced.

10 years agocppbind: add naContext/naRef overload to Ghost::_set
Thomas Geymayer [Tue, 6 May 2014 14:11:13 +0000 (16:11 +0200)]
cppbind: add naContext/naRef overload to Ghost::_set

10 years agoSGSharedPtr/SGWeakPtr: add some methods/operators
Thomas Geymayer [Tue, 6 May 2014 14:06:33 +0000 (16:06 +0200)]
SGSharedPtr/SGWeakPtr: add some methods/operators

 - allow placing SGWeakPtr in sorted STL containers (eg. requiring
   operator<)
 - add reset() like for boost::shared_ptr/boost::weak_ptr
 - add helper to extract pointer from SGWeakPtr

10 years agocppbind: small logging/warning updates.
Thomas Geymayer [Mon, 5 May 2014 12:51:33 +0000 (14:51 +0200)]
cppbind: small logging/warning updates.

10 years agocppbind.Ghost: register _set called on setting new properties.
Thomas Geymayer [Mon, 5 May 2014 12:49:50 +0000 (14:49 +0200)]
cppbind.Ghost: register _set called on setting new properties.

10 years agocppbind: disable special handling of 'parents' for ghost.
Thomas Geymayer [Mon, 5 May 2014 12:48:29 +0000 (14:48 +0200)]
cppbind: disable special handling of 'parents' for ghost.

10 years agoNasal: allow ghost as 'me' for 'call'
Thomas Geymayer [Mon, 5 May 2014 12:47:10 +0000 (14:47 +0200)]
Nasal: allow ghost as 'me' for 'call'

10 years agofix for sgGetBuckets. Northern most buckets in the bounding box were left out
Peter Sadrozinski [Wed, 16 Apr 2014 14:18:13 +0000 (10:18 -0400)]
fix for sgGetBuckets.  Northern most buckets in the bounding box were left out

10 years agomath/nasal: Add more SGRect members and nasal helper.
Thomas Geymayer [Tue, 15 Apr 2014 08:04:37 +0000 (10:04 +0200)]
math/nasal: Add more SGRect members and nasal helper.

10 years agofix windows build
Peter Sadrozinski [Sun, 6 Apr 2014 16:14:44 +0000 (12:14 -0400)]
fix windows build

10 years ago- secondary tc and vertex attribs in .btg file
Peter Sadrozinski [Sat, 11 Jan 2014 03:42:16 +0000 (22:42 -0500)]
- secondary tc and vertex attribs in .btg file
- decrease debug when writing btg files
- deprecate some set_xxx apis

10 years agoFixed for FreeBSD
James Turner [Thu, 3 Apr 2014 12:42:11 +0000 (13:42 +0100)]
Fixed for FreeBSD

(From Gerald Laplanche)