From 22b086318556567419e1aea8994a9fc62b9c3ac5 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 29 May 2006 20:00:41 +0000 Subject: Add textscreen.h top level header to avoid having to include all txt_* headers individually. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 542 --- textscreen/Makefile.am | 1 + textscreen/examples/calculator.c | 6 ++---- textscreen/examples/guitest.c | 15 +------------- textscreen/textscreen.h | 45 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 18 deletions(-) create mode 100644 textscreen/textscreen.h (limited to 'textscreen') diff --git a/textscreen/Makefile.am b/textscreen/Makefile.am index 15eb526c..899088fb 100644 --- a/textscreen/Makefile.am +++ b/textscreen/Makefile.am @@ -8,6 +8,7 @@ SUBDIRS= . examples noinst_LIBRARIES=libtextscreen.a libtextscreen_a_SOURCES = \ + textscreen.h \ txt_checkbox.c txt_checkbox.h \ txt_desktop.c txt_desktop.h \ txt_gui.c txt_gui.h \ diff --git a/textscreen/examples/calculator.c b/textscreen/examples/calculator.c index 18f63aa1..c2be94f8 100644 --- a/textscreen/examples/calculator.c +++ b/textscreen/examples/calculator.c @@ -1,10 +1,8 @@ #include #include -#include "txt_button.h" -#include "txt_desktop.h" -#include "txt_label.h" -#include "txt_separator.h" + +#include "textscreen.h" typedef enum { diff --git a/textscreen/examples/guitest.c b/textscreen/examples/guitest.c index 73334b47..b278d80f 100644 --- a/textscreen/examples/guitest.c +++ b/textscreen/examples/guitest.c @@ -2,20 +2,7 @@ #include #include -#include "doomkeys.h" - -#include "txt_main.h" - -#include "txt_checkbox.h" -#include "txt_button.h" -#include "txt_desktop.h" -#include "txt_inputbox.h" -#include "txt_label.h" -#include "txt_radiobutton.h" -#include "txt_separator.h" -#include "txt_strut.h" -#include "txt_table.h" -#include "txt_window.h" +#include "textscreen.h" enum { diff --git a/textscreen/textscreen.h b/textscreen/textscreen.h new file mode 100644 index 00000000..06fb6c37 --- /dev/null +++ b/textscreen/textscreen.h @@ -0,0 +1,45 @@ +// Emacs style mode select -*- C++ -*- +//----------------------------------------------------------------------------- +// +// $Id$ +// +// Copyright(C) 1993-1996 Id Software, Inc. +// Copyright(C) 2006 Simon Howard +// +// 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., 59 Temple Place - Suite 330, Boston, MA +// 02111-1307, USA. +// + +#ifndef TEXTSCREEN_H +#define TEXTSCREEN_H + +#include "../src/doomkeys.h" +#include "txt_main.h" + +#include "txt_button.h" +#include "txt_checkbox.h" +#include "txt_desktop.h" +#include "txt_inputbox.h" +#include "txt_label.h" +#include "txt_radiobutton.h" +#include "txt_separator.h" +#include "txt_strut.h" +#include "txt_table.h" +#include "txt_widget.h" +#include "txt_window_action.h" +#include "txt_window.h" + +#endif /* #ifndef TEXTSCREEN_H */ + -- cgit v1.2.3