diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2009-08-27 14:24:58 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2009-08-27 14:24:58 +0000 |
commit | 443f609be62b812878c7c9a832d8014ab56bbf6f (patch) | |
tree | a6fcc58959babc1b94881c6e2a2235f0f7679207 /apps/plugins/mpegplayer/mpeg_settings.h | |
parent | ed940e883079a323b0764532a7444ad022685ae4 (diff) | |
download | rockbox-443f609be62b812878c7c9a832d8014ab56bbf6f.tar.gz rockbox-443f609be62b812878c7c9a832d8014ab56bbf6f.zip |
Rearange menu of mpegplayer. Add new menu with "settings" and "quit", and remove quit item from settings menu.
The setting menu was bit wierd as it had "quit" item at it's buttom.
Also, there are 2 almost same menu definitions in mpeg_menu and it doesn't looks good, imo.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22518 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_settings.h')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.h b/apps/plugins/mpegplayer/mpeg_settings.h index fa50176161..95ecc29546 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.h +++ b/apps/plugins/mpegplayer/mpeg_settings.h | |||
@@ -56,12 +56,18 @@ enum mpeg_start_id | |||
56 | MPEG_START_EXIT, | 56 | MPEG_START_EXIT, |
57 | }; | 57 | }; |
58 | 58 | ||
59 | enum mpeg_setting_id | ||
60 | { | ||
61 | MPEG_SETTING_DISPLAY_SETTINGS, | ||
62 | MPEG_SETTING_AUDIO_SETTINGS, | ||
63 | MPEG_SETTING_ENABLE_START_MENU, | ||
64 | MPEG_SETTING_CLEAR_RESUMES, | ||
65 | }; | ||
66 | |||
59 | enum mpeg_menu_id | 67 | enum mpeg_menu_id |
60 | { | 68 | { |
61 | MPEG_MENU_DISPLAY_SETTINGS, | 69 | MPEG_MENU_SETTINGS, |
62 | MPEG_MENU_AUDIO_SETTINGS, | 70 | MPEG_MENU_RESUME, |
63 | MPEG_MENU_ENABLE_START_MENU, | ||
64 | MPEG_MENU_CLEAR_RESUMES, | ||
65 | MPEG_MENU_QUIT, | 71 | MPEG_MENU_QUIT, |
66 | }; | 72 | }; |
67 | 73 | ||
@@ -91,13 +97,8 @@ struct mpeg_settings { | |||
91 | extern struct mpeg_settings settings; | 97 | extern struct mpeg_settings settings; |
92 | 98 | ||
93 | int mpeg_start_menu(uint32_t duration); | 99 | int mpeg_start_menu(uint32_t duration); |
100 | int mpeg_menu(void); | ||
94 | 101 | ||
95 | enum | ||
96 | { | ||
97 | MPEG_MENU_HIDE_QUIT_ITEM = 0x1, /* Don't show the quit item */ | ||
98 | }; | ||
99 | |||
100 | int mpeg_menu(unsigned flags); | ||
101 | void mpeg_menu_sysevent_clear(void); | 102 | void mpeg_menu_sysevent_clear(void); |
102 | long mpeg_menu_sysevent(void); | 103 | long mpeg_menu_sysevent(void); |
103 | int mpeg_menu_sysevent_callback(int btn, const struct menu_item_ex *menu); | 104 | int mpeg_menu_sysevent_callback(int btn, const struct menu_item_ex *menu); |