39
39
PianoSong_t *, BarUiDispatchContext_t);
42
43
BarUiDispatchContext_t context;
43
44
BarKeyShortcutFunc_t function;
45
const char * const helpText;
46
const char * const configKey;
47
47
} BarUiDispatchAction_t;
49
49
#include "ui_act.h"
51
51
/* see settings.h */
52
52
static const BarUiDispatchAction_t dispatchActions[BAR_KS_COUNT] = {
53
{BAR_DC_UNDEFINED, BarUiActHelp, NULL, '?', "act_help"},
54
{BAR_DC_SONG, BarUiActLoveSong, "love song", '+',
53
{'?', BAR_DC_UNDEFINED, BarUiActHelp, NULL, "act_help"},
54
{'+', BAR_DC_SONG, BarUiActLoveSong, "love song",
56
{BAR_DC_SONG, BarUiActBanSong, "ban song", '-', "act_songban"},
57
{BAR_DC_STATION, BarUiActAddMusic, "add music to station", 'a',
56
{'-', BAR_DC_SONG, BarUiActBanSong, "ban song", "act_songban"},
57
{'a', BAR_DC_STATION, BarUiActAddMusic, "add music to station",
58
58
"act_stationaddmusic"},
59
{BAR_DC_GLOBAL, BarUiActCreateStation, "create new station", 'c',
59
{'c', BAR_DC_GLOBAL, BarUiActCreateStation, "create new station",
60
60
"act_stationcreate"},
61
{BAR_DC_STATION, BarUiActDeleteStation, "delete station", 'd',
61
{'d', BAR_DC_STATION, BarUiActDeleteStation, "delete station",
62
62
"act_stationdelete"},
63
{BAR_DC_SONG, BarUiActExplain, "explain why this song is played", 'e',
63
{'e', BAR_DC_SONG, BarUiActExplain, "explain why this song is played",
64
64
"act_songexplain"},
65
{BAR_DC_GLOBAL, BarUiActStationFromGenre, "add genre station", 'g',
65
{'g', BAR_DC_GLOBAL, BarUiActStationFromGenre, "add genre station",
66
66
"act_stationaddbygenre"},
67
{BAR_DC_GLOBAL, BarUiActHistory, "song history", 'h', "act_history"},
68
{BAR_DC_GLOBAL | BAR_DC_STATION | BAR_DC_SONG, BarUiActSongInfo,
69
"print information about song/station", 'i',
71
{BAR_DC_GLOBAL, BarUiActAddSharedStation, "add shared station", 'j',
67
{'h', BAR_DC_GLOBAL, BarUiActHistory, "song history", "act_history"},
68
{'i', BAR_DC_GLOBAL | BAR_DC_STATION | BAR_DC_SONG, BarUiActSongInfo,
69
"print information about song/station", "act_songinfo"},
70
{'j', BAR_DC_GLOBAL, BarUiActAddSharedStation, "add shared station",
73
{BAR_DC_SONG, BarUiActMoveSong, "move song to different station", 'm',
72
{'m', BAR_DC_SONG, BarUiActMoveSong, "move song to different station",
75
{BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActSkipSong, "next song", 'n', "act_songnext"},
76
{BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, "pause/continue", 'p', "act_songpause"},
77
{BAR_DC_GLOBAL, BarUiActQuit, "quit", 'q', "act_quit"},
78
{BAR_DC_STATION, BarUiActRenameStation, "rename station", 'r',
74
{'n', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActSkipSong, "next song",
76
{'p', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, "pause/continue",
78
{'q', BAR_DC_GLOBAL, BarUiActQuit, "quit", "act_quit"},
79
{'r', BAR_DC_STATION, BarUiActRenameStation, "rename station",
79
80
"act_stationrename"},
80
{BAR_DC_GLOBAL, BarUiActSelectStation, "change station", 's',
81
{'s', BAR_DC_GLOBAL, BarUiActSelectStation, "change station",
81
82
"act_stationchange"},
82
{BAR_DC_SONG, BarUiActTempBanSong, "tired (ban song for 1 month)", 't',
83
{'t', BAR_DC_SONG, BarUiActTempBanSong, "tired (ban song for 1 month)",
84
{BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPrintUpcoming, "upcoming songs", 'u',
86
{BAR_DC_STATION, BarUiActSelectQuickMix, "select quickmix stations",
87
'x', "act_stationselectquickmix"},
88
{BAR_DC_GLOBAL, BarUiActDebug, NULL, '$', "act_debug"},
89
{BAR_DC_SONG, BarUiActBookmark, "bookmark song/artist", 'b',
85
{'u', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPrintUpcoming,
86
"upcoming songs", "act_upcoming"},
87
{'x', BAR_DC_STATION, BarUiActSelectQuickMix, "select quickmix stations",
88
"act_stationselectquickmix"},
89
{'$', BAR_DC_GLOBAL, BarUiActDebug, NULL, "act_debug"},
90
{'b', BAR_DC_SONG, BarUiActBookmark, "bookmark song/artist",
91
{BAR_DC_GLOBAL, BarUiActVolDown, "decrease volume", '(',
92
{'(', BAR_DC_GLOBAL, BarUiActVolDown, "decrease volume",
93
{BAR_DC_GLOBAL, BarUiActVolUp, "increase volume", ')',
94
{')', BAR_DC_GLOBAL, BarUiActVolUp, "increase volume",
95
{BAR_DC_STATION, BarUiActManageStation, "delete seeds/feedback", '=',
96
{'=', BAR_DC_STATION, BarUiActManageStation, "delete seeds/feedback",
96
97
"act_managestation"},