From c2d633bf69fc149ec190adb170f787c81b8a7416 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 31 Mar 2004 21:40:33 +0000 Subject: [PATCH] haven't needed that for a while --- include/Makefile.am | 2 +- include/menu.h | 111 -------------------------------------------- 2 files changed, 1 insertion(+), 112 deletions(-) delete mode 100644 include/menu.h diff --git a/include/Makefile.am b/include/Makefile.am index 346e0a952..0bbccdb2f 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -6,7 +6,7 @@ EXTRA_DIST = asm_i386.h alsa_funcs_list.h adivtab.h anorm_dots.h anorms.h \ context_x11.h d_iface.h d_ifacea.h d_local.h dga_check.h exp.h fbset.h \ garbage.h getopt.h gib_buffer.h gib_builtin.h gib_classes.h gib_execute.h gib_function.h \ gib_handle.h gib_object.h gib_parse.h gib_process.h gib_regex.h gib_semantics.h \ - gib_thread.h gib_tree.h gib_vars.h gl_warp_sin.h in_win.h logos.h menu.h \ + gib_thread.h gib_tree.h gib_vars.h gl_warp_sin.h in_win.h logos.h \ net_dgrm.h net_loop.h net_udp.h net_vcr.h net_wins.h netchan.h netmain.h \ old_keys.h ops.h qstring.h quakeasm.h regex.h r_cvar.h r_dynamic.h \ r_local.h r_screen.h r_shared.h rua_internal.h sbar.h skin_stencil.h \ diff --git a/include/menu.h b/include/menu.h deleted file mode 100644 index 259bf5b31..000000000 --- a/include/menu.h +++ /dev/null @@ -1,111 +0,0 @@ -/* - menu.h - - menu subsystem - - Copyright (C) 2001 Joseph Carter - - Author: Joseph Carter - Date: 16 Apr 2001 - - 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: - - Free Software Foundation, Inc. - 59 Temple Place - Suite 330 - Boston, MA 02111-1307, USA - - $Id$ -*/ - -#ifndef __MENU_H -#define __MENU_H - -typedef enum { - M_Static, - M_Menu, - M_Toggle, - M_Slide, - M_SelectStr, - M_SelectInt, - M_Command, - M_Engine, - M_Progs -} mitem_type; - - -typedef enum { - MHook_None, - MHook_Engine, - MHook_Progs -} mhook_type; - -typedef struct menuitem_s { - char *title; -// char *desc; // FIXME: Implement or remove? - - mitem_type type; - union mitem { - /* NOTHING */ // M_Static - struct menu_s *menu; // M_Menu - struct cvar_s *var; // M_Toggle - struct { - float min, max, step; - struct cvar_s *var; - } slide; // M_Slide - struct { - char **choices; - char **strings; - struct cvar_s *var; - } selectstr; // M_SelectStr - struct { - char **choices; - int *values; - struct cvar_s *var; - } selectint; // M_SelectInt - char *cmd; // M_Command - void (*engine)(void); // M_Engine - char *progs; // M_Progs - }; - - // engine/progs function hook for dynamic things, called at display - mhook_type hook; - union mhook { - void (*engine_hook)(struct menuitem_s *item); - char *progs_hook; - }; - - struct menuitem_s *prev; - struct menuitem_s *next; -} menuitem_t; - -typedef struct menu_s { - char *title; - - // for any of the screen is "reserved" for hooks - int lofs, rofs; // 0-319 scale - int tofs, bofs; // 0-199 scale - - // engine/progs function hook for menu title - mhook_type hook; - union mthook { - void (*engine_hool)(char *title); - char *progs_hook; - }; - - menuitem_t *items; -} menu_t; - -#endif // __MENU_H -