~ubuntu-branches/ubuntu/wily/pianobar/wily-proposed

« back to all changes in this revision

Viewing changes to src/ui_dispatch.h

  • Committer: Package Import Robot
  • Author(s): Luke Faraone
  • Date: 2012-03-10 04:55:05 UTC
  • mfrom: (1.3.8)
  • Revision ID: package-import@ubuntu.com-20120310045505-cz2aqq552pbjp8o5
Tags: 2012.01.10-1
* New upstream version. (closes: #655744)
* Update debian/watch to point to new download URL.
* Review and update debian/copyright.
* Compy with standards version 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                PianoSong_t *, BarUiDispatchContext_t);
40
40
 
41
41
typedef struct {
 
42
        char defaultKey;
42
43
        BarUiDispatchContext_t context;
43
44
        BarKeyShortcutFunc_t function;
44
 
        char *helpText;
45
 
        char defaultKey;
46
 
        char *configKey;
 
45
        const char * const helpText;
 
46
        const char * const configKey;
47
47
} BarUiDispatchAction_t;
48
48
 
49
49
#include "ui_act.h"
50
50
 
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",
55
55
                                "act_songlove"},
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',
70
 
                                "act_songinfo"},
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",
72
71
                                "act_addshared"},
73
 
                {BAR_DC_SONG, BarUiActMoveSong, "move song to different station", 'm',
 
72
                {'m', BAR_DC_SONG, BarUiActMoveSong, "move song to different station",
74
73
                                "act_songmove"},
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",
 
75
                                "act_songnext"},
 
76
                {'p', BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPause, "pause/continue",
 
77
                                "act_songpause"},
 
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)",
83
84
                                "act_songtired"},
84
 
                {BAR_DC_GLOBAL | BAR_DC_STATION, BarUiActPrintUpcoming, "upcoming songs", 'u',
85
 
                                "act_upcoming"},
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",
90
91
                                "act_bookmark"},
91
 
                {BAR_DC_GLOBAL, BarUiActVolDown, "decrease volume", '(',
 
92
                {'(', BAR_DC_GLOBAL, BarUiActVolDown, "decrease volume",
92
93
                                "act_voldown"},
93
 
                {BAR_DC_GLOBAL, BarUiActVolUp, "increase volume", ')',
 
94
                {')', BAR_DC_GLOBAL, BarUiActVolUp, "increase volume",
94
95
                                "act_volup"},
95
 
                {BAR_DC_STATION, BarUiActManageStation, "delete seeds/feedback", '=',
 
96
                {'=', BAR_DC_STATION, BarUiActManageStation, "delete seeds/feedback",
96
97
                                "act_managestation"},
97
98
                };
98
99