diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-11-19 14:11:42 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-11-19 14:11:42 +0000 |
commit | 6288523cfee31a474435ce3445e67733f532d916 (patch) | |
tree | 1fe3350c1d27a0144492d64792cea78f6a833c73 /apps/recorder | |
parent | 687328b7773ae917574841fa63326aa2bec264d6 (diff) | |
download | rockbox-6288523cfee31a474435ce3445e67733f532d916.tar.gz rockbox-6288523cfee31a474435ce3445e67733f532d916.zip |
* Move checkbox to plugin api (core never uses it)
* replace the last of the scrollbar() calls with gui_scrollbar_draw()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11552 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/widgets.c | 54 | ||||
-rw-r--r-- | apps/recorder/widgets.h | 33 |
2 files changed, 0 insertions, 87 deletions
diff --git a/apps/recorder/widgets.c b/apps/recorder/widgets.c deleted file mode 100644 index f06ac4402f..0000000000 --- a/apps/recorder/widgets.c +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Markus Braun | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #include <lcd.h> | ||
20 | #include <limits.h> | ||
21 | #include "scrollbar.h" | ||
22 | |||
23 | #ifdef HAVE_LCD_BITMAP | ||
24 | |||
25 | /* | ||
26 | * Print a scroll bar | ||
27 | */ | ||
28 | void scrollbar(int x, int y, int width, int height, int items, int min_shown, | ||
29 | int max_shown, int orientation) | ||
30 | { | ||
31 | gui_scrollbar_draw(&screens[SCREEN_MAIN],x,y,width,height, | ||
32 | items,min_shown, max_shown, orientation); | ||
33 | } | ||
34 | |||
35 | /* | ||
36 | * Print a checkbox | ||
37 | */ | ||
38 | void checkbox(int x, int y, int width, int height, bool checked) | ||
39 | { | ||
40 | /* draw box */ | ||
41 | lcd_drawrect(x, y, width, height); | ||
42 | |||
43 | /* clear inner area */ | ||
44 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | ||
45 | lcd_fillrect(x + 1, y + 1, width - 2, height - 2); | ||
46 | lcd_set_drawmode(DRMODE_SOLID); | ||
47 | |||
48 | if (checked){ | ||
49 | lcd_drawline(x + 2, y + 2, x + width - 2 - 1 , y + height - 2 - 1); | ||
50 | lcd_drawline(x + 2, y + height - 2 - 1, x + width - 2 - 1, y + 2); | ||
51 | } | ||
52 | } | ||
53 | |||
54 | #endif | ||
diff --git a/apps/recorder/widgets.h b/apps/recorder/widgets.h deleted file mode 100644 index 0a028144e8..0000000000 --- a/apps/recorder/widgets.h +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Markus Braun | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #ifndef __WIDGETS_H__ | ||
20 | #define __WIDGETS_H__ | ||
21 | #include <lcd.h> | ||
22 | |||
23 | #ifdef HAVE_LCD_BITMAP | ||
24 | /* Orientation for scrollbar */ | ||
25 | enum { | ||
26 | VERTICAL = 0, | ||
27 | HORIZONTAL | ||
28 | }; | ||
29 | |||
30 | extern void scrollbar(int x, int y, int width, int height, int items, int min_shown, int max_shown, int orientation); | ||
31 | extern void checkbox(int x, int y, int width, int height, bool checked); | ||
32 | #endif /* HAVE_LCD_BITMAP */ | ||
33 | #endif /* __WIDGETS_H__ */ | ||