summaryrefslogtreecommitdiff
path: root/apps/gui (follow)
Commit message (Collapse)AuthorAge
...
* the menu and list now accepts a parent viewport to draw in (and the menu can ↵Jonathan Gordon2008-03-26
| | | | | | be told to not show status/button bars). This lays the groundwork to fix colour problems with plugin menus (see star.c for an example.) This hopefully fixes some button bar issues as well as theme problems. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16812 a1c6a512-1295-4272-9138-f99709370657
* Make checkwps compile again. Still more work is needed though, as checkwps ↵Dave Chapman2008-03-25
| | | | | | is compiled to emulate an iPod Color - this needs changing to allow the LCD (and remote LCD) dimensions/depth to be specified on the commandline - the new %V tags are validated against the LCD characteristics git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16807 a1c6a512-1295-4272-9138-f99709370657
* Oops. Mop up red.Steve Bavin2008-03-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16799 a1c6a512-1295-4272-9138-f99709370657
* Code police raid on the settings code, consting and putting headers ↵Steve Bavin2008-03-25
| | | | | | alongside their implementation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16798 a1c6a512-1295-4272-9138-f99709370657
* D'oh - fix a silly #ifdef mistake that caused problems with remote WPSs ↵Dave Chapman2008-03-25
| | | | | | using viewports. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16787 a1c6a512-1295-4272-9138-f99709370657
* Stricter syntax checking of the %V tag - pay attention to the return-code ↵Dave Chapman2008-03-24
| | | | | | from parse_list, and check for the tailing | symbol. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16784 a1c6a512-1295-4272-9138-f99709370657
* Hopefully get the viewport position/dimensions validation correct this time.Dave Chapman2008-03-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16782 a1c6a512-1295-4272-9138-f99709370657
* Add another safety-check in the bitmap strips parsing - don't allow the ↵Dave Chapman2008-03-24
| | | | | | num_subimages parameter to %xl to be <= 0 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16779 a1c6a512-1295-4272-9138-f99709370657
* Add a sanity-check to ensure only in-range subimages are referenced in %xd ↵Dave Chapman2008-03-24
| | | | | | tags. Plus some tab policing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16774 a1c6a512-1295-4272-9138-f99709370657
* Add the ability to use bitmap strips (a single .bmp file containing many ↵Dave Chapman2008-03-23
| | | | | | 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
* Oops - correctly reset the bmp filenamesDave Chapman2008-03-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16762 a1c6a512-1295-4272-9138-f99709370657
* Fix the display of peakmeters and progress bars (without a custom y ↵Dave Chapman2008-03-22
| | | | | | position) inside a viewport (broken by r16735). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16739 a1c6a512-1295-4272-9138-f99709370657
* Small simplification - take advantage of the fact that x/y/width/height are ↵Dave Chapman2008-03-22
| | | | | | non-negative integers when validating the viewport bounds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16736 a1c6a512-1295-4272-9138-f99709370657
* Reduce the shocking amount of RAM my viewports implementation was using. ↵Dave Chapman2008-03-22
| | | | | | 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
* Commit viewports-in-WPS patch (FS#8385). This adds the %V tag - see the ↵Dave Chapman2008-03-21
| | | | | | 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
* Add a general-purpose parse_list function to parse a string containing a ↵Dave Chapman2008-03-21
| | | | | | 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
* Bugfix for new list implementation - correctly assign colours for remote ↵Dave Chapman2008-03-09
| | | | | | LCDs (fixes wrong colours on X5 remote) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16599 a1c6a512-1295-4272-9138-f99709370657
* more fixes for button bar... this will all disappear when viewports are ↵Jonathan Gordon2008-03-09
| | | | | | handled by a manager of some sort git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16589 a1c6a512-1295-4272-9138-f99709370657
* fix recorder, buttonbar caused list problemsJonathan Gordon2008-03-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16584 a1c6a512-1295-4272-9138-f99709370657
* fix the touchpad list codeJonathan Gordon2008-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16528 a1c6a512-1295-4272-9138-f99709370657
* FS#8457 - convert the list drawing code to use viewports. This does not ↵Jonathan Gordon2008-03-05
| | | | | | 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
* Fix the simplelist redraw behaviour. It caused e.g. the 'Open with...' menu ↵Jens Arnold2008-02-25
| | | | | | 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
* Hopefully fix FS#8459 by updating the WPS data when returning from the ↵Nicolas Pennequin2008-02-10
| | | | | | context menu. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16277 a1c6a512-1295-4272-9138-f99709370657
* (Hopefully) Revert the quickscreen changes. Many fixes need to be made, Paul Louden2008-02-05
| | | | | | | | | 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
* quiet the masses...Jonathan Gordon2008-02-05
| | | | | | | | | 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
* updated the quickscreen's:Jonathan Gordon2008-02-05
| | | | | | | | | | | - 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
* Accept FS #8490 by Vuong Minh Hiep: fix wrong selection in multi-line listsPeter D'Hoye2008-01-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16135 a1c6a512-1295-4272-9138-f99709370657
* Fix compile error in wps_debug.c when -DDEBUG and not simulator buildCatalin Patulea2008-01-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16084 a1c6a512-1295-4272-9138-f99709370657
* Make set_option correctly return USB connect status.Michael Sevakis2008-01-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16055 a1c6a512-1295-4272-9138-f99709370657
* Accept and Fix FS#8427 - problem with empty screens in lists with pages ↵Jonathan Gordon2008-01-08
| | | | | | scrolling enabled git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16023 a1c6a512-1295-4272-9138-f99709370657
* fix touchpad list codeJonathan Gordon2007-12-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15948 a1c6a512-1295-4272-9138-f99709370657
* remove the duplicated gui_list struct and only duplicate the members which ↵Jonathan Gordon2007-12-17
| | | | | | 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
* Make the "current line" value in the gradient style code zero-based, and an ↵Nicolas Pennequin2007-12-06
| | | | | | attempt at more understandable names and better comments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15886 a1c6a512-1295-4272-9138-f99709370657
* revert my previous commit and use a conditional for the time format instead ↵Jonathan Gordon2007-11-27
| | | | | | | | | 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
* add 2 new tags which display the hour in 12 or 24 hour format depending on ↵Jonathan Gordon2007-11-27
| | | | | | | | | | 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
* Allow (almost) arbitrary backlight fade in and fade out times (on targets ↵Jens Arnold2007-11-26
| | | | | | 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
* Convert 2 more settings to table settings. * Fix duplicate value display if ↵Jens Arnold2007-11-25
| | | | | | the first value is selected in a table setting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15805 a1c6a512-1295-4272-9138-f99709370657
* Fix 64 bit warnings.Jens Arnold2007-11-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15804 a1c6a512-1295-4272-9138-f99709370657
* New way of handling integer settings with variable steps: table settings (FS ↵Jens Arnold2007-11-25
| | | | | | #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
* Break out some duplicated code into a seperate functionNils Wallménius2007-11-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15802 a1c6a512-1295-4272-9138-f99709370657
* Fix warnings.Jens Arnold2007-11-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15789 a1c6a512-1295-4272-9138-f99709370657
* Make the sound settings talk unit selection slightly less hackish, and make ↵Jens Arnold2007-11-24
| | | | | | 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
* Make id's created with the TALK_ID macro work in 64 bit simsNils Wallménius2007-11-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15723 a1c6a512-1295-4272-9138-f99709370657
* Oops, wrong define. Fixes the warnings.Nicolas Pennequin2007-11-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15699 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7901 by Akio Idehara: Fix gradient for scrolling lines when more ↵Nicolas Pennequin2007-11-19
| | | | | | than one line is selected git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15698 a1c6a512-1295-4272-9138-f99709370657
* FS#7738 - Scroll wheel acceleration for iPodLinus Nielsen Feltzing2007-11-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15681 a1c6a512-1295-4272-9138-f99709370657
* Improve clearing of pictures in conditional constructs. This fixes improper ↵Nicolas Pennequin2007-11-18
| | | | | | 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
* Smarter conditional handling by storing the previous value. Updates are done ↵Nicolas Pennequin2007-11-18
| | | | | | 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
* Hopefully fix the compile errors.Nicolas Pennequin2007-11-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15625 a1c6a512-1295-4272-9138-f99709370657
* Make the WPS parser stricter with invalid parameter lists. It will now ↵Nicolas Pennequin2007-11-14
| | | | | | 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