]> git.mxchange.org Git - simgear.git/log
simgear.git
11 years agoTerrasync: Expose transfer rate as a property.
James Turner [Fri, 27 Sep 2013 17:23:51 +0000 (18:23 +0100)]
Terrasync: Expose transfer rate as a property.

11 years agoHTTP bugfix + enhancement.
James Turner [Fri, 27 Sep 2013 17:20:03 +0000 (18:20 +0100)]
HTTP bugfix + enhancement.

Track 'waiting for response' state explicitly, so we don't
falsely report IDLE when waiting for a response.

Expose bytes-per-second download rate as metric.

11 years agoAllow TerraSync to be inited early.
James Turner [Thu, 26 Sep 2013 11:11:48 +0000 (12:11 +0100)]
Allow TerraSync to be inited early.

Add explicit subsystem state tracking so we can safely init()
terrasync very early during startup, and hence overlap lengthy operations
(Shared Models sync and initial NavCache build)

11 years agoParallel sync of items.
James Turner [Wed, 25 Sep 2013 15:31:10 +0000 (16:31 +0100)]
Parallel sync of items.

When using built-in sync code, separate items into distinct slots.
Slots process items sequentially, but each slot works in parallel (using
a single shared HTTP engine). This allows tiles to be synced in parallel
with airports/shared models data, greatly increasing responsiveness
to get tiles synced on initial launch.

11 years agoRename WaitingTile to WaitingSyncItem.
James Turner [Mon, 23 Sep 2013 17:20:16 +0000 (18:20 +0100)]
Rename WaitingTile to WaitingSyncItem.

We already synchronise other things besides tiles, and will soon want different
behaviour based on the type of item we're syncing (so we can synchronize some items in parallel). Rename the struct to be clearer, and add an enum encoding the type of item for future use.

11 years agoLibsvn / APR dependency is removed.
James Turner [Mon, 23 Sep 2013 17:05:37 +0000 (18:05 +0100)]
Libsvn / APR dependency is removed.

Remove any use of libsubversion / API in Simgear, and always
compile the built-in SVN client code.

11 years agoFix no-svn build (Win64 only at present)
James Turner [Fri, 20 Sep 2013 08:18:43 +0000 (09:18 +0100)]
Fix no-svn build (Win64 only at present)

11 years agoAttempting to fix import/export linkage on Windows.
James Turner [Thu, 19 Sep 2013 21:07:41 +0000 (22:07 +0100)]
Attempting to fix import/export linkage on Windows.

Hopefully this tells the Expat headers not to do any clever
declspec(import) or export stuff, which we don't want since we only
use the symbols within SimGearCore, and don't export them.

11 years agoEven more forcing of include file names.
James Turner [Thu, 19 Sep 2013 20:58:23 +0000 (21:58 +0100)]
Even more forcing of include file names.

(It's a good thing Windows doesn't ship Expat, since apparently
every other platform does)

11 years agoChange got lost in the move/rename, not good.
James Turner [Thu, 19 Sep 2013 20:47:40 +0000 (21:47 +0100)]
Change got lost in the move/rename, not good.

11 years agoIntermediate static libs have issues.
James Turner [Thu, 19 Sep 2013 20:42:28 +0000 (21:42 +0100)]
Intermediate static libs have issues.

