summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-11-04 13:17:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-11-04 13:17:29 +0000
commit1e781eab6c7177df33e016d01dbd78ae25b36e2f (patch)
tree9a230531ebb5e79f09d8ab82909f30b060c6fb13 /apps/recorder
parent6afd0a7a083fa470c62cc2189f30ae4c63c534f7 (diff)
downloadrockbox-1e781eab6c7177df33e016d01dbd78ae25b36e2f.tar.gz
rockbox-1e781eab6c7177df33e016d01dbd78ae25b36e2f.zip
Generic F-key buttonbar functionality
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4013 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/keyboard.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c
index 9edf24694d..95b2cb3386 100644
--- a/apps/recorder/keyboard.c
+++ b/apps/recorder/keyboard.c
@@ -55,7 +55,7 @@ static void kbd_setupkeys(char* line[KEYBOARD_LINES], int page)
55 break; 55 break;
56 } 56 }
57} 57}
58 58#if 0
59static void kbd_draw_statusbar_button(int num, char* caption, int y, int fw) 59static void kbd_draw_statusbar_button(int num, char* caption, int y, int fw)
60{ 60{
61 int x, x2, tw, cx; 61 int x, x2, tw, cx;
@@ -67,7 +67,7 @@ static void kbd_draw_statusbar_button(int num, char* caption, int y, int fw)
67 lcd_putsxy((x + (cx/2)) - (tw/2), y, caption); 67 lcd_putsxy((x + (cx/2)) - (tw/2), y, caption);
68 lcd_invertrect(x, y - 1, (x2-x)-1, LCD_HEIGHT-y+1); 68 lcd_invertrect(x, y - 1, (x2-x)-1, LCD_HEIGHT-y+1);
69} 69}
70 70#endif
71int kbd_input(char* text, int buflen) 71int kbd_input(char* text, int buflen)
72{ 72{
73 bool done = false; 73 bool done = false;
@@ -168,10 +168,9 @@ int kbd_input(char* text, int buflen)
168 lcd_drawline(curpos, main_y, curpos, main_y + font_h); 168 lcd_drawline(curpos, main_y, curpos, main_y + font_h);
169 169
170 /* draw the status bar */ 170 /* draw the status bar */
171 kbd_draw_statusbar_button(0, "Shift", status_y1, font_w); 171 set_buttonbar("Shift", "OK", "Del");
172 kbd_draw_statusbar_button(1, "OK", status_y1, font_w); 172 draw_buttonbar();
173 kbd_draw_statusbar_button(2, "Del", status_y1, font_w); 173
174
175 /* highlight the key that has focus */ 174 /* highlight the key that has focus */
176 lcd_invertrect(font_w * x, font_h * y, font_w, font_h); 175 lcd_invertrect(font_w * x, font_h * y, font_w, font_h);
177 lcd_update(); 176 lcd_update();