Patch #5056 by Jonathan Gordon, with rework and additions by me: Updated Viewer plugin. Replaces annoying mode-toggle key-combos with a settings menu, including a new 'Scroll by Line' option. I've also added a 'hands-free' auto-scroll feature and added lcd_setmargins to the plugin API, since we need it here.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9844 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Zakk Roberts 2006-05-01 05:45:18 +00:00
parent 0d6b5557a1
commit 07fcf77cb0
3 changed files with 354 additions and 394 deletions

View file

@ -202,7 +202,7 @@ static const struct plugin_api rockbox_api = {
settings_parseline, settings_parseline,
#ifndef SIMULATOR #ifndef SIMULATOR
ata_sleep, ata_sleep,
ata_disk_is_active, ata_disk_is_active,
#endif #endif
/* dir */ /* dir */
@ -357,7 +357,7 @@ static const struct plugin_api rockbox_api = {
battery_level_safe, battery_level_safe,
battery_time, battery_time,
#ifndef SIMULATOR #ifndef SIMULATOR
battery_voltage, battery_voltage,
#endif #endif
#ifdef HAVE_CHARGING #ifdef HAVE_CHARGING
charger_inserted, charger_inserted,
@ -434,6 +434,10 @@ static const struct plugin_api rockbox_api = {
gui_synclist_scroll_left, gui_synclist_scroll_left,
#endif #endif
gui_synclist_do_button, gui_synclist_do_button,
#ifdef HAVE_LCD_BITMAP
lcd_setmargins,
#endif
}; };
int plugin_load(const char* plugin, void* parameter) int plugin_load(const char* plugin, void* parameter)

View file

@ -510,6 +510,10 @@ struct plugin_api {
void (*gui_synclist_scroll_left)(struct gui_synclist * lists); void (*gui_synclist_scroll_left)(struct gui_synclist * lists);
#endif #endif
unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button); unsigned (*gui_synclist_do_button)(struct gui_synclist * lists, unsigned button);
#ifdef HAVE_LCD_BITMAP
void (*lcd_setmargins)(int x, int y);
#endif
}; };
/* plugin header */ /* plugin header */

File diff suppressed because it is too large Load diff