summaryrefslogtreecommitdiff
path: root/apps/gui
AgeCommit message (Collapse)Author
2008-03-25Oops. Mop up red.Steve Bavin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16799 a1c6a512-1295-4272-9138-f99709370657
2008-03-25Code police raid on the settings code, consting and putting headers ↵Steve Bavin
alongside their implementation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16798 a1c6a512-1295-4272-9138-f99709370657
2008-03-25D'oh - fix a silly #ifdef mistake that caused problems with remote WPSs ↵Dave Chapman
using viewports. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16787 a1c6a512-1295-4272-9138-f99709370657
2008-03-24Stricter syntax checking of the %V tag - pay attention to the return-code ↵Dave Chapman
from parse_list, and check for the tailing | symbol. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16784 a1c6a512-1295-4272-9138-f99709370657
2008-03-24Hopefully get the viewport position/dimensions validation correct this time.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16782 a1c6a512-1295-4272-9138-f99709370657
2008-03-24Add another safety-check in the bitmap strips parsing - don't allow the ↵Dave Chapman
num_subimages parameter to %xl to be <= 0 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16779 a1c6a512-1295-4272-9138-f99709370657
2008-03-24Add a sanity-check to ensure only in-range subimages are referenced in %xd ↵Dave Chapman
tags. Plus some tab policing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16774 a1c6a512-1295-4272-9138-f99709370657
2008-03-23Add the ability to use bitmap strips (a single .bmp file containing many ↵Dave Chapman
images of the same dimensions, tiled vertically - similar to icon strips) in the WPS. The %xl tag now has an optional "number of subimages" parameter, and the %xd tag has an optional "subimage to display" parameter (a-z,A-Z - allowing up to 52 sub-images). So for example, a bitmap with 10 subimages is loaded with %xl|M|volume.bmp|134|153|10| and then this can be used in a conditional as %?pv<%xdMa|%xdMb|%xdMc|%xdMd|%xdMe|%xdMf|%xdMg|%xdMh|%xdMi|%xdMj>. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16764 a1c6a512-1295-4272-9138-f99709370657
2008-03-23Oops - correctly reset the bmp filenamesDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16762 a1c6a512-1295-4272-9138-f99709370657
2008-03-22Fix the display of peakmeters and progress bars (without a custom y ↵Dave Chapman
position) inside a viewport (broken by r16735). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16739 a1c6a512-1295-4272-9138-f99709370657
2008-03-22Small simplification - take advantage of the fact that x/y/width/height are ↵Dave Chapman
non-negative integers when validating the viewport bounds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16736 a1c6a512-1295-4272-9138-f99709370657
2008-03-22Reduce the shocking amount of RAM my viewports implementation was using. ↵Dave Chapman
The first version stored an array of lines for each of the 16 possible viewports (MAX_VIEWPORTS * the number of lines on the LCD with a 5-pixel high font). This version reverts back to a single global array of lines, with each viewport specifying the first and last lines as indexes into that array. This also turns out to be simpler, reducing binsize a little as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16735 a1c6a512-1295-4272-9138-f99709370657
2008-03-21Commit viewports-in-WPS patch (FS#8385). This adds the %V tag - see the ↵Dave Chapman
CustomWPS page for details (shortly...). There is still some work to do - decide how to handle font references, decide how to handle conditionals. Plus checkwps is broken - I'll fix that in a separate commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16733 a1c6a512-1295-4272-9138-f99709370657
2008-03-21Add a general-purpose parse_list function to parse a string containing a ↵Dave Chapman
delimited list of items and adapt the parse_image_load() function in the WPS parser to use it. This function will also be used to parse the upcoming WPS %V viewport tag, but I'm committing it separately as these changes are unrelated to the viewport implementation itself. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16728 a1c6a512-1295-4272-9138-f99709370657
2008-03-09Bugfix for new list implementation - correctly assign colours for remote ↵Dave Chapman
LCDs (fixes wrong colours on X5 remote) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16599 a1c6a512-1295-4272-9138-f99709370657
2008-03-09more fixes for button bar... this will all disappear when viewports are ↵Jonathan Gordon
handled by a manager of some sort git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16589 a1c6a512-1295-4272-9138-f99709370657
2008-03-09fix recorder, buttonbar caused list problemsJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16584 a1c6a512-1295-4272-9138-f99709370657
2008-03-05fix the touchpad list codeJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16528 a1c6a512-1295-4272-9138-f99709370657
2008-03-05FS#8457 - convert the list drawing code to use viewports. This does not ↵Jonathan Gordon
include any of the customizability which was in the patch, so unless any bugs show up users should not notice any difference. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16527 a1c6a512-1295-4272-9138-f99709370657
2008-02-25Fix the simplelist redraw behaviour. It caused e.g. the 'Open with...' menu ↵Jens Arnold
items to not scroll as they should, making it partially unusable with small displays and/or large fonts. Thanks to JdGordon for pointing me into the right direction. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16415 a1c6a512-1295-4272-9138-f99709370657
2008-02-10Hopefully fix FS#8459 by updating the WPS data when returning from the ↵Nicolas Pennequin
context menu. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16277 a1c6a512-1295-4272-9138-f99709370657
2008-02-05(Hopefully) Revert the quickscreen changes. Many fixes need to be made, Paul Louden
and the exact implementation needs discussion. We apologize for the inconvenience and hope to bring an improved quickscreen to you soon. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16224 a1c6a512-1295-4272-9138-f99709370657
2008-02-05quiet the masses...Jonathan Gordon
stop the wps scrolling happening in the quickscreen green delta for non quickscreen targets nfi why colours arnt working... hopefully bug in firmware/? git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16222 a1c6a512-1295-4272-9138-f99709370657
2008-02-05updated the quickscreen's:Jonathan Gordon
- use viewports - dont change to system font, fiddle with item positions to make them fit small screens - user customizable options (use the .cfg settings "quickscreen_left, quickscreen_right, quickscreen_top, quickscreen_bottom" for the name and the .cfg name for the setting you want to use. it can be any except the string settings... (e.g. quickscreen_left:talk menu) - a top item! if there is none set the up button will exit the screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16220 a1c6a512-1295-4272-9138-f99709370657
2008-01-21Accept FS #8490 by Vuong Minh Hiep: fix wrong selection in multi-line listsPeter D'Hoye
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16135 a1c6a512-1295-4272-9138-f99709370657
2008-01-13Fix compile error in wps_debug.c when -DDEBUG and not simulator buildCatalin Patulea
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16084 a1c6a512-1295-4272-9138-f99709370657
2008-01-11Make set_option correctly return USB connect status.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16055 a1c6a512-1295-4272-9138-f99709370657
2008-01-08Accept and Fix FS#8427 - problem with empty screens in lists with pages ↵Jonathan Gordon
scrolling enabled git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16023 a1c6a512-1295-4272-9138-f99709370657
2007-12-17fix touchpad list codeJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15948 a1c6a512-1295-4272-9138-f99709370657
2007-12-17remove the duplicated gui_list struct and only duplicate the members which ↵Jonathan Gordon
are actually different on each screen. should translate to a smaller bin and easier code (users shouldnt notice any difference) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15947 a1c6a512-1295-4272-9138-f99709370657
2007-12-06Make the "current line" value in the gradient style code zero-based, and an ↵Nicolas Pennequin
attempt at more understandable names and better comments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15886 a1c6a512-1295-4272-9138-f99709370657
2007-11-27revert my previous commit and use a conditional for the time format instead ↵Jonathan Gordon
which is probably better. %?cf<24 hour stuff|12 hour stuff> git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15830 a1c6a512-1295-4272-9138-f99709370657
2007-11-27add 2 new tags which display the hour in 12 or 24 hour format depending on ↵Jonathan Gordon
the config setting. %cf is for padded hour %cg is for just the number git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15826 a1c6a512-1295-4272-9138-f99709370657
2007-11-26Allow (almost) arbitrary backlight fade in and fade out times (on targets ↵Jens Arnold
with software PWM fading), and comvert the associated settings to table settings. * Settings system: Unify a bunch of formatters and getlang helpers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15817 a1c6a512-1295-4272-9138-f99709370657
2007-11-25Convert 2 more settings to table settings. * Fix duplicate value display if ↵Jens Arnold
the first value is selected in a table setting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15805 a1c6a512-1295-4272-9138-f99709370657
2007-11-25Fix 64 bit warnings.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15804 a1c6a512-1295-4272-9138-f99709370657
2007-11-25New way of handling integer settings with variable steps: table settings (FS ↵Jens Arnold
#8186, with fixes by me). This allows to get rid of those synchronised tables in firmware/ and apps/, making things more flexible and less error prone. First application: backlight timeouts. * Make some more things 'const'. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15803 a1c6a512-1295-4272-9138-f99709370657
2007-11-25Break out some duplicated code into a seperate functionNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15802 a1c6a512-1295-4272-9138-f99709370657
2007-11-24Fix warnings.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15789 a1c6a512-1295-4272-9138-f99709370657
2007-11-24Make the sound settings talk unit selection slightly less hackish, and make ↵Jens Arnold
it handle unitless settings (like the new bass/treble cutoff setting on iPod Video). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15788 a1c6a512-1295-4272-9138-f99709370657
2007-11-20Make id's created with the TALK_ID macro work in 64 bit simsNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15723 a1c6a512-1295-4272-9138-f99709370657
2007-11-19Oops, wrong define. Fixes the warnings.Nicolas Pennequin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15699 a1c6a512-1295-4272-9138-f99709370657
2007-11-19Accept FS#7901 by Akio Idehara: Fix gradient for scrolling lines when more ↵Nicolas Pennequin
than one line is selected git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15698 a1c6a512-1295-4272-9138-f99709370657
2007-11-19FS#7738 - Scroll wheel acceleration for iPodLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15681 a1c6a512-1295-4272-9138-f99709370657
2007-11-18Improve clearing of pictures in conditional constructs. This fixes improper ↵Nicolas Pennequin
clearing of pictures used in several conditionals or in nested conditionals (FS#7856). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15663 a1c6a512-1295-4272-9138-f99709370657
2007-11-18Smarter conditional handling by storing the previous value. Updates are done ↵Nicolas Pennequin
only if the value has changed. This avoids unnecessary line or picture clearing, and should help fix some problems WPS creators were having. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15657 a1c6a512-1295-4272-9138-f99709370657
2007-11-14Hopefully fix the compile errors.Nicolas Pennequin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15625 a1c6a512-1295-4272-9138-f99709370657
2007-11-14Make the WPS parser stricter with invalid parameter lists. It will now ↵Nicolas Pennequin
reject them instead of ignoring them (this includes the second parameter to %m|x|, which is invalid and now causes a failure). Also change the debugging code in order to allow more precise error messages, including the faulty token's index and description. Finally, add a few missing token description and fine-tune the #ifdefs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15624 a1c6a512-1295-4272-9138-f99709370657
2007-11-14Allow setting a margin on a non-scrolling line by using %m|margin| instead ↵Nicolas Pennequin
of %s|margin|. This allows to easily place dynamic info next to album art. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15610 a1c6a512-1295-4272-9138-f99709370657
2007-11-13Check that the WPS uses album art before clearing its position on ↵Nicolas Pennequin
conditional. Without that check, having a conditional as very first token would cause undesired clearing. Thanks to PaulJam for spotting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15609 a1c6a512-1295-4272-9138-f99709370657