]> git.mxchange.org Git - flightgear.git/log
flightgear.git
11 years agoFix some uninitialized variables (found by valgrind)
Christian Schmitt [Sun, 10 Mar 2013 00:24:57 +0000 (01:24 +0100)]
Fix some uninitialized variables (found by valgrind)

11 years agoClean up mouse-input property handling.
James Turner [Fri, 8 Mar 2013 16:34:21 +0000 (16:34 +0000)]
Clean up mouse-input property handling.

Use a listener to avoid reading state each event/update. Support setting some values on the SGKnobAnimation configure global behaviour.

11 years agoDisable native cursor on Windows for now.
James Turner [Thu, 7 Mar 2013 19:33:46 +0000 (19:33 +0000)]
Disable native cursor on Windows for now.

There's an unfortunate interaction with osgViewer on Windows that needs to be resolved, before the can switched on.

11 years agoPass key-mod state into pick-callbacks.
James Turner [Thu, 7 Mar 2013 18:41:38 +0000 (18:41 +0000)]
Pass key-mod state into pick-callbacks.

Allow pick-callbacks to get the current mod-state at all times. (Required for matching SG change)

11 years agoReplacing strdup with _strdup in MSVC
PlutoniumHeart [Thu, 7 Mar 2013 07:00:47 +0000 (00:00 -0700)]
Replacing strdup with _strdup in MSVC

11 years agoClean up/simplify NasalPositioned_cppbind
Thomas Geymayer [Wed, 6 Mar 2013 22:21:29 +0000 (23:21 +0100)]
Clean up/simplify NasalPositioned_cppbind

Ensure all FGPositioned related functions return SGSharedPtr
instead of raw pointers to allow automatic conversion to
nasal ghosts without custom helper functions.

11 years agoWindows cursor implementation.
James Turner [Wed, 6 Mar 2013 18:22:37 +0000 (18:22 +0000)]
Windows cursor implementation.

This does not (yet) support custom cursor images, but can be easily
extended to do so.

11 years agoCore data class for PolyLine handling.
James Turner [Wed, 6 Mar 2013 17:22:34 +0000 (17:22 +0000)]
Core data class for PolyLine handling.

This is all unused yet, but defines the simple model for polyLines.

11 years agoMake Ctrl+axis bindings explicit (and work).
James Turner [Wed, 6 Mar 2013 14:24:29 +0000 (14:24 +0000)]
Make Ctrl+axis bindings explicit (and work).

Thanks to Clement/F-JJTH for the fix.

11 years agoPort more airport/navaid methods to cppbind
Thomas Geymayer [Wed, 6 Mar 2013 00:04:18 +0000 (01:04 +0100)]
Port more airport/navaid methods to cppbind

11 years agoTypos, license headers...
Thomas Geymayer [Wed, 6 Mar 2013 00:03:47 +0000 (01:03 +0100)]
Typos, license headers...

11 years agoWindows cursor handling stubs.
James Turner [Tue, 5 Mar 2013 20:59:05 +0000 (20:59 +0000)]
Windows cursor handling stubs.

11 years agoForgot GPL license on new files.
James Turner [Tue, 5 Mar 2013 20:53:43 +0000 (20:53 +0000)]
Forgot GPL license on new files.

11 years agoMapWidget: Show counties and towns as well, depending on the zoom.
Christian Schmitt [Tue, 5 Mar 2013 17:24:44 +0000 (18:24 +0100)]
MapWidget: Show counties and towns as well, depending on the zoom.
Some colors added.

11 years agoParse geod/position and use it with new airportinfo.
Thomas Geymayer [Tue, 5 Mar 2013 16:29:48 +0000 (17:29 +0100)]
Parse geod/position and use it with new airportinfo.

11 years agoFix updating of mouse position props.
James Turner [Tue, 5 Mar 2013 14:31:58 +0000 (14:31 +0000)]
Fix updating of mouse position props.

Some cockpits rely on mouse position props being updated even when using a dragged pick-callback. Thanks to Clement for noticing. Re-structured so however we process the mouse (PUI, pick-callback, normal motion), we always update the props.

11 years agoStray debug message, remove.
James Turner [Tue, 5 Mar 2013 14:29:14 +0000 (14:29 +0000)]
Stray debug message, remove.