Switch back to including the bundled expat sources directly in the
targets, since transitive linking of static libs is very awkward.
Makes static build happy again (let's see what else breaks)

11 years agoMove bundled Expat to new home.
James Turner [Thu, 19 Sep 2013 19:12:32 +0000 (20:12 +0100)]
Move bundled Expat to new home.

Renamed bundled Expat headers to avoid any
possibility of accidental including system headers when
using bundled Expat, or vice-versa. Should help with SVN
crashes reported by Thomas.

11 years agorand(), not random(), for Windows.
James Turner [Thu, 19 Sep 2013 07:57:34 +0000 (08:57 +0100)]
rand(), not random(), for Windows.

11 years agoFix HTTP unit test.
James Turner [Wed, 18 Sep 2013 21:55:11 +0000 (22:55 +0100)]
Fix HTTP unit test.

Also fix a signed/unsigned warning I caused.

11 years agoFix missing include for non-Mac
James Turner [Wed, 18 Sep 2013 21:13:04 +0000 (22:13 +0100)]
Fix missing include for non-Mac

11 years agoPersistent SVN update cache.
James Turner [Mon, 24 Jun 2013 06:46:27 +0000 (07:46 +0100)]
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.

11 years agoHTTP Client improvements
James Turner [Tue, 25 Jun 2013 06:55:20 +0000 (07:55 +0100)]
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.

11 years agoKill legacy PPM support in screen-dump
James Turner [Wed, 18 Sep 2013 11:17:29 +0000 (12:17 +0100)]
Kill legacy PPM support in screen-dump

11 years agoPrintf format sanitising.
James Turner [Sun, 15 Sep 2013 12:30:12 +0000 (13:30 +0100)]
Printf format sanitising.

Refactored version for next, use a new helper in
simgear::strutils.

11 years agoBah, tested on the wrong compiler, so missed a file.
James Turner [Sat, 14 Sep 2013 17:05:53 +0000 (18:05 +0100)]
Bah, tested on the wrong compiler, so missed a file.

11 years agoPrefix GCC version constant.
James Turner [Sat, 14 Sep 2013 16:29:59 +0000 (17:29 +0100)]
Prefix GCC version constant.

From: Markus Wanner <markus@bluegap.ch>

11 years agoRemove temporary file and add to .gitignore
Thomas Geymayer [Sat, 7 Sep 2013 12:28:46 +0000 (14:28 +0200)]
Remove temporary file and add to .gitignore

11 years agoRename MD5 code.
James Turner [Wed, 4 Sep 2013 07:43:20 +0000 (08:43 +0100)]
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.

11 years agoEnsure sglog() singleton is threadsafe.
James Turner [Wed, 4 Sep 2013 07:32:05 +0000 (08:32 +0100)]
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.

11 years agoTweak for 64-bit Linux linkage.
James Turner [Wed, 4 Sep 2013 07:31:29 +0000 (08:31 +0100)]
Tweak for 64-bit Linux linkage.

11 years agoSG part of fix for TerraSync models.
James Turner [Thu, 29 Aug 2013 21:13:43 +0000 (22:13 +0100)]
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.

11 years agoFix #1163
Thomas Geymayer [Sat, 17 Aug 2013 15:47:23 +0000 (17:47 +0200)]
Fix #1163

11 years agoPerformance optimization: empty() instead of size()>0
Tom Paoletti [Fri, 22 Mar 2013 02:27:30 +0000 (19:27 -0700)]
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.

11 years agoNo need to deal with OSG versions pre 3.0
James Turner [Mon, 29 Jul 2013 21:53:31 +0000 (22:53 +0100)]
No need to deal with OSG versions pre 3.0

11 years agoHTTP SVN fixes, cap max update-report depth.
James Turner [Sun, 28 Jul 2013 20:07:40 +0000 (21:07 +0100)]
HTTP SVN fixes, cap max update-report depth.

11 years agoBetter reporting when an HTTP request fails.
James Turner [Sun, 28 Jul 2013 20:06:17 +0000 (21:06 +0100)]
Better reporting when an HTTP request fails.

11 years agoCanvas: ensure render order equals order in property tree.
Thomas Geymayer [Fri, 26 Jul 2013 21:31:44 +0000 (23:31 +0200)]
Canvas: ensure render order equals order in property tree.

Prevents also changing the render order if changing eg. the size
of a Canvas.

11 years agoFix for #587, crash on break/continue.
James Turner [Tue, 23 Jul 2013 20:58:38 +0000 (21:58 +0100)]
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.

11 years agoInitialise token precedence rule.
James Turner [Tue, 23 Jul 2013 20:51:47 +0000 (21:51 +0100)]
Initialise token precedence rule.

Thanks to Philosopher for the catch.

11 years agoBug 585, assignment to multiple l-values.
James Turner [Tue, 23 Jul 2013 08:44:53 +0000 (09:44 +0100)]
Bug 585, assignment to multiple l-values.

Disambiguate multiple-values from function invocation. Will merge
to release branch after testing.

11 years agoBug 737, crash parsing default args.
James Turner [Tue, 23 Jul 2013 08:43:08 +0000 (09:43 +0100)]
Bug 737, crash parsing default args.

Reject function evaluation explicitly when building
default arguments.

11 years agoCanvas: Ensure all element types are initialized before first usage.
Thomas Geymayer [Sat, 20 Jul 2013 13:45:02 +0000 (15:45 +0200)]
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.

11 years agoCanvas::Text: add line-height property.
Thomas Geymayer [Fri, 19 Jul 2013 21:38:08 +0000 (23:38 +0200)]
Canvas::Text: add line-height property.

11 years agoCanvas: clip region rounding and catch negative size.
Thomas Geymayer [Fri, 19 Jul 2013 21:37:04 +0000 (23:37 +0200)]
Canvas: clip region rounding and catch negative size.

11 years agoCanvas: don't crash with invalid clip rect
Thomas Geymayer [Thu, 18 Jul 2013 13:35:44 +0000 (15:35 +0200)]
Canvas: don't crash with invalid clip rect

11 years agocanvas::Element: Fix bounding box calculation of groups
Thomas Geymayer [Thu, 18 Jul 2013 12:15:57 +0000 (14:15 +0200)]
canvas::Element: Fix bounding box calculation of groups

11 years agoBump version on development trunk.
James Turner [Wed, 17 Jul 2013 19:29:22 +0000 (20:29 +0100)]
Bump version on development trunk.

11 years agonasal::String: add ends_with method
Thomas Geymayer [Mon, 15 Jul 2013 20:26:11 +0000 (22:26 +0200)]
nasal::String: add ends_with method

11 years agoFix inverted checks...
Thomas Geymayer [Sat, 13 Jul 2013 12:06:11 +0000 (14:06 +0200)]
Fix inverted checks...

11 years agoFix for OSG without OSG_INIT_SINGLETON_PROXY
Thomas Geymayer [Sat, 13 Jul 2013 09:37:24 +0000 (11:37 +0200)]
Fix for OSG without OSG_INIT_SINGLETON_PROXY

11 years agoCanvas::Group: Print warning message if using expired Group instead of crashing
Thomas Geymayer [Fri, 12 Jul 2013 15:48:21 +0000 (17:48 +0200)]
Canvas::Group: Print warning message if using expired Group instead of crashing

11 years agoFix render order of canvas elements
Thomas Geymayer [Fri, 12 Jul 2013 14:13:06 +0000 (16:13 +0200)]
Fix render order of canvas elements

11 years agoCSSBorder fix: width/height swapped
Thomas Geymayer [Sat, 6 Jul 2013 10:05:19 +0000 (12:05 +0200)]
CSSBorder fix: width/height swapped

11 years agointerpolate without values is used to abort interpolating -> no warning
Thomas Geymayer [Thu, 4 Jul 2013 17:46:27 +0000 (19:46 +0200)]
interpolate without values is used to abort interpolating -> no warning

11 years agoReplace auto_ptr to prevent possible undefined behavior
Thomas Geymayer [Thu, 4 Jul 2013 14:08:58 +0000 (16:08 +0200)]
Replace auto_ptr to prevent possible undefined behavior

11 years agoCanvas: Fix removing text elements.
Thomas Geymayer [Thu, 4 Jul 2013 12:11:54 +0000 (14:11 +0200)]
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.

11 years agoCanvas Event System: add missing currentTarget field.
Thomas Geymayer [Wed, 3 Jul 2013 22:53:49 +0000 (00:53 +0200)]
Canvas Event System: add missing currentTarget field.

11 years agoCanvas: fix property inheritance.
Thomas Geymayer [Tue, 2 Jul 2013 20:42:46 +0000 (22:42 +0200)]
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.

11 years agoCanvas: prevent bubbling of mouseenter and mouseleave.
Thomas Geymayer [Sun, 30 Jun 2013 19:27:03 +0000 (21:27 +0200)]
Canvas: prevent bubbling of mouseenter and mouseleave.

11 years agoRestore compatibility with stable OSG (3.0.1)
Thomas Geymayer [Sun, 30 Jun 2013 19:25:21 +0000 (21:25 +0200)]
Restore compatibility with stable OSG (3.0.1)

11 years agoCanvas: clear mousedown/click if mouse leaves canvas.
Thomas Geymayer [Sat, 29 Jun 2013 12:29:38 +0000 (14:29 +0200)]
Canvas: clear mousedown/click if mouse leaves canvas.

11 years agoCanvas: Improve checks to mark events as handled.
Thomas Geymayer [Sat, 29 Jun 2013 12:16:39 +0000 (14:16 +0200)]
Canvas: Improve checks to mark events as handled.

11 years agoCanvas: Ensure events are dispatched to canvas with no element hit.
Thomas Geymayer [Sat, 29 Jun 2013 12:14:12 +0000 (14:14 +0200)]
Canvas: Ensure events are dispatched to canvas with no element hit.

11 years agoCanvas: Ignore hidden element on event traversal.
Thomas Geymayer [Sat, 29 Jun 2013 12:12:59 +0000 (14:12 +0200)]
Canvas: Ignore hidden element on event traversal.

11 years agoCanvas: fix distance check for click events.
Thomas Geymayer [Sat, 29 Jun 2013 12:11:19 +0000 (14:11 +0200)]
Canvas: fix distance check for click events.

11 years agoCanvas: trigger missing events on mouseup.
Thomas Geymayer [Sat, 29 Jun 2013 09:33:40 +0000 (11:33 +0200)]
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.

11 years agoBump version number to 2.12.0
Torsten Dreyer [Fri, 28 Jun 2013 10:09:30 +0000 (12:09 +0200)]
Bump version number to 2.12.0

11 years agostd::string namespace fixes.
James Turner [Thu, 27 Jun 2013 09:13:58 +0000 (10:13 +0100)]
std::string namespace fixes.

11 years agoSet binding after color array (required by OSG 3.1.8)
Thomas Geymayer [Wed, 26 Jun 2013 22:38:44 +0000 (00:38 +0200)]
Set binding after color array (required by OSG 3.1.8)

11 years agoEnsure compatibility with OSG 3.1.8.
Alex Romosan [Wed, 26 Jun 2013 21:53:07 +0000 (23:53 +0200)]
Ensure compatibility with OSG 3.1.8.

11 years agoFix crash when telnet or other protocols close.
James Turner [Wed, 26 Jun 2013 20:50:27 +0000 (21:50 +0100)]
Fix crash when telnet or other protocols close.

http://code.google.com/p/flightgear-bugs/issues/detail?id=1144

11 years agoXCode warning fixes.
James Turner [Sat, 22 Jun 2013 15:15:41 +0000 (16:15 +0100)]
XCode warning fixes.

11 years agoFix a warning spotted by Emilian.
James Turner [Sat, 22 Jun 2013 15:15:30 +0000 (16:15 +0100)]
Fix a warning spotted by Emilian.

11 years agoObject names for STG groups / nodes.
James Turner [Sat, 22 Jun 2013 13:27:53 +0000 (14:27 +0100)]
Object names for STG groups / nodes.

11 years agoFix preview exclusion of sliders.
James Turner [Sat, 22 Jun 2013 13:27:18 +0000 (14:27 +0100)]
Fix preview exclusion of sliders.

11 years agoFix pick callbacks on scenery.
James Turner [Sat, 22 Jun 2013 10:59:42 +0000 (11:59 +0100)]
Fix pick callbacks on scenery.

Ensure pick callbacks work over the whole pick group, otherwise
the visible render group is hit first, and resolves to the ground
pick callback instead.

This fixes the hangar doors at KSFO and Moffett.

11 years agoCanvas: Fix creating/forwarding of mouseenter/mouseleave events.
Thomas Geymayer [Thu, 20 Jun 2013 21:13:10 +0000 (23:13 +0200)]
Canvas: Fix creating/forwarding of mouseenter/mouseleave events.

11 years agoWindows SGPath::desktop() impl
James Turner [Wed, 19 Jun 2013 22:58:57 +0000 (23:58 +0100)]
Windows SGPath::desktop() impl

Basic SHGetSpecialFolderPath wrapper, with dynamic
finding of the function since linking to shell32.dll
is painful. Obviously could be generalised to other
CSIDLs in the future.

11 years agoFix preprocessor boolean ops for MSVC
James Turner [Wed, 19 Jun 2013 08:04:15 +0000 (09:04 +0100)]
Fix preprocessor boolean ops for MSVC

11 years agoSVN client - prefix error constants.
James Turner [Wed, 19 Jun 2013 07:42:30 +0000 (08:42 +0100)]
SVN client - prefix error constants.

Avoid Windows clashes on common names (NO_ERROR, etc)

11 years agoCanvas: fix updating placements after non matching placements
Thomas Geymayer [Tue, 18 Jun 2013 21:07:20 +0000 (23:07 +0200)]
Canvas: fix updating placements after non matching placements

11 years agocanvas::Text: Make font resolution user configurable
Thomas Geymayer [Sun, 16 Jun 2013 08:49:46 +0000 (10:49 +0200)]
canvas::Text: Make font resolution user configurable

11 years agocanvas::Text: set font resolution to actual texel size.
Thomas Geymayer [Fri, 14 Jun 2013 21:33:26 +0000 (23:33 +0200)]
canvas::Text: set font resolution to actual texel size.

11 years agoCanvasGroup: Do not try to remove already removed children.
Thomas Geymayer [Fri, 14 Jun 2013 17:47:09 +0000 (19:47 +0200)]
CanvasGroup: Do not try to remove already removed children.

11 years agoFix #1139
Thomas Geymayer [Wed, 12 Jun 2013 21:56:04 +0000 (23:56 +0200)]
Fix #1139

Always set TEST_LIBS as applications/tools also need to link
them, even if tests are disabled. Also allow disabling building
of sg_pkgutil.

11 years agoUse CoreServices, not Cocoa, for FSFindFolder
James Turner [Wed, 12 Jun 2013 20:11:43 +0000 (22:11 +0200)]
Use CoreServices, not Cocoa, for FSFindFolder

11 years agoCanvasGroup: allow derived classes to provide more/other child factories
Thomas Geymayer [Tue, 11 Jun 2013 20:09:57 +0000 (22:09 +0200)]
CanvasGroup: allow derived classes to provide more/other child factories

11 years agoUse TEST_LIBS to include all libraries needed (on Mac)
Thomas Geymayer [Tue, 11 Jun 2013 18:26:07 +0000 (20:26 +0200)]
Use TEST_LIBS to include all libraries needed (on Mac)

11 years agoUse global TEST_LIBS...
Thomas Geymayer [Tue, 11 Jun 2013 17:41:29 +0000 (19:41 +0200)]
Use global TEST_LIBS...

11 years agoMissing library for Apple
Thomas Geymayer [Tue, 11 Jun 2013 16:04:06 +0000 (18:04 +0200)]
Missing library for Apple

11 years agoSGPath: new helpers and static members for home and desktop path
Thomas Geymayer [Mon, 10 Jun 2013 19:37:00 +0000 (21:37 +0200)]
SGPath: new helpers and static members for home and desktop path

11 years agostrutils: move unescape and simplify starts_with/ends_with
Thomas Geymayer [Mon, 10 Jun 2013 19:35:27 +0000 (21:35 +0200)]
strutils: move unescape and simplify starts_with/ends_with

11 years agoFix HTTP tests build.
James Turner [Sun, 9 Jun 2013 22:45:43 +0000 (23:45 +0100)]
Fix HTTP tests build.

11 years agoFix Linux build of SVN code.
James Turner [Sun, 9 Jun 2013 22:14:25 +0000 (23:14 +0100)]
Fix Linux build of SVN code.

11 years agoOptionally, use internal code for SVN syncs.
James Turner [Sun, 9 Jun 2013 18:18:32 +0000 (19:18 +0100)]
Optionally, use internal code for SVN syncs.

11 years agoSVN read-only client code using our HTTP engine.
James Turner [Thu, 25 Oct 2012 15:45:59 +0000 (16:45 +0100)]
SVN read-only client code using our HTTP engine.

11 years agoEasyXML: expose attributes easier.
James Turner [Sun, 9 Jun 2013 18:18:02 +0000 (19:18 +0100)]
EasyXML: expose attributes easier.

11 years agoBase64 and hex helpers for strings
James Turner [Sun, 9 Jun 2013 18:17:37 +0000 (19:17 +0100)]
Base64 and hex helpers for strings

11 years agosimgear::Dir helpers
James Turner [Sun, 9 Jun 2013 18:17:23 +0000 (19:17 +0100)]
simgear::Dir helpers

- remove all children of the dir
- check is the dir has children / is empty

11 years agoHTTP engine tweaks for SVN support.
James Turner [Sun, 9 Jun 2013 18:16:46 +0000 (19:16 +0100)]
HTTP engine tweaks for SVN support.

11 years agoRestructure Canvas/PropertyBasedElement
Thomas Geymayer [Sat, 8 Jun 2013 09:28:49 +0000 (11:28 +0200)]
Restructure Canvas/PropertyBasedElement

Nodes inside the osg scenegraph now hold a strong reference to
the according canvas element. Canvas elements in turn now only
hold a weak reference to the according node. This simplifies
for example the canvas::Group as it does not need to keep a
list of children on its own anymore. This is now stored inside
the scenegraph (as it was already before).

The restructuring will also allow to use a canvas::Group for
the canvas gui inside FlightGear and share for example the
handling of stacking based on z-index.

11 years agoCSSBorder: Do not return unitialized data.
Thomas Geymayer [Fri, 7 Jun 2013 16:54:41 +0000 (18:54 +0200)]
CSSBorder: Do not return unitialized data.

11 years agoCanvas: More helper functions and cleanup.
Thomas Geymayer [Fri, 7 Jun 2013 14:39:03 +0000 (16:39 +0200)]
Canvas: More helper functions and cleanup.

11 years agoCanvasGroup: Fix handling z-index while moving child to front.
Thomas Geymayer [Fri, 7 Jun 2013 14:23:44 +0000 (16:23 +0200)]
CanvasGroup: Fix handling z-index while moving child to front.

11 years agoHelper functions for SGRect and canvas::Element
Thomas Geymayer [Thu, 6 Jun 2013 20:28:00 +0000 (22:28 +0200)]
Helper functions for SGRect and canvas::Element