summaryrefslogtreecommitdiff
path: root/apps/gui/wps.c
diff options
context:
space:
mode:
authorOsborne Jacobs <ozziejacks@gmail.com>2012-03-03 00:15:31 -0500
committerJonathan Gordon <rockbox@jdgordon.info>2012-03-13 03:17:12 +0100
commit595427c095df06ad0560dfbaa96710034a51d9c8 (patch)
treedbaaa2a0bd37400896a02823cb5b8ed21007140a /apps/gui/wps.c
parent47e30b8cdccb0849ee2d7c4c74769fc2d1fa8919 (diff)
downloadrockbox-595427c095df06ad0560dfbaa96710034a51d9c8.tar.gz
rockbox-595427c095df06ad0560dfbaa96710034a51d9c8.zip
Add new actions to %Tp (Touchscreen areas)
Add the following actions to %Tp: createbookmark create a new bookmark from the wps listbookmarks list bookmarks from the wps trackinfo show track info from the wps My main motivation was to allow bookmarking and jumping around audio books from the wps on touch enabled targets. You can do it now through the context menu but it requires 4 screen presses instead of 1. Change-Id: I1fa1bf0064dfd22b897eca7c56acc1ce8956f14c Reviewed-on: http://gerrit.rockbox.org/171 Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Diffstat (limited to 'apps/gui/wps.c')
-rw-r--r--apps/gui/wps.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c
index 1e48e80202..313ac2cd76 100644
--- a/apps/gui/wps.c
+++ b/apps/gui/wps.c
@@ -1042,6 +1042,21 @@ long gui_wps_show(void)
1042 exit = true; 1042 exit = true;
1043 break; 1043 break;
1044 1044
1045 case ACTION_WPS_LIST_BOOKMARKS:
1046 gwps_leave_wps();
1047 if (bookmark_load_menu() == BOOKMARK_USB_CONNECTED)
1048 {
1049 return GO_TO_ROOT;
1050 }
1051 restore = true;
1052 break;
1053
1054 case ACTION_WPS_CREATE_BOOKMARK:
1055 gwps_leave_wps();
1056 bookmark_create_menu();
1057 restore = true;
1058 break;
1059
1045 case ACTION_WPS_ID3SCREEN: 1060 case ACTION_WPS_ID3SCREEN:
1046 { 1061 {
1047 gwps_leave_wps(); 1062 gwps_leave_wps();