11 years agoFix crash starting at heliport.
James Turner [Tue, 5 Mar 2013 13:19:10 +0000 (13:19 +0000)]
Fix crash starting at heliport.

Don't assume FGAirports have runways, they might only have helipads.

11 years agoMore explicit check for cursor feedback.
James Turner [Tue, 5 Mar 2013 08:40:17 +0000 (08:40 +0000)]
More explicit check for cursor feedback.

11 years agoMouseInput changes to support hover.
James Turner [Sat, 9 Feb 2013 16:05:54 +0000 (16:05 +0000)]
MouseInput changes to support hover.

This adds the framework for platform cursor implementations; Windows and X11 to be done.
It also extend the mouse-input code to generate hover events suitable for driving tooltips.

Note there should be no visible functionality change from this commit, since everything
is inactive until fgdata changes are made.

11 years agoFinish porting airportinfo to cppbind
Thomas Geymayer [Mon, 4 Mar 2013 22:14:26 +0000 (23:14 +0100)]
Finish porting airportinfo to cppbind

11 years agoReport std::exception in main loop
Thomas Geymayer [Mon, 4 Mar 2013 22:13:36 +0000 (23:13 +0100)]
Report std::exception in main loop

11 years agoStart porting NasalPositioned to cppbind.
Thomas Geymayer [Mon, 4 Mar 2013 18:24:47 +0000 (19:24 +0100)]
Start porting NasalPositioned to cppbind.

For now it is available in the positioned Nasal
module. FGAirport is fully ported, but especially
procedures/navaids and free functions are still
missing.

11 years agoClean up/prepare for porting NasalPositioned to cppbind
Thomas Geymayer [Mon, 4 Mar 2013 15:31:37 +0000 (16:31 +0100)]
Clean up/prepare for porting NasalPositioned to cppbind

11 years agoMapWidget: make use of the new POI system and display cities on the map.
Christian Schmitt [Sun, 3 Mar 2013 23:27:12 +0000 (00:27 +0100)]
MapWidget: make use of the new POI system and display cities on the map.
This is meant as a preview.

11 years agoNasalCanvas: clean up
Thomas Geymayer [Sun, 3 Mar 2013 19:57:08 +0000 (20:57 +0100)]
NasalCanvas: clean up

11 years agoUpdate for nasal::Ghost changes
Thomas Geymayer [Sun, 3 Mar 2013 14:27:06 +0000 (15:27 +0100)]
Update for nasal::Ghost changes

11 years agoLook for MSVC 3rdparty deps differently.
James Turner [Sun, 3 Mar 2013 16:08:01 +0000 (16:08 +0000)]
Look for MSVC 3rdparty deps differently.

Check for the 3rdparty dir in the parent of build dir, not the parent of the source dir. For the recommended build layout, this is the same location, but for super-builds using fgmeta it's not (and the source tree should not be touched).

If this causes anyone issues, please let me know, since it's possible more flexibility is needed to set the path explicitly.

11 years agoAdd points of interest (POI) database to FGPositioned. Useful for maps and GPS instru...
Christian Schmitt [Sun, 3 Mar 2013 13:17:37 +0000 (14:17 +0100)]
Add points of interest (POI) database to FGPositioned. Useful for maps and GPS instruments.

Can display country, city, towns and villages names worldwide.

11 years agoPositioned/Cache tweaks to support PoIs.
James Turner [Sat, 2 Mar 2013 13:44:20 +0000 (13:44 +0000)]
Positioned/Cache tweaks to support PoIs.

In preparation for adding POI data, extend the FGPositioned type enum, and the cache code to handle arbitrary POI types. (Adding more in the future is straightforward now)

Also support removing user waypoints, which was requested by the Garmin G196 developers.

11 years agoExpose more runway methods to Nasal
Christian Schmitt [Thu, 28 Feb 2013 20:33:32 +0000 (21:33 +0100)]
Expose more runway methods to Nasal

11 years agoFix missing includes
Christian Schmitt [Thu, 28 Feb 2013 19:16:26 +0000 (20:16 +0100)]
Fix missing includes

