summaryrefslogtreecommitdiffstats
path: root/libmenu/menu_list.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-10-25 07:05:47 +0300
committerUoti Urpala <uau@mplayer2.org>2011-10-25 07:05:47 +0300
commit8b5efd6455370c02211f9fec2a3dbb74f5d0fcbc (patch)
tree4a8222fbf5ed2c8e7b7766435820183ff641c97d /libmenu/menu_list.h
parentb200583403219136363b755afab2b05c0937a928 (diff)
downloadmpv-8b5efd6455370c02211f9fec2a3dbb74f5d0fcbc.tar.bz2
mpv-8b5efd6455370c02211f9fec2a3dbb74f5d0fcbc.tar.xz
libmenu: remove OSD menu functionality (--menu)
Something like the OSD menu functionality could be useful. However the current implementation has several problems and would require a relatively large amount of work to get into good shape. As far as I know there are few users of the existing functionality. Nobody is working on the existing code and keeping it compiling at all while changing other code would require extra work. So delete the menu code and some related code elsewhere that's used by nothing else.
Diffstat (limited to 'libmenu/menu_list.h')
-rw-r--r--libmenu/menu_list.h106
1 files changed, 0 insertions, 106 deletions
diff --git a/libmenu/menu_list.h b/libmenu/menu_list.h
deleted file mode 100644
index 8bc78e2792..0000000000
--- a/libmenu/menu_list.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * This file is part of MPlayer.
- *
- * MPlayer 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.
- *
- * MPlayer 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 MPlayer; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#ifndef MPLAYER_MENU_LIST_H
-#define MPLAYER_MENU_LIST_H
-
-#include "menu.h"
-
-typedef struct list_entry_s list_entry_t;
-
-
-#ifdef IMPL
-struct list_entry_s {
-#else
-struct list_entry {
-#endif
- list_entry_t* prev;
- list_entry_t* next;
-
- char* txt;
- char hide;
-};
-
-
-#ifndef IMPL
-typedef struct menu_list_priv_s {
-#else
-typedef struct menu_priv_s {
-#endif
- list_entry_t* menu;
- list_entry_t* current;
- int count;
-
- char* title;
- int x,y;
- int w,h;
- int vspace, minb;
- int disp_lines;
- char* ptr;
- int title_bg,title_bg_alpha;
- int item_bg,item_bg_alpha;
- int ptr_bg,ptr_bg_alpha;
-} menu_list_priv_t;
-
-typedef void (*free_entry_t)(list_entry_t* entry);
-
-void menu_list_read_cmd(menu_t* menu,int cmd);
-void menu_list_draw(menu_t* menu,mp_image_t* mpi);
-void menu_list_add_entry(menu_t* menu,list_entry_t* entry);
-void menu_list_init(menu_t* menu);
-void menu_list_uninit(menu_t* menu,free_entry_t free_func);
-int menu_list_jump_to_key(menu_t* menu,int c);
-
-extern const menu_list_priv_t menu_list_priv_dflt;
-
-#define MENU_LIST_PRIV_DFLT { \
- NULL, \
- NULL, \
- 0, \
-\
- "MPlayer", \
- -1,-1, \
- 0,0, \
- 5, 3, \
- 0, \
- NULL, \
- 0xFF, 0xFF, \
- 0xFF, 0xFF, \
- 0xA4, 0x50 \
-}
-
-
-#define MENU_LIST_PRIV_FIELDS \
- { "minbor", M_ST_OFF(menu_list_priv_t,minb), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
- { "vspace", M_ST_OFF(menu_list_priv_t,vspace), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
- { "x", M_ST_OFF(menu_list_priv_t,x), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
- { "y", M_ST_OFF(menu_list_priv_t,y), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
- { "w", M_ST_OFF(menu_list_priv_t,w), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
- { "h", M_ST_OFF(menu_list_priv_t,h), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL }, \
- { "ptr", M_ST_OFF(menu_list_priv_t,ptr), CONF_TYPE_STRING, 0, 0, 0, NULL }, \
- { "title-bg", M_ST_OFF(menu_list_priv_t,title_bg), CONF_TYPE_INT, M_OPT_RANGE, -1, 255, NULL }, \
- { "title-bg-alpha", M_ST_OFF(menu_list_priv_t,title_bg_alpha), \
- CONF_TYPE_INT, M_OPT_RANGE, 0, 255, NULL }, \
- { "item-bg", M_ST_OFF(menu_list_priv_t,item_bg), CONF_TYPE_INT, M_OPT_RANGE, -1, 255, NULL }, \
- { "item-bg-alpha", M_ST_OFF(menu_list_priv_t,item_bg_alpha), \
- CONF_TYPE_INT, M_OPT_RANGE, 0, 255, NULL }, \
- { "ptr-bg", M_ST_OFF(menu_list_priv_t,ptr_bg), CONF_TYPE_INT, M_OPT_RANGE, -1, 255, NULL }, \
- { "ptr-bg-alpha", M_ST_OFF(menu_list_priv_t,ptr_bg_alpha), \
- CONF_TYPE_INT, M_OPT_RANGE, 0, 255, NULL } \
-
-#endif /* MPLAYER_MENU_LIST_H */