From 980012e1682fdb27c9b9ec27edea0b549d603f9d Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 24 Sep 2003 17:20:55 +0000 Subject: [PATCH] Move FGEventMgr and FGSubsystemMgr over to SimGear, add SGEventMgr to FlightGear's globals structre and some small code cleanups --- src/ATC/AIMgr.cxx | 4 +- src/ATC/AIMgr.hxx | 5 +- src/ATC/ATC.cxx | 1 - src/ATC/ATCDialog.cxx | 4 +- src/ATC/ATCdisplay.hxx | 4 +- src/ATC/ATCmgr.cxx | 10 +- src/ATC/ATCmgr.hxx | 5 +- src/Aircraft/aircraft.cxx | 5 +- src/Autopilot/newauto.hxx | 6 +- src/Cockpit/dme.cxx | 1 - src/Cockpit/dme.hxx | 5 +- src/Cockpit/hud.cxx | 2 +- src/Cockpit/kr_87.cxx | 1 - src/Cockpit/kr_87.hxx | 5 +- src/Cockpit/kt_70.hxx | 5 +- src/Cockpit/marker_beacon.cxx | 1 - src/Cockpit/marker_beacon.hxx | 5 +- src/Cockpit/navcom.cxx | 1 - src/Cockpit/navcom.hxx | 5 +- src/Cockpit/panel.hxx | 14 +- src/Cockpit/panel_io.cxx | 3 +- src/Cockpit/radiostack.cxx | 6 +- src/Cockpit/radiostack.hxx | 5 +- src/Controls/controls.hxx | 6 +- src/Environment/environment.hxx | 2 - src/Environment/environment_ctrl.hxx | 5 +- src/Environment/environment_mgr.cxx | 6 +- src/Environment/environment_mgr.hxx | 5 +- src/FDM/flight.hxx | 7 +- src/GUI/gui.cxx | 2 +- src/GUI/gui.h | 2 +- src/GUI/new_gui.cxx | 3 +- src/GUI/new_gui.hxx | 4 +- src/GUI/preset_dlg.cxx | 2 +- src/Include/Makefile.am | 1 - src/Input/input.hxx | 8 +- src/Instrumentation/airspeed_indicator.hxx | 5 +- src/Instrumentation/altimeter.hxx | 4 +- src/Instrumentation/annunciator.hxx | 5 +- src/Instrumentation/attitude_indicator.hxx | 5 +- src/Instrumentation/clock.hxx | 5 +- src/Instrumentation/dme.hxx | 5 +- src/Instrumentation/gps.hxx | 5 +- src/Instrumentation/heading_indicator.hxx | 5 +- src/Instrumentation/instrument_mgr.hxx | 5 +- src/Instrumentation/mag_compass.hxx | 5 +- src/Instrumentation/slip_skid_ball.hxx | 5 +- src/Instrumentation/turn_indicator.hxx | 5 +- .../vertical_speed_indicator.hxx | 5 +- src/Main/Makefile.am | 3 +- src/Main/bootstrap.cxx | 2 +- src/Main/fg_commands.cxx | 12 +- src/Main/fg_commands.hxx | 2 +- src/Main/fg_init.cxx | 60 +-- src/Main/fg_io.hxx | 6 +- src/Main/fg_props.cxx | 3 +- src/Main/fgfs.cxx | 337 ----------------- src/Main/fgfs.hxx | 355 ------------------ src/Main/globals.cxx | 45 ++- src/Main/globals.hxx | 58 ++- src/Main/logger.hxx | 9 +- src/Main/main.cxx | 30 +- src/Main/options.cxx | 2 +- src/Main/viewer.hxx | 7 +- src/Main/viewmgr.hxx | 4 +- src/Model/acmodel.cxx | 2 +- src/Model/acmodel.hxx | 4 +- src/Model/model_panel.cxx | 2 +- src/Model/modelmgr.hxx | 5 +- src/Network/generic.cxx | 2 +- src/Network/httpd.cxx | 2 +- src/Network/props.cxx | 2 +- src/Replay/replay.hxx | 4 +- src/Scenery/scenery.hxx | 7 +- src/Scenery/tilemgr.cxx | 2 +- src/Scripting/scriptmgr.hxx | 5 +- src/Sound/fg_fx.cxx | 2 +- src/Sound/fg_fx.hxx | 4 +- src/Systems/electrical.cxx | 2 +- src/Systems/electrical.hxx | 5 +- src/Systems/pitot.hxx | 5 +- src/Systems/static.hxx | 5 +- src/Systems/system_mgr.hxx | 5 +- src/Systems/vacuum.hxx | 5 +- src/Time/FGEventMgr.cxx | 217 ----------- src/Time/FGEventMgr.hxx | 187 --------- src/Time/Makefile.am | 1 - src/Time/light.hxx | 3 +- 88 files changed, 279 insertions(+), 1354 deletions(-) delete mode 100644 src/Main/fgfs.cxx delete mode 100644 src/Main/fgfs.hxx delete mode 100644 src/Time/FGEventMgr.cxx delete mode 100644 src/Time/FGEventMgr.hxx diff --git a/src/ATC/AIMgr.cxx b/src/ATC/AIMgr.cxx index 871feb8b4..c0a6ec9a8 100644 --- a/src/ATC/AIMgr.cxx +++ b/src/ATC/AIMgr.cxx @@ -19,10 +19,10 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -#include
+#include + #include
#include
-#include #include diff --git a/src/ATC/AIMgr.hxx b/src/ATC/AIMgr.hxx index a186d1307..2c67eb020 100644 --- a/src/ATC/AIMgr.hxx +++ b/src/ATC/AIMgr.hxx @@ -22,7 +22,8 @@ #ifndef _FG_AIMGR_HXX #define _FG_AIMGR_HXX -#include
+#include + #include
#include @@ -33,7 +34,7 @@ SG_USING_STD(list); -class FGAIMgr : public FGSubsystem +class FGAIMgr : public SGSubsystem { private: diff --git a/src/ATC/ATC.cxx b/src/ATC/ATC.cxx index 2a51b89a5..d8fc4b737 100644 --- a/src/ATC/ATC.cxx +++ b/src/ATC/ATC.cxx @@ -24,7 +24,6 @@ #include -#include
#include
#include "ATC.hxx" diff --git a/src/ATC/ATCDialog.cxx b/src/ATC/ATCDialog.cxx index 9566e1da6..1a4aefa3f 100644 --- a/src/ATC/ATCDialog.cxx +++ b/src/ATC/ATCDialog.cxx @@ -18,10 +18,10 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +#include + #include
-#include
#include -#include #include "ATCDialog.hxx" #include "ATC.hxx" diff --git a/src/ATC/ATCdisplay.hxx b/src/ATC/ATCdisplay.hxx index ba50fd6c5..c41bb72f8 100644 --- a/src/ATC/ATCdisplay.hxx +++ b/src/ATC/ATCdisplay.hxx @@ -27,7 +27,7 @@ # include #endif -#include
+#include #include #include @@ -49,7 +49,7 @@ struct atcMessage { typedef vector atcMessageList; typedef atcMessageList::iterator atcMessageListIterator; -class FGATCDisplay : public FGSubsystem +class FGATCDisplay : public SGSubsystem { private: diff --git a/src/ATC/ATCmgr.cxx b/src/ATC/ATCmgr.cxx index fca305417..fc300d1af 100644 --- a/src/ATC/ATCmgr.cxx +++ b/src/ATC/ATCmgr.cxx @@ -18,8 +18,6 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -//#include