11 years agoRemove isReciprocal from FGRunway.
James Turner [Thu, 28 Feb 2013 18:21:23 +0000 (18:21 +0000)]
Remove isReciprocal from FGRunway.

This was a bogus concept, either runways have a reciprocal or not (if singled-ended), really this was simply exposing an artefact of the apt.dat encoding. Change to an API which gives what is actually wanted - the ability to extract an airport's runways without any reciprocals included.

11 years agoConvert runway parser and all internals to metric units and 2 runway ends.
Christian Schmitt [Thu, 21 Feb 2013 21:47:01 +0000 (22:47 +0100)]
Convert runway parser and all internals to metric units and 2 runway ends.

This eliminates many conversations between ft and m and gives us runway start/end
points that are needed for many calculations. Also, this prepares the internals for
the upcoming apt.dat 850+ format that uses the metric system as well as start/end points.

11 years agoupdate gitignore
Christian Schmitt [Wed, 27 Feb 2013 10:36:37 +0000 (11:36 +0100)]
update gitignore

11 years agoCanvas Window: use new CanvasImage method to handle events
Thomas Geymayer [Thu, 28 Feb 2013 00:15:44 +0000 (01:15 +0100)]
Canvas Window: use new CanvasImage method to handle events

11 years agoExpose heliports to Nasal for future use in maps
Christian Schmitt [Thu, 21 Feb 2013 15:14:44 +0000 (16:14 +0100)]
Expose heliports to Nasal for future use in maps

11 years agoCanvasWidget: automatically set auto-viewport.
Thomas Geymayer [Mon, 25 Feb 2013 14:39:30 +0000 (15:39 +0100)]
CanvasWidget: automatically set auto-viewport.

If no viewport dimensions are given the viewport
will now automatically resize, otherwise it stays
unchanged.

11 years agoCanvasWidget: add auto-viewport property.
Thomas Geymayer [Mon, 25 Feb 2013 14:30:01 +0000 (15:30 +0100)]
CanvasWidget: add auto-viewport property.

The auto-viewport property allows to disable automatic
update of the canvas viewport update upon resizing
the PUI canvas widget.

11 years agoapt_loader.cxx: 810 helipads are now treated as such internally
Christian Schmitt [Sun, 24 Feb 2013 21:18:49 +0000 (22:18 +0100)]
apt_loader.cxx: 810 helipads are now treated as such internally

11 years agoapt_loader.cxx: update version parsing to 4-digit versions,
Christian Schmitt [Sun, 24 Feb 2013 21:03:29 +0000 (22:03 +0100)]
apt_loader.cxx: update version parsing to 4-digit versions,
some tweaks according to the spec.

11 years agoFix for bug, ILS not visible in map on first run.
James Turner [Sat, 23 Feb 2013 14:51:00 +0000 (14:51 +0000)]
Fix for bug, ILS not visible in map on first run.

When calling setILS, in-memory runways did not get updated. This showed up in the map, but also affecting a few other places. Will port this to 2.10.1 when that process starts.

11 years agoVersion the navache filename.
James Turner [Thu, 21 Feb 2013 17:42:06 +0000 (17:42 +0000)]
Version the navache filename.

Be friendly to people switching between 2.10 and dev (2.11), don't force a rebuild each time.

11 years agoGive the FGAirport class a sane filename.
James Turner [Thu, 21 Feb 2013 11:32:02 +0000 (11:32 +0000)]
Give the FGAirport class a sane filename.

simple.[cxx|hxx] -> airport.[cxx|hxx]

11 years agoAdd support for helipads from apt.dat 850+
Christian Schmitt [Wed, 20 Feb 2013 22:35:32 +0000 (23:35 +0100)]
Add support for helipads from apt.dat 850+

11 years agoairport traffic routes from apt.dat 1000 are unknown to FG, so ignore them for now
Christian Schmitt [Wed, 20 Feb 2013 22:43:21 +0000 (23:43 +0100)]
airport traffic routes from apt.dat 1000 are unknown to FG, so ignore them for now

11 years agoAdding directive for osx sdk 10.5 in ClipBoardCocoa.mm
Yves Sablonier [Sat, 16 Feb 2013 23:06:03 +0000 (00:06 +0100)]
Adding directive for osx sdk 10.5 in ClipBoardCocoa.mm

