From 469703dd0c23931bbea6ddd8f2c1d8fd0f9071a2 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 11 Jan 2001 22:44:18 +0000 Subject: [PATCH] Internal interface changes by David Megginson. --- FlightGear.dsp | 90 +++++++++ src/Autopilot/newauto.cxx | 8 +- src/Cockpit/cockpit.cxx | 2 - src/Cockpit/panel.cxx | 39 +++- src/Cockpit/panel.hxx | 13 +- src/Cockpit/radiostack.cxx | 193 +++++++++++++++++- src/Cockpit/radiostack.hxx | 34 +++- src/Cockpit/steam.cxx | 2 +- src/Main/bfi.cxx | 389 +------------------------------------ src/Main/bfi.hxx | 65 +------ src/Main/fg_init.cxx | 19 +- src/Main/keyboard.cxx | 1 + src/Main/main.cxx | 14 +- 13 files changed, 376 insertions(+), 493 deletions(-) diff --git a/FlightGear.dsp b/FlightGear.dsp index c7da4d296..3209be438 100644 --- a/FlightGear.dsp +++ b/FlightGear.dsp @@ -1093,6 +1093,21 @@ SOURCE=.\src\FDM\LaRCsim\ls_step.c # End Source File # Begin Source File +SOURCE=.\src\FDM\LaRCsim\ls_trim.c + +!IF "$(CFG)" == "FlightGear - Win32 Release" + +# PROP Intermediate_Dir "Release\Lib_LaRCsim" + +!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug" + +# PROP Intermediate_Dir "Debug\Lib_LaRCsim" + +!ENDIF + +# End Source File +# Begin Source File + SOURCE=.\src\FDM\LaRCsim\c172_aero.c !IF "$(CFG)" == "FlightGear - Win32 Release" @@ -2095,6 +2110,21 @@ SOURCE=.\src\FDM\MagicCarpet.cxx # PROP Default_Filter "" # Begin Source File +SOURCE=.\src\GUI\apt_dlg.cxx + +!IF "$(CFG)" == "FlightGear - Win32 Release" + +# PROP Intermediate_Dir "Release\Lib_GUI" + +!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug" + +# PROP Intermediate_Dir "Debug\Lib_GUI" + +!ENDIF + +# End Source File +# Begin Source File + SOURCE=.\src\GUI\gui.cxx !IF "$(CFG)" == "FlightGear - Win32 Release" @@ -2107,6 +2137,66 @@ SOURCE=.\src\GUI\gui.cxx !ENDIF +# End Source File +# Begin Source File + +SOURCE=.\src\GUI\gui_local.cxx + +!IF "$(CFG)" == "FlightGear - Win32 Release" + +# PROP Intermediate_Dir "Release\Lib_GUI" + +!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug" + +# PROP Intermediate_Dir "Debug\Lib_GUI" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\GUI\mouse.cxx + +!IF "$(CFG)" == "FlightGear - Win32 Release" + +# PROP Intermediate_Dir "Release\Lib_GUI" + +!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug" + +# PROP Intermediate_Dir "Debug\Lib_GUI" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\GUI\net_dlg.cxx + +!IF "$(CFG)" == "FlightGear - Win32 Release" + +# PROP Intermediate_Dir "Release\Lib_GUI" + +!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug" + +# PROP Intermediate_Dir "Debug\Lib_GUI" + +!ENDIF + +# End Source File +# Begin Source File + +SOURCE=.\src\GUI\trackball.c + +!IF "$(CFG)" == "FlightGear - Win32 Release" + +# PROP Intermediate_Dir "Release\Lib_GUI" + +!ELSEIF "$(CFG)" == "FlightGear - Win32 Debug" + +# PROP Intermediate_Dir "Debug\Lib_GUI" + +!ENDIF + # End Source File # End Group # Begin Group "Lib_Joystick" diff --git a/src/Autopilot/newauto.cxx b/src/Autopilot/newauto.cxx index aaea3e23b..e432ee094 100644 --- a/src/Autopilot/newauto.cxx +++ b/src/Autopilot/newauto.cxx @@ -184,10 +184,10 @@ void FGAutopilot::MakeTargetWPStr( double distance ) { void FGAutopilot::update_old_control_values() { - old_aileron = FGBFI::getAileron(); - old_elevator = FGBFI::getElevator(); - old_elevator_trim = FGBFI::getElevatorTrim(); - old_rudder = FGBFI::getRudder(); + old_aileron = controls.get_aileron(); + old_elevator = controls.get_elevator(); + old_elevator_trim = controls.get_elevator_trim(); + old_rudder = controls.get_rudder(); } diff --git a/src/Cockpit/cockpit.cxx b/src/Cockpit/cockpit.cxx index cd77d685d..76de6c0de 100644 --- a/src/Cockpit/cockpit.cxx +++ b/src/Cockpit/cockpit.cxx @@ -755,6 +755,4 @@ void fgCockpitUpdate( void ) { globals->get_options()->get_xsize(), globals->get_options()->get_ysize() ); - if (current_panel != 0) - current_panel->update(); } diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 11370d745..8cfc864a8 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -33,7 +33,9 @@ #include #include + #include
+#include
#include #include