1
0
Fork 0
flightgear/src/Cockpit
curt f6fac40a11 David Megginson writes:
I have a scrollable panel working (it didn't take long in the end).  A
panel can now be much wider or higher than the available area, and the
user can scroll around using [Shift]F5, [Shift]F6, [Shift]F7, and
[Shift]F8.  The user can also scroll the panel down to get a bigger
external view.  Mouse clicks seem still to be working correctly.

To set the panel's (virtual) height and width, use the panel file's /w
and /h properties in a panel XML file; to set the initial x- and y-
offsets (untested), use the panel file's /x-offset and /y-offset
properties; to set the initial height of the external view (untested
and optional), use the panel file's /view-height property.  Note that
none of these show up in the regular FGFS property manager.

Unfortunately, these patches will not affect your initialization
problems with the property manager -- I'm having a hard time tracking
them down because I cannot reproduce them.

I have also made some patches to main.cxx and views.cxx to do two
things:

1. Expand or shrink the external view as the panel moves up and down.

2. Set the window ratio correctly, so that we don't get an oval sun
   and flat clouds when the panel is visible (the problem before was
   integer division, so I added casts).

Unfortunately, the window ratio is not set properly at start-up --
there are too many dependencies, and I haven't figured that part out
yet.  As soon as you hide and redisplay the panel or move it
vertically (i.e. force fgReshape to be called), you'll see the correct
ratio.
2000-10-06 21:16:01 +00:00
..
cockpit.cxx Updates from David Megginson relating to the property manager. 2000-09-30 03:35:38 +00:00
cockpit.hxx Explicitely add -lpthread to the link line to avoid a long standing linux 2000-09-09 15:48:14 +00:00
hud.cxx Updated hud controls a bit: 2000-05-15 17:47:50 +00:00
hud.hxx MSVC compatibility changes and code tweaks for minor nits caught by the 2000-10-02 21:49:04 +00:00
hud_card.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_dnst.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_guag.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_inst.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_labl.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_ladr.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_lat.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_lon.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_opts.hxx Removed all dependencies on <simgear/math/mat3.h> and friends. These are 2000-02-19 14:29:27 +00:00
hud_scal.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
hud_tbi.cxx HUD updates/cleanups from Norman Vine. 2000-05-13 00:02:43 +00:00
Makefile.am Sep. 22, 2000 panel updates from David Megginson to make the new config file 2000-09-22 17:20:56 +00:00
panel.cxx David Megginson writes: 2000-10-06 21:16:01 +00:00
panel.hxx David Megginson writes: 2000-10-06 21:16:01 +00:00
panel_io.cxx David Megginson writes: 2000-10-06 21:16:01 +00:00
panel_io.hxx Sep. 18, 2000 updates from David Megginson. New panel configs are now 2000-09-21 20:08:16 +00:00
radiostack.cxx A bit of fg->sg namespace changing. 2000-09-27 20:16:22 +00:00
radiostack.hxx More fixes to ils approaches and autopilot. 2000-05-12 22:17:09 +00:00
steam.cxx Renamed fg_types.hxx -> sg_types.hxx 2000-09-26 23:39:29 +00:00
steam.hxx Patches and tweaks from Alex. 2000-06-15 18:36:13 +00:00