11 years agoDisplay RTI status like it's done in Simgear
F-JJTH [Fri, 15 Feb 2013 23:03:40 +0000 (00:03 +0100)]
Display RTI status like it's done in Simgear

11 years agofg mingw fixes part #1
hooray [Mon, 4 Feb 2013 16:35:39 +0000 (17:35 +0100)]
fg mingw fixes part #1

Conflicts:
src/Main/bootstrap.cxx

11 years agoIgnore events if canvas::Window is not visible
Thomas Geymayer [Wed, 13 Feb 2013 11:10:25 +0000 (12:10 +0100)]
Ignore events if canvas::Window is not visible

11 years agoMake compiling of all utils/tools optional
Thomas Geymayer [Tue, 12 Feb 2013 16:38:46 +0000 (17:38 +0100)]
Make compiling of all utils/tools optional

11 years agoFix ADA compilation.
James Turner [Mon, 11 Feb 2013 22:16:02 +0000 (22:16 +0000)]
Fix ADA compilation.

Patch by Roland Haeder

11 years agoFile mode fixes.
James Turner [Mon, 11 Feb 2013 22:15:23 +0000 (22:15 +0000)]
File mode fixes.

Contributed by Roland Haeder

11 years agoTypo fix, pointed out by Emillian.
James Turner [Mon, 11 Feb 2013 12:51:54 +0000 (12:51 +0000)]
Typo fix, pointed out by Emillian.

11 years agoAllow HOME to be undefined, as on Windows.
James Turner [Sun, 10 Feb 2013 13:35:58 +0000 (13:35 +0000)]
Allow HOME to be undefined, as on Windows.

11 years agoWork-around a clang glitch with 10.6
James Turner [Sun, 10 Feb 2013 11:53:42 +0000 (11:53 +0000)]
Work-around a clang glitch with 10.6

11 years agoFlightRecorder: smarter log warning.
James Turner [Sun, 10 Feb 2013 11:47:16 +0000 (11:47 +0000)]
FlightRecorder: smarter log warning.

When using the default (generic) config, which references many props which may not exist in a particular aircraft, suppress the 'recording non-existent' property warning.

11 years agoLinux fix.
James Turner [Sat, 9 Feb 2013 17:11:36 +0000 (17:11 +0000)]
Linux fix.

One day I'm going to figure out why I get all the standard-library includes automatically on Mac, but not on Linux. Today is not that day.

11 years agoInclude file only needed by MSVC
Frederic Bouvier [Sat, 9 Feb 2013 16:40:01 +0000 (17:40 +0100)]
Include file only needed by MSVC

11 years agoFix another compile fail.
James Turner [Sat, 9 Feb 2013 16:37:40 +0000 (16:37 +0000)]
Fix another compile fail.

No idea why I don't need this on Mac, hmm.

11 years agoFix windows build
Frederic Bouvier [Sat, 9 Feb 2013 16:24:44 +0000 (17:24 +0100)]
Fix windows build

11 years agoFix a GCC warning.
James Turner [Sat, 9 Feb 2013 15:33:13 +0000 (15:33 +0000)]
Fix a GCC warning.

11 years agoSplit huge NasalSys header apart.
James Turner [Sat, 9 Feb 2013 15:33:05 +0000 (15:33 +0000)]
Split huge NasalSys header apart.

11 years agoFix compilation.
James Turner [Sat, 9 Feb 2013 15:31:43 +0000 (15:31 +0000)]
Fix compilation.

11 years agoMerge branch 'next' of gitorious.org:fg/flightgear into next
James Turner [Sat, 9 Feb 2013 14:27:15 +0000 (14:27 +0000)]
Merge branch 'next' of gitorious.org:fg/flightgear into next

11 years agofix compile with fgai
Mathias Froehlich [Sat, 9 Feb 2013 07:53:34 +0000 (08:53 +0100)]
fix compile with fgai

11 years agoSupport a log-list widget in PUI.
James Turner [Fri, 8 Feb 2013 19:39:41 +0000 (19:39 +0000)]
Support a log-list widget in PUI.

Add a puaListBox which can show the contents of a log-buffer. Currently only two buffer sources are supported more to follow (and the dialog XML updates).

