aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2005-06-06 16:59:49 +0000
committerKalle Wallin <kaw@linux.se>2005-06-06 16:59:49 +0000
commit38880bd748572c2f3b05c6625ab1029ece2483c4 (patch)
treee571bd56fb88b41ab5acc523a1b8ecd25f1a4e9f /src/screen.c
parent996a3ca723224e6f956bc1a0c3da8653a946bcfa (diff)
downloadmpd-38880bd748572c2f3b05c6625ab1029ece2483c4.tar.gz
mpd-38880bd748572c2f3b05c6625ab1029ece2483c4.tar.xz
mpd-38880bd748572c2f3b05c6625ab1029ece2483c4.zip
Added an experimental artist (browser) screen
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3322 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 0c56a7420..b5a1d473a 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -44,17 +44,20 @@
#define SCREEN_PLAYLIST_ID 0
#define SCREEN_BROWSE_ID 1
+#define SCREEN_ARTIST_ID 2
#define SCREEN_HELP_ID 100
#define SCREEN_KEYDEF_ID 101
#define SCREEN_CLOCK_ID 102
#define SCREEN_SEARCH_ID 103
+
/* screens */
extern screen_functions_t *get_screen_playlist(void);
extern screen_functions_t *get_screen_browse(void);
extern screen_functions_t *get_screen_help(void);
extern screen_functions_t *get_screen_search(void);
+extern screen_functions_t *get_screen_artist(void);
extern screen_functions_t *get_screen_keydef(void);
extern screen_functions_t *get_screen_clock(void);
@@ -72,6 +75,9 @@ static screen_mode_info_t screens[] = {
{ SCREEN_PLAYLIST_ID, "playlist", get_screen_playlist },
{ SCREEN_BROWSE_ID, "browse", get_screen_browse },
{ SCREEN_HELP_ID, "help", get_screen_help },
+#ifdef ENABLE_ARTIST_SCREEN
+ { SCREEN_ARTIST_ID, "artist", get_screen_artist },
+#endif
#ifdef ENABLE_SEARCH_SCREEN
{ SCREEN_SEARCH_ID, "search", get_screen_search },
#endif
@@ -176,6 +182,12 @@ paint_top_window(char *header, mpdclient_t *c, int clear)
waddstr(w, get_key_names(CMD_SCREEN_FILE, FALSE));
colors_use(w, COLOR_TITLE);
waddstr(w, _(":Browse "));
+#ifdef ENABLE_ARTIST_SCREEN
+ colors_use(w, COLOR_TITLE_BOLD);
+ waddstr(w, get_key_names(CMD_SCREEN_ARTIST, FALSE));
+ colors_use(w, COLOR_TITLE);
+ waddstr(w, _(":Artist "));
+#endif
#ifdef ENABLE_SEARCH_SCREEN
colors_use(w, COLOR_TITLE_BOLD);
waddstr(w, get_key_names(CMD_SCREEN_SEARCH, FALSE));
@@ -888,6 +900,9 @@ screen_cmd(mpdclient_t *c, command_t cmd)
case CMD_SCREEN_SEARCH:
switch_screen_mode(SCREEN_SEARCH_ID, c);
break;
+ case CMD_SCREEN_ARTIST:
+ switch_screen_mode(SCREEN_ARTIST_ID, c);
+ break;
case CMD_SCREEN_KEYDEF:
switch_screen_mode(SCREEN_KEYDEF_ID, c);
break;