diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_action.h')
-rw-r--r-- | apps/plugins/text_viewer/tv_action.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/plugins/text_viewer/tv_action.h b/apps/plugins/text_viewer/tv_action.h index b01079cbd1..f774f07422 100644 --- a/apps/plugins/text_viewer/tv_action.h +++ b/apps/plugins/text_viewer/tv_action.h | |||
@@ -26,17 +26,17 @@ | |||
26 | #include "tv_menu.h" | 26 | #include "tv_menu.h" |
27 | 27 | ||
28 | /* horizontal scroll mode */ | 28 | /* horizontal scroll mode */ |
29 | enum tv_horizontal_scroll_mode | 29 | enum |
30 | { | 30 | { |
31 | TV_HORIZONTAL_SCROLL_COLUMN, /* left/right one column */ | 31 | TV_HORIZONTAL_SCROLL_COLUMN = 0, /* left/right one column */ |
32 | TV_HORIZONTAL_SCROLL_SCREEN, /* left/right one screen */ | 32 | TV_HORIZONTAL_SCROLL_SCREEN, /* left/right one screen */ |
33 | TV_HORIZONTAL_SCROLL_PREFS, /* left/right follows the settings */ | 33 | TV_HORIZONTAL_SCROLL_PREFS, /* left/right follows the settings */ |
34 | }; | 34 | }; |
35 | 35 | ||
36 | /*vertical scroll mode */ | 36 | /*vertical scroll mode */ |
37 | enum tv_vertical_scroll_mode | 37 | enum |
38 | { | 38 | { |
39 | TV_VERTICAL_SCROLL_LINE, /* up/down one line */ | 39 | TV_VERTICAL_SCROLL_LINE = 0, /* up/down one line */ |
40 | TV_VERTICAL_SCROLL_PAGE, /* up/down one page */ | 40 | TV_VERTICAL_SCROLL_PAGE, /* up/down one page */ |
41 | TV_VERTICAL_SCROLL_PREFS, /* up/down follows the settings */ | 41 | TV_VERTICAL_SCROLL_PREFS, /* up/down follows the settings */ |
42 | }; | 42 | }; |
@@ -70,7 +70,7 @@ void tv_draw(void); | |||
70 | * [In] mode | 70 | * [In] mode |
71 | * scroll mode | 71 | * scroll mode |
72 | */ | 72 | */ |
73 | void tv_scroll_up(enum tv_vertical_scroll_mode mode); | 73 | void tv_scroll_up(unsigned mode); |
74 | 74 | ||
75 | /* | 75 | /* |
76 | * scroll down | 76 | * scroll down |
@@ -78,7 +78,7 @@ void tv_scroll_up(enum tv_vertical_scroll_mode mode); | |||
78 | * [In] mode | 78 | * [In] mode |
79 | * scroll mode | 79 | * scroll mode |
80 | */ | 80 | */ |
81 | void tv_scroll_down(enum tv_vertical_scroll_mode mode); | 81 | void tv_scroll_down(unsigned mode); |
82 | 82 | ||
83 | /* | 83 | /* |
84 | * scroll left | 84 | * scroll left |
@@ -86,7 +86,7 @@ void tv_scroll_down(enum tv_vertical_scroll_mode mode); | |||
86 | * [In] mode | 86 | * [In] mode |
87 | * scroll mode | 87 | * scroll mode |
88 | */ | 88 | */ |
89 | void tv_scroll_left(enum tv_horizontal_scroll_mode mode); | 89 | void tv_scroll_left(unsigned mode); |
90 | 90 | ||
91 | /* | 91 | /* |
92 | * scroll right | 92 | * scroll right |
@@ -94,7 +94,7 @@ void tv_scroll_left(enum tv_horizontal_scroll_mode mode); | |||
94 | * [In] mode | 94 | * [In] mode |
95 | * scroll mode | 95 | * scroll mode |
96 | */ | 96 | */ |
97 | void tv_scroll_right(enum tv_horizontal_scroll_mode mode); | 97 | void tv_scroll_right(unsigned mode); |
98 | 98 | ||
99 | /* jump to the top */ | 99 | /* jump to the top */ |
100 | void tv_top(void); | 100 | void tv_top(void); |
@@ -111,7 +111,7 @@ void tv_bottom(void); | |||
111 | * TV_MENU_RESULT_EXIT_PLUGIN request to exit this plugin | 111 | * TV_MENU_RESULT_EXIT_PLUGIN request to exit this plugin |
112 | * TV_MENU_RESULT_ATTACHED_USB connect USB cable | 112 | * TV_MENU_RESULT_ATTACHED_USB connect USB cable |
113 | */ | 113 | */ |
114 | enum tv_menu_result tv_menu(void); | 114 | unsigned tv_menu(void); |
115 | 115 | ||
116 | /* add or remove the bookmark to the current position */ | 116 | /* add or remove the bookmark to the current position */ |
117 | void tv_add_or_remove_bookmark(void); | 117 | void tv_add_or_remove_bookmark(void); |