11 years agoDump more config state at startup.
James Turner [Fri, 8 Feb 2013 13:15:20 +0000 (13:15 +0000)]
Dump more config state at startup.

Ensure that log files capture enough config state to debug path/search issues. Easy to expand this mechanism now to record anything similar.

11 years agoRefactor FG_HOME init, so we can log sooner.
James Turner [Fri, 8 Feb 2013 11:43:51 +0000 (11:43 +0000)]
Refactor FG_HOME init, so we can log sooner.

Logging to file now happens earlier, so some useful early output is captured.

11 years agoFix build for windows after logstream changes
Frederic Bouvier [Fri, 8 Feb 2013 07:46:34 +0000 (08:46 +0100)]
Fix build for windows after logstream changes

11 years agoImprove mouse event capturing with Canvas windows.
Thomas Geymayer [Thu, 7 Feb 2013 22:08:36 +0000 (23:08 +0100)]
Improve mouse event capturing with Canvas windows.

 - Don't capture mouse events if mouse mode has
   pass-through disabled. This behaviour is
   consistent with the PUI dialogs and allows
   changing moving view and controls while above
   any GUI dialog.
 - Add option to canvas windows to ignore all
   events and let them pass through
   ("capture-events").

11 years agoSome headers missing... ;)
Christian Schmitt [Thu, 7 Feb 2013 18:00:54 +0000 (19:00 +0100)]
Some headers missing... ;)

11 years agoSupport logging from Nasal at custom levels.
James Turner [Thu, 7 Feb 2013 16:44:24 +0000 (16:44 +0000)]
Support logging from Nasal at custom levels.

For now, print() still logs at SG_ALERT level.

11 years agoMap OSG notification system to Simgear logging.
James Turner [Thu, 7 Feb 2013 16:01:36 +0000 (16:01 +0000)]
Map OSG notification system to Simgear logging.

With this, OSG notifications can be captured / buffered in-line with our other log messages, which should help debugging and feedback.

11 years agoAdapt to revised logging API.
James Turner [Wed, 6 Feb 2013 18:05:45 +0000 (19:05 +0100)]
Adapt to revised logging API.

11 years agoLog to file inside FG_HOME.
James Turner [Wed, 6 Feb 2013 18:05:33 +0000 (19:05 +0100)]
Log to file inside FG_HOME.

11 years agoRemove un-needed header.
James Turner [Wed, 6 Feb 2013 18:05:08 +0000 (19:05 +0100)]
Remove un-needed header.

11 years agoMake various PUI widgets private.
James Turner [Wed, 6 Feb 2013 18:04:51 +0000 (19:04 +0100)]
Make various PUI widgets private.

11 years agoReapply canvas placements upon aircraft-model reinit
Thomas Geymayer [Wed, 6 Feb 2013 00:22:44 +0000 (01:22 +0100)]
Reapply canvas placements upon aircraft-model reinit

11 years agoChange the way the nav-cache is rebuilt.
James Turner [Sun, 3 Feb 2013 22:24:40 +0000 (22:24 +0000)]
Change the way the nav-cache is rebuilt.

Instead of deleting all table contents, actually remove the entire file on disk and re-create. This is fractionally more work, but removes any possibility of stale indices or missing deletes causing clutter after rebuilds. My suspicion is, this is cause the erratic performance some people have seen with the airports search dialog, so will back-port to 2.10.

11 years agoAppend major/minor version to autosave file name.
James Turner [Sun, 3 Feb 2013 16:57:31 +0000 (16:57 +0000)]
Append major/minor version to autosave file name.

Ensure that new minor versions get a clean autosave file. In practice
this means settings from 2.10 and 2.11 would co-exist, for example.

11 years agoUpdate for tweaked SGPickCallback API.
James Turner [Sun, 3 Feb 2013 16:34:36 +0000 (16:34 +0000)]
Update for tweaked SGPickCallback API.

(Requires corresponding SimGear commit)

11 years agoInitial work on state-machine AP module.
James Turner [Fri, 25 Jan 2013 08:34:57 +0000 (09:34 +0100)]
Initial work on state-machine AP module.

