]> git.mxchange.org Git - flightgear.git/log
flightgear.git
18 years ago- add direction letter to numeric mode, too
mfranz [Sat, 17 Jun 2006 18:08:53 +0000 (18:08 +0000)]
- add direction letter to numeric mode, too
- avoid negative sign on 0.00

18 years agoremove lon/lat string representation generating functions; this is now
mfranz [Sat, 17 Jun 2006 16:40:51 +0000 (16:40 +0000)]
remove lon/lat string representation generating functions; this is now
done in Main/fg_props.cxx and available via /position/{long,lat}itude-string

18 years agoremove obsolete "lon/lat format" commands that have been labeled "deprecated"
mfranz [Sat, 17 Jun 2006 16:37:33 +0000 (16:37 +0000)]
remove obsolete "lon/lat format" commands that have been labeled "deprecated"
and "will very soon be removed" since years

18 years agomove generation of lon/lat string representations here from cockpit.cxx.
mfranz [Sat, 17 Jun 2006 16:33:00 +0000 (16:33 +0000)]
move generation of lon/lat string representations here from cockpit.cxx.
Thanks to tied functions, this is only executed when the node is read. This
will be done by the old & new HUD code, the latter of which won't have a
special lon/lat mode at all. Instead it will be regular labels that point
to these properties for displaying lon/lat.
   I would have liked to avoid the duplication of code (lon and lat being
basically the same thing), and to avoid using static buffers and all, but
... if anyone wants to make it prettier, go ahead.
   The format is controlled by /sim/lon-lat-format (will be changed if I
find a better place).

