From a975fd77c5cdee59b940cc72607978d1ccf734fe Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 2 May 2000 18:26:00 +0000 Subject: [PATCH] User-visible - knobs now continue to rotate when you hold down the mouse - the middle mouse button makes knobs rotate much faster - there are NAV1, NAV2, and ADF radios that can be tuned using the mouse - there are standby frequencies for NAV1 and NAV2, and buttons to swap - there is a crude, rather silly-looking DME, hard-wired to NAV1 - there is a crude, rather silly-looking autopilot that can lock the heading (to the bug on the gyro), can lock to NAV1, and can lock the current altitude - the knobs for changing the radials on NAV1 and NAV2 look much better and are in the right place - tuning into an ILS frequency doesn't change the displayed radial for NAV1 Code - I've created a new module, sp_panel.[ch]xx, that constructs the default single-prop panel; this works entirely outside of FGPanel, so it is possible to construct similar modules for other sorts of panels; all code specific to the default panel has been removed from panel.cxx - current_panel is now a pointer - radiostack.[ch]xx keeps track both of the actual radial and of the selected radial (they will differ with ILS); the NAV gauges should not spin around automatically to show the actual radial (we need to do something similar with the autopilot) - the panel is initialized fairly early - make sure that standby frequencies also get initialized - I've started combining and clipping small textures to save texture memory; there's a lot more to do, but at least I've made a start --- src/Cockpit/Makefile.am | 1 + src/Cockpit/cockpit.cxx | 6 +- src/Cockpit/panel.cxx | 856 ++++++++--------------------- src/Cockpit/panel.hxx | 221 ++++++-- src/Cockpit/proposed-navaids.hpp | 106 ---- src/Cockpit/radiostack.cxx | 21 +- src/Cockpit/radiostack.hxx | 30 +- src/Cockpit/sp_panel.cxx | 896 +++++++++++++++++++++++++++++++ src/Cockpit/sp_panel.hxx | 35 ++ src/Cockpit/steam.cxx | 4 +- src/GUI/gui.cxx | 2 +- src/Main/bfi.cxx | 71 ++- src/Main/bfi.hxx | 11 +- src/Main/fg_init.cxx | 14 +- src/Main/options.cxx | 12 +- 15 files changed, 1460 insertions(+), 826 deletions(-) delete mode 100644 src/Cockpit/proposed-navaids.hpp create mode 100644 src/Cockpit/sp_panel.cxx create mode 100644 src/Cockpit/sp_panel.hxx diff --git a/src/Cockpit/Makefile.am b/src/Cockpit/Makefile.am index 7fe7c3b94..f15561573 100644 --- a/src/Cockpit/Makefile.am +++ b/src/Cockpit/Makefile.am @@ -9,6 +9,7 @@ libCockpit_a_SOURCES = \ hud_scal.cxx hud_tbi.cxx \ panel.cxx panel.hxx \ radiostack.cxx radiostack.hxx \ + sp_panel.cxx sp_panel.hxx \ steam.cxx steam.hxx INCLUDES += -I$(top_builddir) -I$(top_builddir)/src diff --git a/src/Cockpit/cockpit.cxx b/src/Cockpit/cockpit.cxx index ed832c5ad..4b381f371 100644 --- a/src/Cockpit/cockpit.cxx +++ b/src/Cockpit/cockpit.cxx @@ -459,10 +459,6 @@ bool fgCockpitInit( fgAIRCRAFT *cur_aircraft ) fgHUDInit( cur_aircraft ); ac_cockpit = new fg_Cockpit(); - if ( current_options.get_panel_status() ) { - new FGPanel; - } - // Have to set the LatLon display type fgLatLonFormat = toDM; @@ -535,5 +531,5 @@ void fgCockpitUpdate( void ) { xglViewport( 0, 0, iwidth, iheight ); - current_panel.update(); + current_panel->update(); } diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 7e0ac7564..9a3cd00a4 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -30,520 +30,15 @@ #include #include -#include #include #include #include
#include
-#include
#include -#include