From 01812fd806c3f3a5f727071a4a37946276ca5990 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 9 Nov 2012 21:43:52 +0100 Subject: added more action stubs --- plugins/gtkui/gtkui.c | 50 +++++++++++++++++++++++++++++++- plugins/hotkeys/hotkeys.c | 72 +++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 109 insertions(+), 13 deletions(-) diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 97718ed7..4324a277 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -1396,12 +1396,60 @@ gtkui_get_mainwin (void) { return mainwin; } +static DB_plugin_action_t action_show_help = { + .title = "Help/[stub] Show help page", + .name = "help", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = NULL +}; + +static DB_plugin_action_t action_scroll_follows_playback = { + .title = "Playback/[stub] Scroll follows playback toggle", + .name = "toggle_scroll_follows_playback", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_show_help +}; + +static DB_plugin_action_t action_toggle_menu = { + .title = "View/[stub] Show\\/Hide menu", + .name = "toggle_menu", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_scroll_follows_playback +}; + +static DB_plugin_action_t action_toggle_column_headers = { + .title = "View/[stub] Show\\/Hide playlist column headers", + .name = "toggle_headers", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_toggle_menu +}; + +static DB_plugin_action_t action_toggle_statusbar = { + .title = "View/[stub] Show\\/Hide statusbar", + .name = "toggle_statusbar", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_toggle_column_headers +}; + +static DB_plugin_action_t action_toggle_designmode = { + .title = "Edit/[stub] Toggle design mode", + .name = "toggle_design_mode", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_toggle_statusbar +}; + static DB_plugin_action_t action_preferences = { .title = "Edit/[stub] Preferences", .name = "preferences", .flags = DB_ACTION_COMMON, .callback = NULL, - .next = NULL + .next = &action_toggle_designmode }; static DB_plugin_action_t action_sort_custom = { diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c index 8a5fb34c..812dd356 100644 --- a/plugins/hotkeys/hotkeys.c +++ b/plugins/hotkeys/hotkeys.c @@ -609,28 +609,76 @@ action_toggle_stop_after_current_cb (struct DB_plugin_action_s *action, int ctx) return 0; } -static DB_plugin_action_t action_toggle_menu = { - .title = "View/[stub] Show\\/Hide menu", - .name = "toggle_menu", +static DB_plugin_action_t action_jump_to_current = { + .title = "Playback/[stub] Jump to currently playing track", + .name = "jump_to_current_track", .flags = DB_ACTION_COMMON, .callback = NULL, .next = NULL }; -static DB_plugin_action_t action_toggle_column_headers = { - .title = "View/[stub] Show\\/Hide playlist column headers", - .name = "toggle_headers", +static DB_plugin_action_t action_toggle_cursor_follows_playback = { + .title = "Playback/[stub] Cursor follows playback toggle", + .name = "toggle_cursor_follows_playback", .flags = DB_ACTION_COMMON, .callback = NULL, - .next = &action_toggle_menu + .next = &action_jump_to_current }; -static DB_plugin_action_t action_toggle_statusbar = { - .title = "View/[stub] Show\\/Hide statusbar", - .name = "toggle_statusbar", +static DB_plugin_action_t action_playback_loop_off = { + .title = "Playback/[stub] Playback looping - Don't loop", + .name = "loop_off", .flags = DB_ACTION_COMMON, .callback = NULL, - .next = &action_toggle_column_headers + .next = &action_toggle_cursor_follows_playback +}; + +static DB_plugin_action_t action_playback_loop_single = { + .title = "Playback/[stub] Playback looping - Single track", + .name = "loop_track", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_playback_loop_off +}; + +static DB_plugin_action_t action_playback_loop_all = { + .title = "Playback/[stub] Playback looping - All", + .name = "loop_all", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_playback_loop_single +}; + +static DB_plugin_action_t action_playback_order_random = { + .title = "Playback/[stub] Playback order - Random", + .name = "order_random", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_playback_loop_all +}; + +static DB_plugin_action_t action_playback_order_shuffle_albums = { + .title = "Playback/[stub] Playback order - Shuffle albums", + .name = "order_shuffle_albums", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_playback_order_random +}; + +static DB_plugin_action_t action_playback_order_shuffle = { + .title = "Playback/[stub] Playback order - Shuffle tracks", + .name = "order_shuffle", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_playback_order_shuffle_albums +}; + +static DB_plugin_action_t action_playback_order_linear = { + .title = "Playback/[stub] Playback order - Linear", + .name = "order_linear", + .flags = DB_ACTION_COMMON, + .callback = NULL, + .next = &action_playback_order_shuffle }; static DB_plugin_action_t action_next_playlist = { @@ -638,7 +686,7 @@ static DB_plugin_action_t action_next_playlist = { .name = "sort_next_playlist", .flags = DB_ACTION_COMMON, .callback = NULL, - .next = &action_toggle_statusbar + .next = &action_playback_order_linear }; static DB_plugin_action_t action_prev_playlist = { -- cgit v1.2.3