From: curt Date: Mon, 8 Jan 2001 20:55:16 +0000 (+0000) Subject: Norman Vine has split up the GUI code into more managable/logical sections. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bff544aada682998cb5254060b81a736f7781f50;p=flightgear.git Norman Vine has split up the GUI code into more managable/logical sections. --- diff --git a/src/Cockpit/hud.cxx b/src/Cockpit/hud.cxx index c4cfa1e11..17082b830 100644 --- a/src/Cockpit/hud.cxx +++ b/src/Cockpit/hud.cxx @@ -86,65 +86,65 @@ static float hud_trans_alpha = 0.67f; //$$$ begin - added, Neetha, 28 Nov 2k -string name; -int x; -int y; -UINT width; -UINT height; -float factor; -float span_units; -float division_units; -float minor_division = 0; -UINT screen_hole; -UINT lbl_pos; -bool working; -string loadfn; -UINT options; -float maxValue; -float minValue; -float scaling; -UINT major_divs; -UINT minor_divs; -UINT modulator; -int dp_showing = 0; -string label_format; -string prelabel; -string postlabel; -int justi; -int blinking; -float maxBankAngle; -float maxSlipAngle; -UINT gap_width; -bool latitude; -bool longitude; -bool tick_bottom; -bool tick_top; -bool tick_right; -bool tick_left; -bool cap_bottom; -bool cap_top; -bool cap_right; -bool cap_left; -float marker_off; -string type; -bool enable_pointer; -string type_pointer; -bool frl_spot; -bool target; -bool vel_vector; -bool drift; -bool alpha; -bool energy; -bool climb_dive; -bool glide; -float glide_slope_val; -bool worm_energy; -bool waypoint; - -FLTFNPTR load_fn; -fgLabelJust justification; -const char *pre_label_string = 0; -const char *post_label_string = 0; +static string name; +static int x; +static int y; +static UINT width; +static UINT height; +static float factor; +static float span_units; +static float division_units; +static float minor_division = 0; +static UINT screen_hole; +static UINT lbl_pos; +static bool working; +static string loadfn; +static UINT options; +static float maxValue; +static float minValue; +static float scaling; +static UINT major_divs; +static UINT minor_divs; +static UINT modulator; +static int dp_showing = 0; +static string label_format; +static string prelabel; +static string postlabel; +static int justi; +static int blinking; +static float maxBankAngle; +static float maxSlipAngle; +static UINT gap_width; +static bool latitude; +static bool longitude; +static bool tick_bottom; +static bool tick_top; +static bool tick_right; +static bool tick_left; +static bool cap_bottom; +static bool cap_top; +static bool cap_right; +static bool cap_left; +static float marker_off; +static string type; +static bool enable_pointer; +static string type_pointer; +static bool frl_spot; +static bool target; +static bool vel_vector; +static bool drift; +static bool alpha; +static bool energy; +static bool climb_dive; +static bool glide; +static float glide_slope_val; +static bool worm_energy; +static bool waypoint; + +static FLTFNPTR load_fn; +static fgLabelJust justification; +static const char *pre_label_string = 0; +static const char *post_label_string = 0; int readHud( istream &input ); int readInstrument ( const SGPropertyNode * node); diff --git a/src/GUI/Makefile.am b/src/GUI/Makefile.am index 927499f87..22ec44d2f 100644 --- a/src/GUI/Makefile.am +++ b/src/GUI/Makefile.am @@ -1,5 +1,11 @@ noinst_LIBRARIES = libGUI.a -libGUI_a_SOURCES = gui.cxx gui.h +libGUI_a_SOURCES = \ + apt_dlg.cxx apt_dlg.hxx \ + gui.cxx gui.h \ + gui_local.cxx gui_local.hxx \ + mouse.cxx \ + net_dlg.cxx net_dlg.hxx \ + trackball.c trackball.h INCLUDES += -I$(top_srcdir) -I$(top_srcdir)/src diff --git a/src/GUI/apt_dlg.cxx b/src/GUI/apt_dlg.cxx new file mode 100644 index 000000000..e96a1b7e3 --- /dev/null +++ b/src/GUI/apt_dlg.cxx @@ -0,0 +1,147 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + +#include + +#ifdef HAVE_WINDOWS_H +# include +#endif + +#include + +#include +#include +#include + +#include + +#include +#include + +#include +#include +#include
+#include
+#include
+//#include