From 029dda3297e3697438e1a58188527cbae90beebe Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 1 Nov 2005 13:41:49 +0000 Subject: [PATCH] In the process of changing, adding and removing files the last few years there was the situation where four directories contained jst two files, of which three directories were aircraft related, and one directory contained test code from Curt that might be better of in SimGear anyhow. This is just a patch to move a bunch of files to new locations. In case of local changes to any of them you can do the following: move replay.[ch]xx from src/Replay to src/Aircraft move control.[ch]xx from src/Control to src/Aircraft move ssgEntityArray.[ch]xx from src/Objects to simgear/screen In addition it has been decided only to use .[ch]xx files in all directories unless it's contained within an FDM specific directory, in which case the author is free to do whatever (s)he wants. In this repspect the following files have been renamed in src/Multiplayer: tiny_xdr.[ch]pp has become tiny_xdr.[ch]xx multiplaymgr.[ch]pp has become multiplaymgr.[ch]xx --- configure.ac | 3 - src/Aircraft/Makefile.am | 5 +- src/Aircraft/aircraft.hxx | 3 +- src/{Controls => Aircraft}/controls.cxx | 10 +- src/{Controls => Aircraft}/controls.hxx | 4 - src/{Replay => Aircraft}/replay.cxx | 0 src/{Replay => Aircraft}/replay.hxx | 0 src/Autopilot/auto_gui.cxx | 1 - src/Cockpit/hud.hxx | 2 +- src/Controls/.cvsignore | 3 - src/Controls/Makefile.am | 5 - src/FDM/Balloon.cxx | 1 - src/FDM/JSBSim/JSBSim.cxx | 2 +- src/FDM/LaRCsim/LaRCsim.cxx | 2 +- src/FDM/MagicCarpet.cxx | 2 +- src/FDM/SP/ADA.cxx | 5 +- src/FDM/UFO.cxx | 2 +- src/GUI/gui_funcs.cxx | 4 +- src/GUI/mouse.cxx | 2 +- src/Main/Makefile.am | 2 - src/Main/fg_commands.cxx | 2 +- src/Main/fg_init.cxx | 4 +- src/Main/main.cxx | 4 +- src/Main/renderer.cxx | 2 +- src/Makefile.am | 11 +- src/MultiPlayer/Makefile.am | 2 +- src/MultiPlayer/mpmessages.hxx | 4 +- .../{multiplaymgr.cpp => multiplaymgr.cxx} | 8 +- .../{multiplaymgr.hpp => multiplaymgr.hxx} | 0 .../{tiny_xdr.cpp => tiny_xdr.cxx} | 2 +- .../{tiny_xdr.hpp => tiny_xdr.hxx} | 0 src/Network/multiplay.hxx | 2 +- src/Network/native_ctrls.hxx | 4 +- src/Network/opengc.cxx | 1 - src/Objects/.cvsignore | 3 - src/Objects/Makefile.am | 6 - src/Objects/ssgEntityArray.cxx | 362 ------------------ src/Objects/ssgEntityArray.hxx | 66 ---- src/Replay/.cvsignore | 3 - src/Replay/Makefile.am | 5 - 40 files changed, 36 insertions(+), 513 deletions(-) rename src/{Controls => Aircraft}/controls.cxx (99%) rename src/{Controls => Aircraft}/controls.hxx (99%) rename src/{Replay => Aircraft}/replay.cxx (100%) rename src/{Replay => Aircraft}/replay.hxx (100%) delete mode 100644 src/Controls/.cvsignore delete mode 100644 src/Controls/Makefile.am rename src/MultiPlayer/{multiplaymgr.cpp => multiplaymgr.cxx} (99%) rename src/MultiPlayer/{multiplaymgr.hpp => multiplaymgr.hxx} (100%) rename src/MultiPlayer/{tiny_xdr.cpp => tiny_xdr.cxx} (99%) rename src/MultiPlayer/{tiny_xdr.hpp => tiny_xdr.hxx} (100%) delete mode 100644 src/Objects/.cvsignore delete mode 100644 src/Objects/Makefile.am delete mode 100644 src/Objects/ssgEntityArray.cxx delete mode 100644 src/Objects/ssgEntityArray.hxx delete mode 100644 src/Replay/.cvsignore delete mode 100644 src/Replay/Makefile.am diff --git a/configure.ac b/configure.ac index 391e3226e..252e20e17 100644 --- a/configure.ac +++ b/configure.ac @@ -512,7 +512,6 @@ AC_CONFIG_FILES([ \ src/Autopilot/Makefile \ src/Cockpit/Makefile \ src/Cockpit/built_in/Makefile \ - src/Controls/Makefile \ src/Environment/Makefile \ src/FDM/Balloon/Makefile \ src/FDM/ExternalNet/Makefile \ @@ -535,8 +534,6 @@ AC_CONFIG_FILES([ \ src/MultiPlayer/Makefile \ src/Navaids/Makefile \ src/Network/Makefile \ - src/Objects/Makefile \ - src/Replay/Makefile \ src/Scenery/Makefile \ src/Scripting/Makefile \ src/Sound/Makefile \ diff --git a/src/Aircraft/Makefile.am b/src/Aircraft/Makefile.am index a26f5b7ee..25dcd510d 100644 --- a/src/Aircraft/Makefile.am +++ b/src/Aircraft/Makefile.am @@ -1,5 +1,8 @@ noinst_LIBRARIES = libAircraft.a -libAircraft_a_SOURCES = aircraft.cxx aircraft.hxx +libAircraft_a_SOURCES = \ + aircraft.cxx aircraft.hxx \ + controls.cxx controls.hxx \ + replay.cxx replay.hxx INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src diff --git a/src/Aircraft/aircraft.hxx b/src/Aircraft/aircraft.hxx index 406e9773e..c51c81624 100644 --- a/src/Aircraft/aircraft.hxx +++ b/src/Aircraft/aircraft.hxx @@ -33,9 +33,10 @@ #include -#include #include
+#include "controls.hxx" + // Define a structure containing all the parameters for an aircraft typedef struct{ diff --git a/src/Controls/controls.cxx b/src/Aircraft/controls.cxx similarity index 99% rename from src/Controls/controls.cxx rename to src/Aircraft/controls.cxx index 7da87d3c7..3594e7664 100644 --- a/src/Controls/controls.cxx +++ b/src/Aircraft/controls.cxx @@ -660,7 +660,6 @@ FGControls::bind () &FGControls::get_dome_norm, &FGControls::set_dome_norm); fgSetArchivable("/controls/lighting/dome-norm"); -#ifdef FG_HAVE_ARMAMENT // armament fgTie("/controls/armament/master-arm", this, &FGControls::get_master_arm, &FGControls::set_master_arm); @@ -703,8 +702,6 @@ FGControls::bind () fgSetArchivable(name); } -#endif - // seat fgTie("/controls/seat/vertical-adjust", this, &FGControls::get_vertical_adjust, @@ -979,7 +976,6 @@ void FGControls::unbind () fgUntie("/controls/lighting/instruments-norm"); fgUntie("/controls/lighting/dome-norm"); -#ifdef FG_HAVE_ARMAMENT fgUntie("/controls/armament/master-arm"); fgUntie("/controls/armament/station-select"); fgUntie("/controls/armament/release-all"); @@ -998,7 +994,7 @@ void FGControls::unbind () "/controls/armament/station[%d]/jettison-all", index); fgUntie(name); } -#endif + fgUntie("/controls/seat/vertical-adjust"); fgUntie("/controls/seat/fore-aft-adjust"); for (index = 0; index < MAX_EJECTION_SEATS; index++) { @@ -2014,8 +2010,6 @@ FGControls::move_dome_norm( double amt ) CLAMP( &dome_norm, 0.0, 1.0 ); } -#ifdef FG_HAVE_ARMAMENT - void FGControls::set_master_arm( bool val ) { @@ -2093,8 +2087,6 @@ FGControls::set_jettison_all( int station, bool val ) } } -#endif - void FGControls::set_vertical_adjust( double pos ) { diff --git a/src/Controls/controls.hxx b/src/Aircraft/controls.hxx similarity index 99% rename from src/Controls/controls.hxx rename to src/Aircraft/controls.hxx index 4a0bea555..0d107b373 100644 --- a/src/Controls/controls.hxx +++ b/src/Aircraft/controls.hxx @@ -407,7 +407,6 @@ public: inline double get_instruments_norm() const { return instruments_norm; } inline double get_dome_norm() const { return dome_norm; } -#ifdef FG_HAVE_ARMAMENT // controls/armament/ inline bool get_master_arm() const { return master_arm; } inline int get_station_select() const { return station_select; } @@ -418,7 +417,6 @@ public: inline bool get_release_stick(int station) const { return release_stick[station]; } inline bool get_release_all(int station) const { return release_all[station]; } inline bool get_jettison_all(int station) const { return jettison_all[station]; } -#endif // controls/seat/ inline double get_vertical_adjust() const { return vertical_adjust; } @@ -595,7 +593,6 @@ public: void set_dome_norm( double intensity ); void move_dome_norm( double amt ); -#ifdef FG_HAVE_ARMAMENT // controls/armament/ void set_master_arm( bool val ); void set_station_select( int station ); @@ -606,7 +603,6 @@ public: void set_release_stick( int station, bool val ); void set_release_all( int station, bool val ); void set_jettison_all( int station, bool val ); -#endif // controls/seat/ void set_vertical_adjust( double pos ); diff --git a/src/Replay/replay.cxx b/src/Aircraft/replay.cxx similarity index 100% rename from src/Replay/replay.cxx rename to src/Aircraft/replay.cxx diff --git a/src/Replay/replay.hxx b/src/Aircraft/replay.hxx similarity index 100% rename from src/Replay/replay.hxx rename to src/Aircraft/replay.hxx diff --git a/src/Autopilot/auto_gui.cxx b/src/Autopilot/auto_gui.cxx index 42343865d..e7ae0a45d 100644 --- a/src/Autopilot/auto_gui.cxx +++ b/src/Autopilot/auto_gui.cxx @@ -36,7 +36,6 @@ #include #include -#include #include #include diff --git a/src/Cockpit/hud.hxx b/src/Cockpit/hud.hxx index 89c3abd0b..50365f35a 100644 --- a/src/Cockpit/hud.hxx +++ b/src/Cockpit/hud.hxx @@ -54,8 +54,8 @@ #include #include +#include #include -#include #include #include
#include
diff --git a/src/Controls/.cvsignore b/src/Controls/.cvsignore deleted file mode 100644 index e99558847..000000000 --- a/src/Controls/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -.deps -Makefile -Makefile.in diff --git a/src/Controls/Makefile.am b/src/Controls/Makefile.am deleted file mode 100644 index 02729a4fa..000000000 --- a/src/Controls/Makefile.am +++ /dev/null @@ -1,5 +0,0 @@ -noinst_LIBRARIES = libControls.a - -libControls_a_SOURCES = controls.cxx controls.hxx - -INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src diff --git a/src/FDM/Balloon.cxx b/src/FDM/Balloon.cxx index 9d7f19bad..1bf6d9913 100644 --- a/src/FDM/Balloon.cxx +++ b/src/FDM/Balloon.cxx @@ -55,7 +55,6 @@ HISTORY #include #include -#include #include
#include
diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 40650a6ea..6b8fb7bfb 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -43,7 +43,7 @@ #include #include -#include +#include #include
#include
diff --git a/src/FDM/LaRCsim/LaRCsim.cxx b/src/FDM/LaRCsim/LaRCsim.cxx index df59b52d2..8606b8b9d 100644 --- a/src/FDM/LaRCsim/LaRCsim.cxx +++ b/src/FDM/LaRCsim/LaRCsim.cxx @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include #include
diff --git a/src/FDM/MagicCarpet.cxx b/src/FDM/MagicCarpet.cxx index fc84a6939..3c5fc9c04 100644 --- a/src/FDM/MagicCarpet.cxx +++ b/src/FDM/MagicCarpet.cxx @@ -29,7 +29,7 @@ #include #include -#include +#include #include
#include
diff --git a/src/FDM/SP/ADA.cxx b/src/FDM/SP/ADA.cxx index 4ef0ea608..2f16eb380 100644 --- a/src/FDM/SP/ADA.cxx +++ b/src/FDM/SP/ADA.cxx @@ -26,11 +26,10 @@ #include #include -#include +#include +#include //to pass ground elevation to FDM #include
- #include
//to get ID of window (left/right or center) -#include //to pass ground elevation to FDM #include "ADA.hxx" diff --git a/src/FDM/UFO.cxx b/src/FDM/UFO.cxx index f6b26f58d..60727faf3 100644 --- a/src/FDM/UFO.cxx +++ b/src/FDM/UFO.cxx @@ -29,7 +29,7 @@ #include #include -#include +#include #include
#include
diff --git a/src/GUI/gui_funcs.cxx b/src/GUI/gui_funcs.cxx index bc6bdc9c8..07a1b215a 100644 --- a/src/GUI/gui_funcs.cxx +++ b/src/GUI/gui_funcs.cxx @@ -69,10 +69,10 @@ #include #include +#include #include #include #include -#include #include #include
#include
@@ -427,7 +427,7 @@ void fgHiResDump() message = "Snapshot saved to \""; message += filename; - message += '".'; + message += "\"."; mkDialog (message.c_str()); free(tile); diff --git a/src/GUI/mouse.cxx b/src/GUI/mouse.cxx index 7be33c88a..28cdd35ec 100644 --- a/src/GUI/mouse.cxx +++ b/src/GUI/mouse.cxx @@ -55,10 +55,10 @@ #include #include +#include #include #include #include -#include #include #include
#include
diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index bf8c092ad..4efa4deaf 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -59,7 +59,6 @@ fgfs_LDADD = \ $(top_builddir)/src/ATC/libATC.a \ $(top_builddir)/src/Cockpit/libCockpit.a \ $(top_builddir)/src/Cockpit/built_in/libBuilt_in.a \ - $(top_builddir)/src/Controls/libControls.a \ $(top_builddir)/src/FDM/libFlight.a \ $(top_builddir)/src/FDM/Balloon/libBalloon.a \ $(top_builddir)/src/FDM/ExternalNet/libExternalNet.a \ @@ -83,7 +82,6 @@ fgfs_LDADD = \ $(top_builddir)/src/Sound/libSound.a \ $(top_builddir)/src/Airports/libAirports.a \ $(MPLAYER_LIBS) \ - $(top_builddir)/src/Replay/libReplay.a \ $(top_builddir)/src/Systems/libSystems.a \ $(top_builddir)/src/Time/libTime.a \ $(top_builddir)/src/Traffic/libTraffic.a \ diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 21e9975e5..8db3908dd 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include #if defined(HAVE_PLIB_PSL) # include diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 7a52560d6..ac668cb16 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -64,6 +64,7 @@ #include #include +#include #include #include #include @@ -99,7 +100,6 @@ #include #include #include -#include #include #include #include @@ -114,7 +114,7 @@ #include #ifdef FG_MPLAYER_AS -#include +#include #endif #include diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 0858e06ff..c5fd29ab4 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -55,6 +55,7 @@ #include #include