From 3ecf1b8dce76e1ceada10f3106c60b56d5939fc7 Mon Sep 17 00:00:00 2001 From: curt Date: Sun, 30 Apr 2000 06:51:49 +0000 Subject: [PATCH] Autopilot "class-ification". Separated out gui parts of autopilot control from the actual autopilot code. --- src/Autopilot/Makefile.am | 4 +- src/Autopilot/auto_gui.cxx | 702 ++++++++++++++ src/Autopilot/auto_gui.hxx | 94 ++ src/Autopilot/autopilot.cxx | 1710 ----------------------------------- src/Autopilot/autopilot.hxx | 155 ---- src/Autopilot/newauto.cxx | 802 ++++++++++++++++ src/Autopilot/newauto.hxx | 176 ++++ src/Cockpit/hud.cxx | 34 +- src/Cockpit/panel.cxx | 3 - src/Cockpit/steam.cxx | 2 +- src/GUI/gui.cxx | 28 +- src/Main/bfi.cxx | 42 +- src/Main/fg_init.cxx | 16 +- src/Main/keyboard.cxx | 81 +- src/Main/main.cxx | 4 +- 15 files changed, 1902 insertions(+), 1951 deletions(-) create mode 100644 src/Autopilot/auto_gui.cxx create mode 100644 src/Autopilot/auto_gui.hxx delete mode 100644 src/Autopilot/autopilot.cxx delete mode 100644 src/Autopilot/autopilot.hxx create mode 100644 src/Autopilot/newauto.cxx create mode 100644 src/Autopilot/newauto.hxx diff --git a/src/Autopilot/Makefile.am b/src/Autopilot/Makefile.am index 9e38e9d69..3d0623429 100644 --- a/src/Autopilot/Makefile.am +++ b/src/Autopilot/Makefile.am @@ -1,5 +1,7 @@ noinst_LIBRARIES = libAutopilot.a -libAutopilot_a_SOURCES = autopilot.cxx autopilot.hxx +libAutopilot_a_SOURCES = \ + auto_gui.cxx auto_gui.hxx \ + newauto.cxx newauto.hxx INCLUDES += -I$(top_builddir) -I$(top_builddir)/src diff --git a/src/Autopilot/auto_gui.cxx b/src/Autopilot/auto_gui.cxx new file mode 100644 index 000000000..9379bfec4 --- /dev/null +++ b/src/Autopilot/auto_gui.cxx @@ -0,0 +1,702 @@ +// auto_gui.cxx -- autopilot gui interface +// +// Written by Norman Vine +// Arranged by Curt Olson +// +// Copyright (C) 1998 - 2000 +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// +// $Id$ + + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include +#include + +#include + +#include +#include +#include +#include + +#include +#include +#include
+#include
+#include
+#include