diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2010-02-25 11:11:41 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2010-02-25 11:11:41 +0000 |
commit | 15f6bfc0e5b63287353df9186b62598adfed7ce2 (patch) | |
tree | 5471688af4d89d6f19593ed59df85d738e8d90be /apps/plugins/imageviewer/imageviewer.h | |
parent | d95211a23d974d175a8609fa3efc7ca43d403993 (diff) | |
download | rockbox-15f6bfc0e5b63287353df9186b62598adfed7ce2.tar.gz rockbox-15f6bfc0e5b63287353df9186b62598adfed7ce2.zip |
imageviewer: add button to quit plugin immediately if there is enough key for it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24904 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer/imageviewer.h')
-rw-r--r-- | apps/plugins/imageviewer/imageviewer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.h b/apps/plugins/imageviewer/imageviewer.h index 694056ed8a..2f63792726 100644 --- a/apps/plugins/imageviewer/imageviewer.h +++ b/apps/plugins/imageviewer/imageviewer.h | |||
@@ -88,6 +88,7 @@ | |||
88 | #define IMGVIEW_NEXT (BUTTON_SELECT | BUTTON_RIGHT) | 88 | #define IMGVIEW_NEXT (BUTTON_SELECT | BUTTON_RIGHT) |
89 | #define IMGVIEW_PREVIOUS (BUTTON_SELECT | BUTTON_LEFT) | 89 | #define IMGVIEW_PREVIOUS (BUTTON_SELECT | BUTTON_LEFT) |
90 | #define IMGVIEW_MENU (BUTTON_SELECT | BUTTON_MENU) | 90 | #define IMGVIEW_MENU (BUTTON_SELECT | BUTTON_MENU) |
91 | #define IMGVIEW_QUIT (BUTTON_SELECT | BUTTON_PLAY) | ||
91 | 92 | ||
92 | #elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD | 93 | #elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD |
93 | #define IMGVIEW_ZOOM_PRE BUTTON_SELECT | 94 | #define IMGVIEW_ZOOM_PRE BUTTON_SELECT |
@@ -111,6 +112,7 @@ | |||
111 | #define IMGVIEW_NEXT (BUTTON_A | BUTTON_RIGHT) | 112 | #define IMGVIEW_NEXT (BUTTON_A | BUTTON_RIGHT) |
112 | #define IMGVIEW_PREVIOUS (BUTTON_A | BUTTON_LEFT) | 113 | #define IMGVIEW_PREVIOUS (BUTTON_A | BUTTON_LEFT) |
113 | #define IMGVIEW_MENU BUTTON_MENU | 114 | #define IMGVIEW_MENU BUTTON_MENU |
115 | #define IMGVIEW_QUIT BUTTON_POWER | ||
114 | 116 | ||
115 | #elif CONFIG_KEYPAD == SANSA_E200_PAD | 117 | #elif CONFIG_KEYPAD == SANSA_E200_PAD |
116 | #define IMGVIEW_ZOOM_PRE BUTTON_SELECT | 118 | #define IMGVIEW_ZOOM_PRE BUTTON_SELECT |
@@ -211,6 +213,7 @@ | |||
211 | #define IMGVIEW_NEXT BUTTON_NEXT | 213 | #define IMGVIEW_NEXT BUTTON_NEXT |
212 | #define IMGVIEW_PREVIOUS BUTTON_PREV | 214 | #define IMGVIEW_PREVIOUS BUTTON_PREV |
213 | #define IMGVIEW_MENU BUTTON_MENU | 215 | #define IMGVIEW_MENU BUTTON_MENU |
216 | #define IMGVIEW_QUIT BUTTON_BACK | ||
214 | 217 | ||
215 | #elif CONFIG_KEYPAD == MROBE100_PAD | 218 | #elif CONFIG_KEYPAD == MROBE100_PAD |
216 | #define IMGVIEW_ZOOM_IN BUTTON_SELECT | 219 | #define IMGVIEW_ZOOM_IN BUTTON_SELECT |
@@ -222,6 +225,7 @@ | |||
222 | #define IMGVIEW_NEXT (BUTTON_DISPLAY | BUTTON_RIGHT) | 225 | #define IMGVIEW_NEXT (BUTTON_DISPLAY | BUTTON_RIGHT) |
223 | #define IMGVIEW_PREVIOUS (BUTTON_DISPLAY | BUTTON_LEFT) | 226 | #define IMGVIEW_PREVIOUS (BUTTON_DISPLAY | BUTTON_LEFT) |
224 | #define IMGVIEW_MENU BUTTON_MENU | 227 | #define IMGVIEW_MENU BUTTON_MENU |
228 | #define IMGVIEW_QUIT BUTTON_POWER | ||
225 | 229 | ||
226 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD | 230 | #elif CONFIG_KEYPAD == IAUDIO_M3_PAD |
227 | #define IMGVIEW_ZOOM_PRE BUTTON_RC_PLAY | 231 | #define IMGVIEW_ZOOM_PRE BUTTON_RC_PLAY |
@@ -270,6 +274,7 @@ | |||
270 | #define IMGVIEW_NEXT BUTTON_VIEW | 274 | #define IMGVIEW_NEXT BUTTON_VIEW |
271 | #define IMGVIEW_PREVIOUS BUTTON_PLAYLIST | 275 | #define IMGVIEW_PREVIOUS BUTTON_PLAYLIST |
272 | #define IMGVIEW_MENU BUTTON_MENU | 276 | #define IMGVIEW_MENU BUTTON_MENU |
277 | #define IMGVIEW_QUIT BUTTON_POWER | ||
273 | 278 | ||
274 | #elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD | 279 | #elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD |
275 | #define IMGVIEW_ZOOM_IN BUTTON_VOL_UP | 280 | #define IMGVIEW_ZOOM_IN BUTTON_VOL_UP |
@@ -281,6 +286,7 @@ | |||
281 | #define IMGVIEW_NEXT BUTTON_RIGHT | 286 | #define IMGVIEW_NEXT BUTTON_RIGHT |
282 | #define IMGVIEW_PREVIOUS BUTTON_LEFT | 287 | #define IMGVIEW_PREVIOUS BUTTON_LEFT |
283 | #define IMGVIEW_MENU BUTTON_MENU | 288 | #define IMGVIEW_MENU BUTTON_MENU |
289 | #define IMGVIEW_QUIT BUTTON_POWER | ||
284 | 290 | ||
285 | #elif CONFIG_KEYPAD == ONDAVX747_PAD | 291 | #elif CONFIG_KEYPAD == ONDAVX747_PAD |
286 | #elif CONFIG_KEYPAD == ONDAVX777_PAD | 292 | #elif CONFIG_KEYPAD == ONDAVX777_PAD |
@@ -294,7 +300,9 @@ | |||
294 | #define IMGVIEW_RIGHT BUTTON_RIGHT | 300 | #define IMGVIEW_RIGHT BUTTON_RIGHT |
295 | #define IMGVIEW_NEXT BUTTON_FFWD | 301 | #define IMGVIEW_NEXT BUTTON_FFWD |
296 | #define IMGVIEW_PREVIOUS BUTTON_REW | 302 | #define IMGVIEW_PREVIOUS BUTTON_REW |
297 | #define IMGVIEW_MENU BUTTON_PLAY | 303 | #define IMGVIEW_MENU_PRE BUTTON_PLAY |
304 | #define IMGVIEW_MENU (BUTTON_PLAY|BUTTON_REL) | ||
305 | #define IMGVIEW_QUIT BUTTON_REC | ||
298 | 306 | ||
299 | #elif CONFIG_KEYPAD == PBELL_VIBE500_PAD | 307 | #elif CONFIG_KEYPAD == PBELL_VIBE500_PAD |
300 | #define IMGVIEW_ZOOM_IN (BUTTON_REC | BUTTON_UP) | 308 | #define IMGVIEW_ZOOM_IN (BUTTON_REC | BUTTON_UP) |