]>
git.mxchange.org Git - simgear.git/log
Thomas Geymayer [Sun, 20 Jul 2014 22:24:25 +0000 (00:24 +0200)]
canvas::Layout: support for hiding items.
Thomas Geymayer [Sun, 20 Jul 2014 22:19:31 +0000 (00:19 +0200)]
cppbind: helper to call Nasal methods on NasalWidget.
Thomas Geymayer [Sun, 20 Jul 2014 21:31:32 +0000 (23:31 +0200)]
canvas::NasalWidget: check for empty setGeometry callback.
Thomas Geymayer [Sun, 20 Jul 2014 17:50:53 +0000 (19:50 +0200)]
cppbind: fix Ghost casting/storage in polymorphic class hierarchies.
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.
Thomas Geymayer [Thu, 17 Jul 2014 13:05:13 +0000 (15:05 +0200)]
canvas::BoxLayout: fix parent ref on add/remove.
Torsten Dreyer [Thu, 17 Jul 2014 12:54:35 +0000 (14:54 +0200)]
New Version: 3.3.0
Torsten Dreyer [Wed, 16 Jul 2014 12:56:49 +0000 (14:56 +0200)]
New Version: 3.2.0
Thomas Geymayer [Wed, 16 Jul 2014 17:24:41 +0000 (19:24 +0200)]
canvas::BoxLayout: set stretch factor by item.
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.
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.
Thomas Geymayer [Sat, 12 Jul 2014 09:55:38 +0000 (11:55 +0200)]
SGTrackToAnimation: supress wrong warnings.
Thomas Geymayer [Fri, 11 Jul 2014 23:05:56 +0000 (01:05 +0200)]
SGPropertyNode: add InterpolationMgr getter.
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.
Thomas Geymayer [Tue, 1 Jul 2014 10:09:55 +0000 (12:09 +0200)]
canvas::Element: fix cleanup (and hopefully crash)
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.
Thomas Geymayer [Mon, 30 Jun 2014 16:34:41 +0000 (18:34 +0200)]
pkg: Remove Install from list after uninstall.
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.
Thomas Geymayer [Sun, 29 Jun 2014 09:57:12 +0000 (11:57 +0200)]
canvas::Widget: pass ghost to onRemove handler
Thomas Geymayer [Sat, 28 Jun 2014 11:08:06 +0000 (13:08 +0200)]
canvas::BoxLayout: fix hfw layouting (fix updating size hint cache).
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...
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.
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.
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.
Thomas Geymayer [Sun, 22 Jun 2014 13:35:31 +0000 (15:35 +0200)]
SGConditionRef typedef. No functional changes.
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...
Thomas Geymayer [Sat, 21 Jun 2014 10:26:58 +0000 (12:26 +0200)]
ShivaVG: check for zero before dividing.
Thomas Geymayer [Fri, 20 Jun 2014 22:21:36 +0000 (00:21 +0200)]
Nasal: better error message for non-numeric string.
Thomas Geymayer [Thu, 19 Jun 2014 11:04:21 +0000 (13:04 +0200)]
canvas::CustomEvent: init bubbles member.
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.
Thomas Geymayer [Wed, 18 Jun 2014 16:07:42 +0000 (18:07 +0200)]
Keep md5 inside simgear and use single encodeHex implementation.
Thomas Geymayer [Tue, 17 Jun 2014 20:32:40 +0000 (22:32 +0200)]
Expose md5.h to flightgear for. Will need a better interface...
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^^
Thomas Geymayer [Tue, 17 Jun 2014 14:12:29 +0000 (16:12 +0200)]
canvas::Text: get maximum width (if displayed on a single line).
Thomas Geymayer [Mon, 16 Jun 2014 21:45:52 +0000 (23:45 +0200)]
canvas::NasalWidget: ensure nasal part is destroyed
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.
Thomas Geymayer [Sun, 15 Jun 2014 14:31:40 +0000 (16:31 +0200)]
cppbind: queue Ghosts for deletion and delete outside gc.
Thomas Geymayer [Sun, 15 Jun 2014 14:30:57 +0000 (16:30 +0200)]
canvas::Element: check if element is valid.
Thomas Geymayer [Sun, 15 Jun 2014 11:47:50 +0000 (13:47 +0200)]
canvas::Layout: proper cleanup/update on removing items.
Thomas Geymayer [Sun, 15 Jun 2014 11:52:42 +0000 (13:52 +0200)]
pkg: allow 'installed' as filter criterion.
Thomas Geymayer [Sat, 14 Jun 2014 11:19:00 +0000 (13:19 +0200)]
canvas::Layout: add clear method to remove all items.
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.
Thomas Geymayer [Thu, 12 Jun 2014 22:04:57 +0000 (00:04 +0200)]
canvas::Text: add heightForWidth method.
Thomas Geymayer [Thu, 12 Jun 2014 22:03:40 +0000 (00:03 +0200)]
canvas::Layout: support height-for-width layouting.
Thomas Geymayer [Thu, 12 Jun 2014 21:26:01 +0000 (23:26 +0200)]
Package: fix property type (description)
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.
James Turner [Thu, 12 Jun 2014 16:58:03 +0000 (17:58 +0100)]
Package: expose file size property.
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.
James Turner [Thu, 12 Jun 2014 07:50:09 +0000 (08:50 +0100)]
Pkg: qualified ID accessor.
Thomas Geymayer [Wed, 11 Jun 2014 22:35:17 +0000 (00:35 +0200)]
canvas::Layout: remove/get child items.
Thomas Geymayer [Wed, 11 Jun 2014 16:18:18 +0000 (18:18 +0200)]
Package: fix detection of unknown filter term.
Thomas Geymayer [Tue, 10 Jun 2014 22:29:17 +0000 (00:29 +0200)]
Use Boost.Test to test utf8tolatin1 - others to be converted too...
Thomas Geymayer [Tue, 10 Jun 2014 21:46:14 +0000 (23:46 +0200)]
pkg: Support for install callbacks and fix memory corruption.
James Turner [Tue, 10 Jun 2014 20:21:30 +0000 (21:21 +0100)]
Package::existingInstall helper.
Rebecca Palmer [Tue, 10 Jun 2014 19:45:05 +0000 (20:45 +0100)]
utf8ToLatin1: add test
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)
Thomas Geymayer [Tue, 10 Jun 2014 16:42:12 +0000 (18:42 +0200)]
cppbind: expose SGRect as [x, y, w, h]
Thomas Geymayer [Mon, 9 Jun 2014 22:45:03 +0000 (00:45 +0200)]
Package: use correct tag for download url.
Thomas Geymayer [Sun, 8 Jun 2014 21:30:11 +0000 (23:30 +0200)]
canvas::BoxLayout: add custom additional whitespace (spacer/stretch)
Thomas Geymayer [Sun, 8 Jun 2014 00:12:44 +0000 (02:12 +0200)]
canvas::Image: allow aspect ratio preserving display.
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
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
Thomas Geymayer [Thu, 5 Jun 2014 15:25:12 +0000 (17:25 +0200)]
canvas::Image: abort http requests if image is destroyed.
Thomas Geymayer [Thu, 5 Jun 2014 14:07:09 +0000 (16:07 +0200)]
Canvas: fix transformation of clip rect.
Thomas Geymayer [Wed, 4 Jun 2014 15:48:46 +0000 (17:48 +0200)]
canvas: BoxLayout shared pointer typedef.
Thomas Geymayer [Wed, 4 Jun 2014 15:47:29 +0000 (17:47 +0200)]
Catalog: add method to get all packages in a catalog.
Thomas Geymayer [Wed, 4 Jun 2014 15:46:35 +0000 (17:46 +0200)]
cppbind::Ghost: improve compiler error message for wrong usage.
Thomas Geymayer [Wed, 4 Jun 2014 11:41:48 +0000 (13:41 +0200)]
This has to work on windows now^^
Thomas Geymayer [Wed, 4 Jun 2014 10:17:00 +0000 (12:17 +0200)]
Hopefully fixing windows build.
Thomas Geymayer [Wed, 4 Jun 2014 01:16:02 +0000 (03:16 +0200)]
Now the real fix for old compilers...
Thomas Geymayer [Wed, 4 Jun 2014 00:46:57 +0000 (02:46 +0200)]
Fix headless build and reduce include dependencies.
Thomas Geymayer [Wed, 4 Jun 2014 00:45:52 +0000 (02:45 +0200)]
Trying to fix problems retrieving static member address with old compilers.
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.
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.
Thomas Geymayer [Mon, 2 Jun 2014 23:58:57 +0000 (01:58 +0200)]
SGSharedPtr: add constructor to convert from SGWeakPtr.
James Turner [Sun, 1 Jun 2014 10:35:26 +0000 (11:35 +0100)]
Package::match case-insensitive string comparison
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.
Thomas Geymayer [Sun, 1 Jun 2014 10:14:31 +0000 (12:14 +0200)]
Missing return statement
Thomas Geymayer [Sun, 1 Jun 2014 10:11:35 +0000 (12:11 +0200)]
Fix wrong include guard (identified by clang)
Thomas Geymayer [Sun, 1 Jun 2014 10:00:33 +0000 (12:00 +0200)]
Canvas/Layout: tweak the way elements are exposed to Nasal.
Thomas Geymayer [Sun, 1 Jun 2014 10:00:07 +0000 (12:00 +0200)]
Canvas: fix possible crash with destroyed canvasses
Thomas Geymayer [Sun, 1 Jun 2014 09:58:46 +0000 (11:58 +0200)]
Canvas: trigger immediate update from property tree/Nasal.
James Turner [Sat, 31 May 2014 17:00:38 +0000 (18:00 +0100)]
Add installedPackages() to Catalog.
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.
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.
Thomas Geymayer [Fri, 30 May 2014 22:09:56 +0000 (00:09 +0200)]
Sky dome: remove unused variables/code.
Thomas Geymayer [Fri, 30 May 2014 21:59:36 +0000 (23:59 +0200)]
cppbind: use Hash iterators to extract simgear::Map
Thomas Geymayer [Fri, 30 May 2014 21:57:55 +0000 (23:57 +0200)]
Fix for clang/template dependent name lookup.
Thanks to James & Nicholas...
Thomas Geymayer [Thu, 29 May 2014 14:34:33 +0000 (16:34 +0200)]
Canvas: allow dispatching events to Canavs itself
Thomas Geymayer [Thu, 29 May 2014 14:29:02 +0000 (16:29 +0200)]
cppbind: some new methods and safer type check.
Thomas Geymayer [Thu, 29 May 2014 12:14:52 +0000 (14:14 +0200)]
nasal::Hash: add iterators.
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.
Thomas Geymayer [Wed, 28 May 2014 22:27:50 +0000 (00:27 +0200)]
Update doxgen config and some comments.
Thomas Geymayer [Wed, 28 May 2014 16:09:34 +0000 (18:09 +0200)]
canvas::Element: setter/getter for HTML5 style data-* properties.
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.
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.
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.
Thomas Geymayer [Sun, 18 May 2014 11:29:48 +0000 (13:29 +0200)]
Canvas: support for custom events and event dispatching.
Thomas Geymayer [Sun, 18 May 2014 21:54:59 +0000 (23:54 +0200)]
cppbind.Ghost: more member overloads.
Thomas Geymayer [Sun, 18 May 2014 15:46:50 +0000 (17:46 +0200)]
Enable dynamic linking on Mac for Boost.Test