18 years ago- remove unused classes lat_label and lon_label (it's the instr_label
mfranz [Fri, 16 Jun 2006 19:29:34 +0000 (19:29 +0000)]
- remove unused classes lat_label and lon_label (it's the instr_label
  that makes the lon/lat labels)

18 years agoAdd a flag that allows the simulator to force "radar" computations even if
curt [Fri, 16 Jun 2006 19:10:20 +0000 (19:10 +0000)]
Add a flag that allows the simulator to force "radar" computations even if
AI aircraft are out of range or the piloted aircraft has no radar system.

These computation include range, bearing, and angular offset relative to the
piloted aircraft.  This gives some external script the control the behavior
of the AI aircraft relative to the piloted aircraft without requiring a radar
system, and without requiring the AI aircraft to be within radar range.

18 years agoThis patch only affects aircraft (AI Models) that have no predefined
curt [Fri, 16 Jun 2006 14:22:21 +0000 (14:22 +0000)]
This patch only affects aircraft (AI Models) that have no predefined
flightplan.  Such aircraft are given some initial conditions that they
fly with.  They proceed on in "freeflight" mode indefinitely.  For example,
there is a refueling demo where the tanker starts at 3000', 280 kts, and
in a 15 degree bank, and then continues to orbit indefinitely.

For these aircraft with no flightplan, I have added several control nodes in
controls/flight that allow a script or menu or external application to set
heading, altitude, bank angle, and speed.  This permits some level of interactive
or scripted control over AI aircraft.

18 years agoCompile again on Win32 platforms
fredb [Fri, 16 Jun 2006 10:17:06 +0000 (10:17 +0000)]
Compile again on Win32 platforms

18 years ago- move FloatToInt() function to simgear/math/fastmath.hxx, renamed to
mfranz [Fri, 16 Jun 2006 09:31:34 +0000 (09:31 +0000)]
- move FloatToInt() function to simgear/math/fastmath.hxx, renamed to
  float_to_int() for consistency reasons
- remove hud_opts.hxx

18 years agoMake more use of SGGeod
frohlich [Thu, 15 Jun 2006 19:16:21 +0000 (19:16 +0000)]
Make more use of SGGeod

18 years ago- make function table and lookup function
mfranz [Thu, 15 Jun 2006 18:09:15 +0000 (18:09 +0000)]
- make function table and lookup function
- make unnamed elements explicitly "[unnamed]"

18 years ago- fix two bugs
mfranz [Thu, 15 Jun 2006 16:03:27 +0000 (16:03 +0000)]
- fix two bugs
- remove yet more unused code
- cosmetics

18 years agoDon't bail out for lon == 180 or lat == 90
frohlich [Thu, 15 Jun 2006 08:55:42 +0000 (08:55 +0000)]
Don't bail out for lon == 180 or lat == 90

18 years agoMore use of SGGeo[dc].
frohlich [Thu, 15 Jun 2006 08:29:43 +0000 (08:29 +0000)]
More use of SGGeo[dc].

18 years agoremove the rest of the static variables (except one); cleanup
mfranz [Thu, 15 Jun 2006 00:21:06 +0000 (00:21 +0000)]
remove the rest of the static variables (except one); cleanup

18 years agoremove readCard() and let the hud_card class read its properties
mfranz [Wed, 14 Jun 2006 23:27:55 +0000 (23:27 +0000)]
remove readCard() and let the hud_card class read its properties

18 years agoremove readCard and let the gauge_instr class read its own properties
mfranz [Wed, 14 Jun 2006 20:39:10 +0000 (20:39 +0000)]
remove readCard and let the gauge_instr class read its own properties

18 years agoremove readRunway() and let the runway_instr class read the properties in
mfranz [Wed, 14 Jun 2006 18:41:36 +0000 (18:41 +0000)]
remove readRunway() and let the runway_instr class read the properties in
the constructor

18 years agoremove readTBI() and let the fgTBI_instr class read its properties
mfranz [Wed, 14 Jun 2006 16:57:38 +0000 (16:57 +0000)]
remove readTBI() and let the fgTBI_instr class read its properties

18 years ago- remove hud.cxx/readLabel and let the instr_label read its properties
mfranz [Wed, 14 Jun 2006 16:23:44 +0000 (16:23 +0000)]
- remove hud.cxx/readLabel and let the instr_label read its properties
- remove unused copy constructor
- fix potential crash bug

18 years agoremove readLadder(const SGPropertyNode *) and make the HudLadder
mfranz [Wed, 14 Jun 2006 12:49:27 +0000 (12:49 +0000)]
remove readLadder(const SGPropertyNode *) and make the HudLadder
constructor read its properties on its own

18 years agoindentation, trailing spaces, ... (cosmetics only); doesn't make
mfranz [Wed, 14 Jun 2006 10:30:10 +0000 (10:30 +0000)]
indentation, trailing spaces, ...   (cosmetics only); doesn't make
the coding style fully consistent yet, but it's good enough for code changes
(mixed tab/space indents, 4 space tabs etc. are a royal pain)

18 years agoremove assignment operators: they aren't used now and won't in the future
mfranz [Tue, 13 Jun 2006 15:00:31 +0000 (15:00 +0000)]
remove assignment operators: they aren't used now and won't in the future

18 years agoindentation, trailing spaces, alignment, ... (to make further work easier)
mfranz [Tue, 13 Jun 2006 14:48:19 +0000 (14:48 +0000)]
indentation, trailing spaces, alignment, ...  (to make further work easier)

18 years ago- fix more cases of scale tick aliasing to get smooth scale movements
mfranz [Mon, 12 Jun 2006 23:27:55 +0000 (23:27 +0000)]
- fix more cases of scale tick aliasing to get smooth scale movements
- remove trailing spaces, fix indentation, unify coding style, ...

18 years agofix ugly aliasing effects in moving scales (caused by integer calculation
mfranz [Mon, 12 Jun 2006 22:27:10 +0000 (22:27 +0000)]
fix ugly aliasing effects in moving scales (caused by integer calculation
of tick coords)

18 years ago- remove trailing spaces
mfranz [Mon, 12 Jun 2006 21:34:47 +0000 (21:34 +0000)]
- remove trailing spaces
- fix indentation, alignment and other formal stuff

18 years ago- remove evil exit()
mfranz [Mon, 12 Jun 2006 15:39:38 +0000 (15:39 +0000)]
- remove evil exit()
- remove "enabled". It's unused, and that's a good thing: it wasn't
  initialized.

18 years agoadd Nasal/Listener hooks for adding/removing AI/MP models. Things like
mfranz [Sun, 11 Jun 2006 15:32:18 +0000 (15:32 +0000)]
add Nasal/Listener hooks for adding/removing AI/MP models. Things like
MP chat or Nasal/xml based radar instruments need that. It uses fgSetString,
because this is in a very "cold path" and shouldn't clutter the AIBase.

18 years agoremove the "ai_model" subsystem manually before the other subsystems
mfranz [Sun, 11 Jun 2006 15:18:48 +0000 (15:18 +0000)]
remove the "ai_model" subsystem manually before the other subsystems
are taken down by the C++ runtime environment. This will later be done
with runlevels. Why would we want to run nasal code in subsystem
destructors? We don't really. But some data structures may use nasal,
which are normally created/destroyed during runtime. And these will
also be destroyed at fgfs exit. In the past things like these didn't
happen, because someone had disabled all subsystem destructors ...

18 years agoModified Files:
frohlich [Sun, 11 Jun 2006 13:34:18 +0000 (13:34 +0000)]
Modified Files:
src/AIModel/AIAircraft.cxx src/ATC/AILocalTraffic.cxx
src/FDM/flight.cxx src/FDM/flight.hxx src/FDM/groundcache.cxx
src/FDM/groundcache.hxx src/Main/fg_init.cxx src/Main/main.cxx
src/Scenery/hitlist.cxx src/Scenery/hitlist.hxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx
Make use of the attached SGMaterial reference userdata on scenegraph
leafs. Make the SGMaterial pointer available to the ground query
routines.

18 years agofix another crash on exit by finally converting the rest of unguarded
mfranz [Sun, 11 Jun 2006 10:21:10 +0000 (10:21 +0000)]
fix another crash on exit by finally converting the rest of unguarded
SGPropertyNode to guarded ones. This is also done for JSBSim/JSBSim.hxx,
for which JSB had given explicit permission a while ago. I postponed that
back then, but now is the time.

18 years agomake sure the "nasal" subsystem is one of the last to be removed. That
mfranz [Sat, 10 Jun 2006 22:24:05 +0000 (22:24 +0000)]
make sure the "nasal" subsystem is one of the last to be removed. That
way it can still process listener code during shutdown.

18 years ago- remove listener in ~FGNasalListener(), not FGNasalSys::removelistener
mfranz [Sat, 10 Jun 2006 22:21:22 +0000 (22:21 +0000)]
- remove listener in ~FGNasalListener(), not FGNasalSys::removelistener
- delete all listeners in ~FGNasalSys()

18 years agothe special line width doesn't make much sense, as it's only applied to the
mfranz [Sat, 10 Jun 2006 15:25:48 +0000 (15:25 +0000)]
the special line width doesn't make much sense, as it's only applied to the
arrow head marks. It was probably thought for all lines, but as those are
wide enough, I just comment that out for now.

18 years agoUpdates to the MSVC8 project file from Olaf.
frohlich [Sat, 10 Jun 2006 11:19:51 +0000 (11:19 +0000)]
Updates to the MSVC8 project file from Olaf.

18 years agotreat colors like the other parameters: only copy them from the palette
mfranz [Sat, 10 Jun 2006 09:22:27 +0000 (09:22 +0000)]
treat colors like the other parameters: only copy them from the palette
color group /sim/hud/palette/color[*]/ to the active group /sim/hud/color/
if they really exist. (Parameters like <antialiased> can be set in the
active group and be left alone, or set by each <palette> color group.)

18 years agoconsider new HUD path. It doesn't seem to make sense to put "antialiased"
mfranz [Sat, 10 Jun 2006 07:23:15 +0000 (07:23 +0000)]
consider new HUD path. It doesn't seem to make sense to put "antialiased"
into the <color> group, but that's because on HUD color changes a whole
"color" set from /sim/hud/palette/color[*] is copied to /sim/hud/color/, and
antialiasing needs to be considered with that. (I'm not entirely happy
with the property names yet.)

18 years ago- remove lots of traling spaces
mfranz [Fri, 9 Jun 2006 21:29:40 +0000 (21:29 +0000)]
- remove lots of traling spaces
- fix indendation and alignment

18 years ago- add transparency option
mfranz [Fri, 9 Jun 2006 20:37:16 +0000 (20:37 +0000)]
- add transparency option
- comment out date/time ... this needs to be added to the HUDs that need it

18 years ago- remove trailing spaces
mfranz [Fri, 9 Jun 2006 18:48:57 +0000 (18:48 +0000)]
- remove trailing spaces
- fix many cases of broken indentation (but not all)
- unify indendation
- ...

18 years agoVivian MEAZZA:
mfranz [Fri, 9 Jun 2006 18:29:51 +0000 (18:29 +0000)]
Vivian MEAZZA:

" Make a couple of minor adjustments to Harald's weather radar code, make
elevation work in the radar code, and add station ident to the TACAN code"

18 years ago- remove obsolete definition
mfranz [Fri, 9 Jun 2006 10:53:48 +0000 (10:53 +0000)]
- remove obsolete definition
- make sure HUD is only initialized once

18 years ago- copy preset colors from <palette> to /sim/hud/color
mfranz [Thu, 8 Jun 2006 17:14:59 +0000 (17:14 +0000)]
- copy preset colors from <palette> to /sim/hud/color
- listen to color, alpha, alpha-clamping
- fix blend mode

18 years agoFix wrong documentation link
fredb [Thu, 8 Jun 2006 12:14:35 +0000 (12:14 +0000)]
Fix wrong documentation link

18 years agoMake use of the ground material types
frohlich [Thu, 8 Jun 2006 05:58:36 +0000 (05:58 +0000)]
Make use of the ground material types

18 years ago- don't hide HUD only because the color index is invalid
mfranz [Wed, 7 Jun 2006 21:41:32 +0000 (21:41 +0000)]
- don't hide HUD only because the color index is invalid
- initialize color components

18 years agoboy, what a load of ...
mfranz [Wed, 7 Jun 2006 21:35:11 +0000 (21:35 +0000)]
boy, what a load of ...

18 years agowhoops ... compile (this silly #define will be removed very soon)
mfranz [Wed, 7 Jun 2006 21:28:33 +0000 (21:28 +0000)]
whoops ... compile  (this silly #define will be removed very soon)

18 years agoremove obsolete constants
mfranz [Wed, 7 Jun 2006 21:09:38 +0000 (21:09 +0000)]
remove obsolete constants

18 years ago- drop hardcoded color/brightness values
mfranz [Wed, 7 Jun 2006 18:01:19 +0000 (18:01 +0000)]
- drop hardcoded color/brightness values
- let listener class watch and maintain HUD color properties, which is
  more effective and more flexible.

18 years agoremove obsolete HUD fgcommands
mfranz [Wed, 7 Jun 2006 17:59:28 +0000 (17:59 +0000)]
remove obsolete HUD fgcommands

18 years agobark if the requested font isn't a texture font. A more graceful recovery
mfranz [Tue, 6 Jun 2006 19:25:33 +0000 (19:25 +0000)]
bark if the requested font isn't a texture font. A more graceful recovery
doesn't buy us much, as the font is only set at initialization time and not
changeable later. Better tell the user immediately that he goofed.

18 years agorestore old default; this should probably be configurable ...
mfranz [Tue, 6 Jun 2006 18:36:34 +0000 (18:36 +0000)]
restore old default; this should probably be configurable ...

18 years agobetter always use style[0] (again). Otherise *-set.xml can't easily change
mfranz [Tue, 6 Jun 2006 17:30:49 +0000 (17:30 +0000)]
better always use style[0] (again). Otherise *-set.xml can't easily change
background/font

18 years agouse global fontcache ... this is mostly cosmetic, as the whole file will
mfranz [Tue, 6 Jun 2006 16:33:38 +0000 (16:33 +0000)]
use global fontcache ... this is mostly cosmetic, as the whole file will
probably die a soon as the old property picker was removed

18 years ago- use global fontcache
mfranz [Tue, 6 Jun 2006 15:34:18 +0000 (15:34 +0000)]
- use global fontcache
- make font/size configurable

18 years agouse global fontcache. This hast the nice side effect that panels can now
mfranz [Tue, 6 Jun 2006 12:52:45 +0000 (12:52 +0000)]
use global fontcache. This hast the nice side effect that panels can now
use *any* texture (*.txf) font, not just "typewriter" and "led".

18 years agoFGFontCache: add getter for the fntTexFont component of a cached font
mfranz [Tue, 6 Jun 2006 12:49:42 +0000 (12:49 +0000)]
FGFontCache: add getter for the fntTexFont component of a cached font

18 years agoread font and colors from the selected style, not always from /sim/gui/style[0]
mfranz [Mon, 5 Jun 2006 22:03:23 +0000 (22:03 +0000)]
read font and colors from the selected style, not always from /sim/gui/style[0]

18 years agodon't choke on invalid nodes
mfranz [Mon, 5 Jun 2006 21:55:18 +0000 (21:55 +0000)]
don't choke on invalid nodes

18 years agouse the global fontcache; this has the nice side-effect that the font is
mfranz [Mon, 5 Jun 2006 20:49:35 +0000 (20:49 +0000)]
use the global fontcache; this has the nice side-effect that the font is
now settable via /sim/gui/style/fonts/splash/{name,size,slant}

18 years agouse global fontcache
mfranz [Mon, 5 Jun 2006 20:25:43 +0000 (20:25 +0000)]
use global fontcache

18 years agomake FGFontCache independent of NewGUI and allow early construction in
mfranz [Mon, 5 Jun 2006 20:23:56 +0000 (20:23 +0000)]
make FGFontCache independent of NewGUI and allow early construction in
FGGlobals

18 years agomake fontcache globally available
mfranz [Mon, 5 Jun 2006 20:21:45 +0000 (20:21 +0000)]
make fontcache globally available

18 years agowhoops, sorry, I forgot to commit that. (Thanks, Fred, for fixing).
mfranz [Mon, 5 Jun 2006 16:28:20 +0000 (16:28 +0000)]
whoops, sorry, I forgot to commit that. (Thanks, Fred, for fixing).
Belongs to the SGSubsystem interface functions.

18 years agoDeclare new member functions
fredb [Mon, 5 Jun 2006 16:19:50 +0000 (16:19 +0000)]
Declare new member functions

18 years agomake modifier keys accessible via /devices/status/keyboard/{shift,ctrl,alt}
mfranz [Mon, 5 Jun 2006 13:45:59 +0000 (13:45 +0000)]
make modifier keys accessible via /devices/status/keyboard/{shift,ctrl,alt}

18 years agofix the splash background color property path
mfranz [Sun, 4 Jun 2006 17:18:05 +0000 (17:18 +0000)]
fix the splash background color property path

18 years ago- display of SGPropertyNode flags can now be toggled per <property-list>
mfranz [Sat, 3 Jun 2006 11:20:19 +0000 (11:20 +0000)]
- display of SGPropertyNode flags can now be toggled per <property-list>
  widget (Ctrl-click on "." entry), so we don't need a global property
  for this
- s/dotFiles/_dot_files/ for consistency reasons

18 years agoFix a dumb bug where I inadvertantly did a computation in int32 land causing
curt [Thu, 1 Jun 2006 21:13:56 +0000 (21:13 +0000)]
Fix a dumb bug where I inadvertantly did a computation in int32 land causing
me to loose 2 decimal places in my location data before converting to lon/lat.

18 years agoMask error message 'Failed to find runway 28R at ...' when no runway is requested...
fredb [Wed, 31 May 2006 07:20:10 +0000 (07:20 +0000)]
Mask error message 'Failed to find runway 28R at ...' when no runway is requested in the command line

18 years agoFrom Olaf Flebbe: avoid iterator overruns if we delete the last list entry.
frohlich [Tue, 30 May 2006 17:21:50 +0000 (17:21 +0000)]
From Olaf Flebbe: avoid iterator overruns if we delete the last list entry.

18 years ago- use guarded pointer for (unused) refuel_node
mfranz [Fri, 26 May 2006 05:23:40 +0000 (05:23 +0000)]
- use guarded pointer for (unused) refuel_node
- comment out refuel_node->setBoolValue()  (as it was in the original patch :-)

18 years agonot that!
mfranz [Wed, 24 May 2006 21:05:48 +0000 (21:05 +0000)]
not that!

18 years agos/isascii/isprint/
mfranz [Wed, 24 May 2006 21:02:52 +0000 (21:02 +0000)]
s/isascii/isprint/

18 years ago- fix slider
mfranz [Wed, 24 May 2006 20:46:10 +0000 (20:46 +0000)]
- fix slider
- order functions like in puAuxList.cxx (plib/cvs) for easier
  back/forward-porting

18 years ago- force multiline contents (Nasal scripts!) into one line, so that they
mfranz [Wed, 24 May 2006 14:00:56 +0000 (14:00 +0000)]
- force multiline contents (Nasal scripts!) into one line, so that they
  don't print over other entries or even leak out of the widget
- warning-- (MSVC)

18 years agoCompile
fredb [Wed, 24 May 2006 10:51:35 +0000 (10:51 +0000)]
Compile

18 years agoVivian MEAZZA:
mfranz [Wed, 24 May 2006 10:06:44 +0000 (10:06 +0000)]
Vivian MEAZZA:

"Remove unnecessary, redundant or duplicated code. Functionally, there is no
change"

18 years agook, now I know why the destructor was commented out in prop_picker.cxx:
mfranz [Wed, 24 May 2006 09:42:10 +0000 (09:42 +0000)]
ok, now I know why the destructor was commented out in prop_picker.cxx:
there's a bug that I had copied: update() checks each list node: if it
has no children, then a listener is attached. Later, when freeing the
children list, it assumed again that each node without children would
have a listener attached. This caused a crash when a node had children
before, but lost them in the meantime. Now we tried to remove a listener
where there never was one.

18 years ago- don't jump to top after bool toggling
mfranz [Tue, 23 May 2006 21:35:38 +0000 (21:35 +0000)]
- don't jump to top after bool toggling

18 years agocatch non-existent nodes, too
mfranz [Tue, 23 May 2006 20:48:01 +0000 (20:48 +0000)]
catch non-existent nodes, too

18 years agotreat widget input correctly
mfranz [Tue, 23 May 2006 20:24:56 +0000 (20:24 +0000)]
treat widget input correctly

18 years agodon't abort fgfs only because a nasal script called a property function
mfranz [Tue, 23 May 2006 18:55:38 +0000 (18:55 +0000)]
don't abort fgfs only because a nasal script called a property function
with an invalid path, as in getprop("/sim/model/737") or x.getNode("f:1").
Forward sg's error message to the Nasal runtime error function instead, so
you get something like:

  Nasal runtime error: name must begin with alpha or '_'
    at /home/m/fgfs/Base.local/Nasal/props.nas, line 30

Unfortunately, the location points to the line where the ghost wrapper
sits, rather than the offending script line.

18 years agougly "fix": the constructor was commented out in prop_picker.cxx since
mfranz [Tue, 23 May 2006 16:49:32 +0000 (16:49 +0000)]
ugly "fix": the constructor was commented out in prop_picker.cxx since
*many* years, so the property browser always leaked memory. I activated
this line in property_list.cxx and ... got a crash right there. So this
was the reason for it being commented out? Doing the same for now, until
I know the exact reason and can really fix it.

18 years agofix for broken plib 1.8.4
mfranz [Tue, 23 May 2006 16:44:10 +0000 (16:44 +0000)]
fix for broken plib 1.8.4

18 years agoVivian MEAZZA:
mfranz [Mon, 22 May 2006 20:18:40 +0000 (20:18 +0000)]
Vivian MEAZZA:

"Bug Fix - amend the code so that JSBSIm can have more than one tanker in
the environment at the same time. A nasal script has to be added to each
aar-capable JSBSim model to complete this fix."

18 years ago- move the ID stuff to dialog.hxx
mfranz [Mon, 22 May 2006 16:14:50 +0000 (16:14 +0000)]
- move the ID stuff to dialog.hxx
- add an identifier to fgPropertyList(), which is also PUCLASS_LIST based

18 years agomake new widget available as <property-list>
mfranz [Mon, 22 May 2006 14:35:39 +0000 (14:35 +0000)]
make new widget available as <property-list>

18 years agoadd property_list.[ch]xx
mfranz [Mon, 22 May 2006 14:34:59 +0000 (14:34 +0000)]
add property_list.[ch]xx

18 years agonew property browser widget
mfranz [Mon, 22 May 2006 14:34:20 +0000 (14:34 +0000)]
new property browser widget

18 years ago- backport plib/cvs (transparency feature; never tried that :-)
mfranz [Mon, 22 May 2006 14:33:01 +0000 (14:33 +0000)]
- backport plib/cvs  (transparency feature; never tried that :-)
- backport submissions for plib 1.8.5:
  * set slider size correctly
  * remove slider/arrow when all entries fit into the view
  * don't allow to scroll off the list

18 years agothe last patch fixed the AirportList ... and broke all other PUCLASS_LIST.;
mfranz [Sun, 21 May 2006 22:14:18 +0000 (22:14 +0000)]
the last patch fixed the AirportList ... and broke all other PUCLASS_LIST.;
Unfortunately, there's no simple way to distinguish them. plib has no
user defined widget classes, and getTypeString() -- which could be used
for that -- isn't virtual. Sigh. I'll discuss the problem on the plib list.
For now I can only offer an ugly workaround. (Don't look closely!)

18 years ago- replace string methods with property methods The class was originally adapted
mfranz [Sat, 20 May 2006 15:25:38 +0000 (15:25 +0000)]
- replace string methods with property methods The class was originally adapted
  from plib's file-picker, where it made some sense to keep the current path as
  string, and to chop off elements when leaving a dir, and adding them when
  entering. But it doesn't make the least sense in SGPropertyNode space, where
  we already have everything to move in a tree.

- add R & W flags for TRACE_READ and TRACE_WRITE. Remember: lower case letters:
  disabled (rw ... reading/writing), upper case letters: enabled (RWAUT)

- remove some verbosity & further cleanup ... to make further work easier :-)

18 years agoCreate the /sim/ai node if someone has the unfortunate idea of removing it from prefe...
fredb [Sat, 20 May 2006 13:29:31 +0000 (13:29 +0000)]
Create the /sim/ai node if someone has the unfortunate idea of removing it from preferences.xml

18 years agoAdd an option to enable ai scenarii from the command line instead of editing preferen...
fredb [Sat, 20 May 2006 12:19:33 +0000 (12:19 +0000)]
Add an option to enable ai scenarii from the command line instead of editing preferences.xml

18 years agofix "airport list" crash: I had wrongly assumed that now all PUCLASS_LIST
mfranz [Sat, 20 May 2006 11:35:28 +0000 (11:35 +0000)]
fix "airport list" crash: I had wrongly assumed that now all PUCLASS_LIST
would actually be an fgList class. The airport list is a PUCLASS_LIST, too,
so we have to check for that. -> Use getTypeString() for identification.

18 years ago- unify several indentation and coding styles (and no, this is not my
mfranz [Fri, 19 May 2006 10:59:04 +0000 (10:59 +0000)]
- unify several indentation and coding styles (and no, this is not my
  preferred style, but the most sane of those used :-)
- remove trailing spaces
- cleanup

(all of this will make further work on the files easier)

18 years agoVivian MEAZZA:
mfranz [Thu, 18 May 2006 16:59:04 +0000 (16:59 +0000)]
Vivian MEAZZA:

"Add Air to Air TACAN and User-User refuelling over the Multiplayer Network.
With this change, your TACAN instrument can be tuned to the channel of a
Multiplayer ac. It also activates fuel flow between User and User aircraft
when they are less than 50 ft apart. To participate in multiplayer as a
tanker, all you require to do is to use the callsign MOBIL* (where * is some
number) on the net. Only MOBIL1, MOBIL2 and MOBIL3 have been assigned TACAN
channels, but any MOBIL callsign will be able to give fuel."