11 years agoFix numeric keypad support on Mac.
James Turner [Thu, 31 Jan 2013 18:42:34 +0000 (18:42 +0000)]
Fix numeric keypad support on Mac.

Comments in the code imply osgViewer always sends 'num-lock'-off codes, but that is not the observed behaviour with Cocoa. So adding mappings for the num-locked codes on Mac, which is what people actually want at the moment.

11 years agoExpose some methods on strings to Nasal
Thomas Geymayer [Thu, 31 Jan 2013 18:14:14 +0000 (19:14 +0100)]
Expose some methods on strings to Nasal

11 years agoSet preview mode when using --fgviewer
James Turner [Thu, 31 Jan 2013 16:51:06 +0000 (16:51 +0000)]
Set preview mode when using --fgviewer

11 years agoGuard libudev include with extern "C".
James Turner [Wed, 30 Jan 2013 20:49:50 +0000 (20:49 +0000)]
Guard libudev include with extern "C".

11 years agoDidn't mean to add this (yet), removing.
James Turner [Tue, 29 Jan 2013 15:04:20 +0000 (15:04 +0000)]
Didn't mean to add this (yet), removing.

11 years agoBug #385 - enable the Ati viewport hack on next.
James Turner [Mon, 28 Jan 2013 23:35:44 +0000 (23:35 +0000)]
Bug #385  - enable the Ati viewport hack on next.

Enabling this hack by default, to assess the impact for everyone. Should fix the issue for Ati Catalyst 11.5 users, and hopefully no impact for everyone else. All feedback appreciated. Set /sim/ati-viewport-hack to false if you think this option might be causing issues for you (and then tell James, ASAP)

11 years agoReturn double precision float as requested in generic/binary protocol.
Michał Gawron [Sun, 27 Jan 2013 14:06:15 +0000 (15:06 +0100)]
Return double precision float as requested in generic/binary protocol.

11 years agocalculate /systems/pitot/total-pressure on the bases of /velocities/mach
Eric van den Berg [Mon, 26 Nov 2012 17:59:48 +0000 (18:59 +0100)]
calculate /systems/pitot/total-pressure on the bases of /velocities/mach
added measured-total-pressure property to account for a normal
shockwave in front of pitot tube at supersonic speeds. momentarily not
used
small unit conversion correction of inHg to hPa in altimeter
Base airspeed calculations on impact pressure in instrumentation
/airspeed_indicator

11 years agoWork-around a JSBSim reset issue following the sync.
James Turner [Mon, 28 Jan 2013 12:54:21 +0000 (12:54 +0000)]
Work-around a JSBSim reset issue following the sync.

Thanks to Ron Jensen for the catch. I've added a comment so we know to update this on the next JSBSim sync.

11 years agoBoo, typo.
James Turner [Sat, 26 Jan 2013 14:44:03 +0000 (14:44 +0000)]
Boo, typo.

11 years agoSupport optionally embedding simgear.
James Turner [Sat, 26 Jan 2013 14:32:18 +0000 (15:32 +0100)]
Support optionally embedding simgear.

11 years agoJoystick/dialog caches, commit the transactions.
James Turner [Fri, 25 Jan 2013 08:30:31 +0000 (09:30 +0100)]
Joystick/dialog caches, commit the transactions.

11 years agoWrap dialog and joystick stat-cache in a transaction.
James Turner [Thu, 24 Jan 2013 08:27:09 +0000 (09:27 +0100)]
Wrap dialog and joystick stat-cache in a transaction.

Should improve startup times when the cache is rebuilt.

11 years agoKill off obsolete helper class in GPS code.
James Turner [Tue, 22 Jan 2013 17:42:24 +0000 (18:42 +0100)]
Kill off obsolete helper class in GPS code.

11 years agoFix initialization order
Thomas Geymayer [Tue, 22 Jan 2013 19:33:17 +0000 (20:33 +0100)]
Fix initialization order

11 years agoTolerate old blocks support in 10.6 compiler.
James Turner [Tue, 22 Jan 2013 17:33:16 +0000 (18:33 +0100)]
Tolerate old blocks support in 10.6 compiler.

11 years agoFix for namespace scope.
James Turner [Tue, 22 Jan 2013 17:15:19 +0000 (18:15 +0100)]
Fix for namespace scope.