James Turner
7a7fcf10ad
Fix missing include for non-Mac
2013-09-18 22:13:04 +01:00
James Turner
b9bd2734eb
Persistent SVN update cache.
...
Make the already present cache of updated URLs persistent, with a
definable lifetime, currently 24 hours. This ensures terrasync-ed
resources are checked less often (max once per day) instead of each
FGFS launch, which should greatly cut down requests to the backend.
2013-09-18 21:40:35 +01:00
James Turner
9c7bd4f5d5
HTTP Client improvements
...
- max connections limit, and parallel connections to a single host where possible.
(Will permit updating terrain and Models / Airports / data in parallel)
- add LGPL headers
- give HTTP::Client a private impl class, to keep header simple.
2013-09-18 12:17:38 +01:00
James Turner
362d47f91f
Kill legacy PPM support in screen-dump
2013-09-18 12:17:29 +01:00
James Turner
a18792c397
Printf format sanitising.
...
Refactored version for next, use a new helper in
simgear::strutils.
2013-09-15 13:30:12 +01:00
James Turner
0e2ddb2f16
Bah, tested on the wrong compiler, so missed a file.
2013-09-14 18:05:53 +01:00
James Turner
bcfadd6657
Prefix GCC version constant.
...
From: Markus Wanner <markus@bluegap.ch>
2013-09-14 17:29:59 +01:00
Thomas Geymayer
021cf1a2b4
Remove temporary file and add to .gitignore
2013-09-07 14:28:46 +02:00
James Turner
acf86be516
Rename MD5 code.
...
Linux crashes with this code seem to relate
to multiple instances of these symbols. Prefix
the SimGear versions to prove/disprove this.
2013-09-04 08:45:06 +01:00
James Turner
dd93eb88f2
Ensure sglog() singleton is threadsafe.
...
Slightly simplistic, but definitiely correct, method
for ensuring singleton creation is threadsafe. Can
be optimised if lock contention is ever an issue.
2013-09-04 08:45:06 +01:00
James Turner
e06f9e35b3
Tweak for 64-bit Linux linkage.
2013-09-04 08:45:06 +01:00
James Turner
c0424aba7e
SG part of fix for TerraSync models.
...
Ensure we search the TerraSync models tree before the FG_ROOT one,
since the TerraSync one contains newer files and updates to the base
one.
2013-08-29 22:13:43 +01:00
Thomas Geymayer
b468254d73
Fix #1163
2013-08-17 17:47:23 +02:00
Tom Paoletti
15e3e92ec2
Performance optimization: empty() instead of size()>0
...
empty() is guaranteed to be constant complexity for both vectors and lists, while size() has linear complexity for lists.
2013-08-16 16:48:35 +01:00
James Turner
ee403fd83a
No need to deal with OSG versions pre 3.0
2013-07-29 22:53:31 +01:00
James Turner
05f266ac10
HTTP SVN fixes, cap max update-report depth.
2013-07-28 21:07:40 +01:00
James Turner
f52c0026dd
Better reporting when an HTTP request fails.
2013-07-28 21:06:17 +01:00
Thomas Geymayer
a284107249
Canvas: ensure render order equals order in property tree.
...
Prevents also changing the render order if changing eg. the size
of a Canvas.
2013-07-26 23:31:46 +02:00
James Turner
a2e25e7940
Fix for #587 , crash on break/continue.
...
Look for use of break/continue outside of a loop context,
and report a parser error instead of crashed. Thanks to
Philosopher for the patch.
2013-07-23 21:58:38 +01:00
James Turner
d45a0161cf
Initialise token precedence rule.
...
Thanks to Philosopher for the catch.
2013-07-23 21:51:47 +01:00
James Turner
c7a5d15e7a
Bug 585, assignment to multiple l-values.
...
Disambiguate multiple-values from function invocation. Will merge
to release branch after testing.
2013-07-23 09:45:22 +01:00
James Turner
3cb2241b1d
Bug 737, crash parsing default args.
...
Reject function evaluation explicitly when building
default arguments.
2013-07-23 09:45:22 +01:00
Thomas Geymayer
b236821661
Canvas: Ensure all element types are initialized before first usage.
...
If setting properties on a group a check is performed if
this property exists on any possible child element, and
only if this is the case the property is stored in the
groups style.
Previously elements have been only initialized during
their first usage, leading to ignored styles if they
have been set on a parent element before instantiating
an instance of the actual element type.
2013-07-20 15:45:02 +02:00
Thomas Geymayer
fc75b0bd21
Canvas::Text: add line-height property.
2013-07-19 23:38:08 +02:00
Thomas Geymayer
a9fc84d568
Canvas: clip region rounding and catch negative size.
2013-07-19 23:37:04 +02:00
Thomas Geymayer
b15c6d887d
Canvas: don't crash with invalid clip rect
2013-07-18 15:35:44 +02:00
Thomas Geymayer
c2f89978ff
canvas::Element: Fix bounding box calculation of groups
2013-07-18 14:16:13 +02:00
James Turner
a004153223
Bump version on development trunk.
2013-07-17 20:29:22 +01:00
Thomas Geymayer
dde2bbcbe7
nasal::String: add ends_with method
2013-07-15 22:26:11 +02:00
Thomas Geymayer
7bd572f3ec
Fix inverted checks...
2013-07-13 14:06:11 +02:00
Thomas Geymayer
486011dceb
Fix for OSG without OSG_INIT_SINGLETON_PROXY
2013-07-13 11:37:24 +02:00
Thomas Geymayer
01c45633b7
Canvas::Group: Print warning message if using expired Group instead of crashing
2013-07-12 18:00:53 +02:00
Thomas Geymayer
5320d0ecaa
Fix render order of canvas elements
2013-07-12 16:13:06 +02:00
Thomas Geymayer
757ba03918
CSSBorder fix: width/height swapped
2013-07-06 12:05:19 +02:00
Thomas Geymayer
948db69cc9
interpolate without values is used to abort interpolating -> no warning
2013-07-04 19:46:27 +02:00
Thomas Geymayer
92f363926e
Replace auto_ptr to prevent possible undefined behavior
2013-07-04 16:09:04 +02:00
Thomas Geymayer
d0ff144753
Canvas: Fix removing text elements.
...
Removing text elements failed due to prefering removing the
style property with the same name. Add a flag to each style
indicating whether it can be inherited. The text property
is only applicable to text elements and can not be inherited.
Now groups can not have a text property, avoiding the name
clash with the text element.
2013-07-04 14:11:54 +02:00
Thomas Geymayer
943efbb3ed
Canvas Event System: add missing currentTarget field.
2013-07-04 00:53:49 +02:00
Thomas Geymayer
6962de4b1f
Canvas: fix property inheritance.
...
- Do not override style of children if they have own values set.
- Retrieve style of parent if own style value has been removed.
2013-07-03 00:05:20 +02:00
Thomas Geymayer
6f7c0c23d1
Canvas: prevent bubbling of mouseenter and mouseleave.
2013-06-30 21:27:03 +02:00
Thomas Geymayer
14eccc70da
Restore compatibility with stable OSG (3.0.1)
2013-06-30 21:25:21 +02:00
Thomas Geymayer
d4b48cec5d
Canvas: clear mousedown/click if mouse leaves canvas.
2013-06-29 14:29:38 +02:00
Thomas Geymayer
2d23c5351f
Canvas: Improve checks to mark events as handled.
2013-06-29 14:16:39 +02:00
Thomas Geymayer
b5dfaf170a
Canvas: Ensure events are dispatched to canvas with no element hit.
2013-06-29 14:14:12 +02:00
Thomas Geymayer
c372591f36
Canvas: Ignore hidden element on event traversal.
2013-06-29 14:12:59 +02:00
Thomas Geymayer
36d1308aa6
Canvas: fix distance check for click events.
2013-06-29 14:11:19 +02:00
Thomas Geymayer
b0d6ed3844
Canvas: trigger missing events on mouseup.
...
On mouseup send mouseout/mouseleave to old element and
mouseenter/mouseover to new element. This fixes hover
actions after dragging.
2013-06-29 11:33:44 +02:00
Torsten Dreyer
5818366d92
Bump version number to 2.12.0
2013-06-28 12:09:30 +02:00
James Turner
e5bca74b9d
std::string namespace fixes.
2013-06-27 10:14:08 +01:00
Thomas Geymayer
82dd1e4be9
Set binding after color array (required by OSG 3.1.8)
2013-06-27 00:38:44 +02:00