This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9224 - Calendar button map for Gigabeat F and other targets
Attached to Project:
Rockbox
Opened by Teruaki Kawashima (teru) - Tuesday, 29 July 2008, 17:21 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 25 October 2008, 18:35 GMT+2
Opened by Teruaki Kawashima (teru) - Tuesday, 29 July 2008, 17:21 GMT+2
Last edited by Nils Wallménius (nls) - Saturday, 25 October 2008, 18:35 GMT+2
|
DetailsThis patch will make calendar plugin available for the targets with RTC.
1. I added button maps just like other plugins and fixed some codes. 2. use rb->memset to initialize struct variables. 3. draw lines if the LCD is large enough. 4. use List Widget to show memos and menu API for edit menu. I tested this on my Gigabeat F21 and on the sim. Sorry for my bad English. |
This task depends upon
Closed by Nils Wallménius (nls)
Saturday, 25 October 2008, 18:35 GMT+2
Reason for closing: Accepted
Additional comments about closing: I committed the last patch with two small tweaks, thanks!
Saturday, 25 October 2008, 18:35 GMT+2
Reason for closing: Accepted
Additional comments about closing: I committed the last patch with two small tweaks, thanks!
Thanks.
The patch needs to be synced to svn though.
edit: using DRMODE_COMPLEMENT and fillrect works well on monochrome displays but
it is not so nice on color displays since it fills the rectangle with the complement
color which is often not the same as the background color.
this patch does following things;
1.add button maps.
2.use List Widget to show memos.
3.use menu API for edit menu.
button maps needs to be tested.
Nils: then, what value should be set?
i don't understand well how the setting affects.
DRMODE_SOLID|DRMODE_INVERSEVID for the selected item this will draw the
text with background and foreground colors reversed but will not extend beyond
the text drawn so to get the visual effect i think you should fill a rectangle
with the background color first and then draw the text with DRMODE_SOLID|DRMODE_INVERSEVID set.
I forgot to mention that the effect is only visible when not using black and white as
fg/bg since they are each other's inverse it is pretty visible if you use different colors though.
The patch works fine for me but i want to suggest a few changes to the menu.
1) The "New" item is confusing I understand that it's meant as a sort of subtitle but
this doesn't work so well with rockbox' lists imho. I would suggest to either remove the "New" item
and call the others "New Daily" etc, or make "New" open a submenu that contains the different types of memos.
2) The "Return" menu item should be removed so that this works consistently with other lists in rockbox, which
you exit by pressing left (or equivalent button).
Button maps look good to me, if something should be changed people will complain after it's committed ;)
edit: forgot to mention, the "set time and date" screen is in screens.c and around line 570 the drawing is done.
Thank you for your suggestions.