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) |
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 MPEG_START_EXIT, }; +enum mpeg_setting_id +{ + MPEG_SETTING_DISPLAY_SETTINGS, + MPEG_SETTING_AUDIO_SETTINGS, + MPEG_SETTING_ENABLE_START_MENU, + MPEG_SETTING_CLEAR_RESUMES, +}; + enum mpeg_menu_id { - MPEG_MENU_DISPLAY_SETTINGS, - MPEG_MENU_AUDIO_SETTINGS, - MPEG_MENU_ENABLE_START_MENU, - MPEG_MENU_CLEAR_RESUMES, + MPEG_MENU_SETTINGS, + MPEG_MENU_RESUME, MPEG_MENU_QUIT, }; @@ -91,13 +97,8 @@ struct mpeg_settings { extern struct mpeg_settings settings; int mpeg_start_menu(uint32_t duration); +int mpeg_menu(void); -enum -{ - MPEG_MENU_HIDE_QUIT_ITEM = 0x1, /* Don't show the quit item */ -}; - -int mpeg_menu(unsigned flags); void mpeg_menu_sysevent_clear(void); long mpeg_menu_sysevent(void); int mpeg_menu_sysevent_callback(int btn, const struct menu_item_ex *menu); |