]> git.mxchange.org Git - simgear.git/log
simgear.git
9 years agoFix PagedLOD for random objects.
Stuart Buchanan [Fri, 28 Nov 2014 21:57:37 +0000 (21:57 +0000)]
Fix PagedLOD for random objects.

- Only generate the object set and flights from the data once.
- Only expire the PagedLOD node after a suitable period of time.

10 years agoNasal: add an naRef to ghosts to allow for proper gc of dependent objects/ghosts.
Thomas Geymayer [Sun, 23 Nov 2014 22:39:56 +0000 (23:39 +0100)]
Nasal: add an naRef to ghosts to allow for proper gc of dependent objects/ghosts.

This allows for binding the lifetime of any nasal object to
the lifetime of a ghost. Otherwise circular references from
objects saved within the ghost would prevent the ghost from
being garbage collected.

10 years agoFix two bugs in random object placement
Stuart Buchanan [Fri, 21 Nov 2014 22:14:03 +0000 (22:14 +0000)]
Fix two bugs in random object placement

10 years agoMake expiry time for paged models settable from props
Torsten Dreyer [Wed, 19 Nov 2014 16:23:29 +0000 (17:23 +0100)]
Make expiry time for paged models settable from props

Our paged models used the default minimumExpiryTime of zero seconds
which caused frequent stutter with AI traffic loaded.
This patch sets the minimumExpiryTime to 180 seconds, more than enough
to hold the models in memory during a full standard rate turn.

The property to set the expiry time is
/sim/rendering/plod-minimum-expiry-time-secs

10 years agoUniformFactory: fix Rembrandt light
Clément de l'Hamaide [Wed, 12 Nov 2014 21:31:19 +0000 (22:31 +0100)]
UniformFactory: fix Rembrandt light

10 years agoSupport alpha for cloud definitions Thorsten RENK
Stuart Buchanan [Thu, 13 Nov 2014 20:38:28 +0000 (20:38 +0000)]
Support alpha for cloud definitions Thorsten RENK

10 years agoMerge FreeBSD patches.
James Turner [Tue, 11 Nov 2014 22:29:24 +0000 (22:29 +0000)]
Merge FreeBSD patches.

Taken from:
http://svnweb.freebsd.org/ports/head/devel/simgear/files/

10 years agoLimit number of random objects per triangle
Stuart Buchanan [Fri, 7 Nov 2014 22:22:55 +0000 (22:22 +0000)]
Limit number of random objects per triangle

10 years agoChange parameter name to avoid clash with cull-face
Stuart Buchanan [Mon, 27 Oct 2014 22:40:27 +0000 (22:40 +0000)]
Change parameter name to avoid clash with cull-face

10 years agoPass whether light is directional to shader.
Stuart Buchanan [Tue, 21 Oct 2014 19:27:46 +0000 (20:27 +0100)]
Pass whether light is directional to shader.

Patch from Thorsten RENK.

10 years agoPrecipitation updates from ThorstenR
Torsten Dreyer [Tue, 21 Oct 2014 08:44:13 +0000 (10:44 +0200)]
Precipitation updates from ThorstenR

Since the consensus seems to be that the precipitation clipping issue is with the panel code, attached is  my proposed update for the precipitation system in SG and FG

* without corresponding control structures in FGData it falls back to default, except I have fixed an inconsistency in freezing behavior - previously rain changed suddenly to snow when the temperature dropped below zero, but the reverse transition was dragged out and gave odd visible motion with the wind as snow gradually changed back to rain with the particle speed not well defined. Now both transitions are sudden. And I see no more particles flow against the wind

* with

 <!-- definitions for the detailed precipitation manager -->
 <precipitation-control>
     <rain-droplet-size type="float" userarchive="n">0.015</rain-droplet-size>
     <snow-flake-size type="float" userarchive="n">0.03</snow-flake-size>
     <detailed-precipitation type="bool" userarchive="n">false</detailed-precipitation>
     <illumination type="float" userarchive="n">1.0</illumination>
     <clip-distance type="float" userarchive="n">5.0</clip-distance>
  </precipitation-control>

added to Environment/environment.xml, the new system allows to switch more detailed management on. This provides

* explicit setting of rain droplet size and snow flake size by the weather system

* automatic sqrt(r) scaling of the vertical speed of raindrops

* automatic transition to snow when freezing for small droplets but hail for large droplet sizes (looks like snow, but has different particle dynamics)

* an illumination scaling factor to dim the precipitating based on the light we have in the scene (I still need to devise a property rule to set this automatically)

The clip distance is also exposed now and considered at startup of the system - might be useful for e.g. airships when the gas bag provides rain cover (?)   or to be simply off for open airplanes

10 years agoSet sun color below horizon
Torsten Dreyer [Wed, 8 Oct 2014 10:45:01 +0000 (12:45 +0200)]
Set sun color below horizon

Thorsten Renk:
The following patch sets the sun color to alpha=0 when
the sun is below the local horizon, removing the oddity
that the sun is seen 'through' the terrain when the terrain
at large distance is rendered by the skydome.

10 years agoFurther work to clean up UniformCache for Effects
Stuart Buchanan [Sat, 27 Sep 2014 21:05:30 +0000 (22:05 +0100)]
Further work to clean up UniformCache for Effects

10 years agoMerge branch 'UniformFactory' into next
Torsten Dreyer [Sat, 27 Sep 2014 19:50:44 +0000 (21:50 +0200)]
Merge branch 'UniformFactory' into next

Merging in Stuart's fix for the Effect system

10 years agoA better fix for crash in the Effect System
Torsten Dreyer [Sat, 27 Sep 2014 19:48:36 +0000 (21:48 +0200)]
A better fix for crash in the Effect System

Stuart has improved the UniformCache approach, here are his
changes:
- We have a UniformCache so that each unique Uniform is only created once
- As part of the UniformFactory we also have a queue of listeners that are still to be added
- When the main thread sends an Update node visitor across the Effects,
  all queued listeners are de-queued and added.

10 years agoFix compiler warnings.
Thomas Geymayer [Mon, 22 Sep 2014 16:24:13 +0000 (18:24 +0200)]
Fix compiler warnings.

10 years agoLet ENABLE_TESTS enable/disable also the new Boost.Tests.
Thomas Geymayer [Mon, 22 Sep 2014 16:21:52 +0000 (18:21 +0200)]
Let ENABLE_TESTS enable/disable also the new Boost.Tests.

10 years agoImprove the <usage> tag feature
Clément de l'Hamaide [Sun, 21 Sep 2014 20:05:45 +0000 (22:05 +0200)]
Improve the <usage> tag feature

Do not load the <model> if <usage> tag is found as child.
Instead the load is triggered later by FlightGear

10 years agocppbind: check if ghost is of wrong type.
Thomas Geymayer [Mon, 15 Sep 2014 21:42:12 +0000 (23:42 +0200)]
cppbind: check if ghost is of wrong type.

 - Throw an exception if converting an object
   from Nasal fails due to a wrong type (nil
   does not throw).
 - Update cppbind test cases accordingly (and
   refactor another test suite to use Boost.
   Test).

10 years agofirst stab at UniformFactory
Torsten Dreyer [Fri, 5 Sep 2014 09:16:28 +0000 (11:16 +0200)]
first stab at UniformFactory

10 years agoRevert "Partial fix for crash in SGPropertyNode::fireValueChanged"
Torsten Dreyer [Fri, 5 Sep 2014 09:28:28 +0000 (11:28 +0200)]
Revert "Partial fix for crash in SGPropertyNode::fireValueChanged"

This reverts commit f33ad357e928b5210c87cb8977d3cc88deba811b.

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.