summaryrefslogtreecommitdiff
path: root/apps/gui (follow)
Commit message (Collapse)AuthorAge
...
* Better error checking for the image display tag (%xdn). Should prevent ↵Nicolas Pennequin2007-04-14
| | | | | | problems with the former crossfeed tag (%xd) when used in a conditional construct. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13158 a1c6a512-1295-4272-9138-f99709370657
* Simplification, queue pointers don't wrap (except at INT_MAX, but the ↵Jens Arnold2007-04-14
| | | | | | calculation is still correct in this case). Implemented queue_count() for the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13154 a1c6a512-1295-4272-9138-f99709370657
* rename ACTION_WPSAB_RESET to ACTION_WPS_ABRESET to be more consistent with ↵Marcoen Hirschberg2007-04-13
| | | | | | the rest git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13142 a1c6a512-1295-4272-9138-f99709370657
* FS#7020. Make the behaviour of '#' more consistent. It now requires escaping ↵Nicolas Pennequin2007-04-13
| | | | | | by a '%' to be displayed. If it is not escaped, the following text will be interpreted as a comment (including the newline character). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13140 a1c6a512-1295-4272-9138-f99709370657
* Removed unused struct member from gui_synclist, and reordered struct members ↵Jens Arnold2007-04-12
| | | | | | of gui_list for optimal packing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13139 a1c6a512-1295-4272-9138-f99709370657
* Moved archos backlight code to target tree. Changed old mutlivalue ↵Jens Arnold2007-04-12
| | | | | | CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
* * Add the crossfade (%xf) WPS tagNicolas Pennequin2007-04-12
| | | | | | | * Avoid eating the whole line when unsuccessfully parsing a %x or %xl tag. This will prevent unknown tags starting with %x from making the line disappear. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13127 a1c6a512-1295-4272-9138-f99709370657
* Hide the list title if only one line would fit under itJonathan Gordon2007-04-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13107 a1c6a512-1295-4272-9138-f99709370657
* Use valid_time() instead of using individual checks which amount to the same ↵Nicolas Pennequin2007-04-10
| | | | | | thing, and add RTC tokens beginning and end values that are used to check if a token is an RTC one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13096 a1c6a512-1295-4272-9138-f99709370657
* RTC tags for the WPS: Accept FS#6998 and FS#7001 by Alexander Levin with ↵Nicolas Pennequin2007-04-10
| | | | | | | | | | changes by me. CUSTOM WPS FILES NEED TO BE UPDATED ! The RTC tags are now atomic, i.e. instead of using one tag with the format (e.g. %cd m yc), we use several separate tags, one for each value (e.g. %cd %cm %cy). Also, %cP produces an uppercase AM/PM indicator and %cp a lowercase one, which is the opposite from what they did before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13093 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7004 by Michal Jevjak: Fix new sublines not being displayed after ↵Nicolas Pennequin2007-04-10
| | | | | | scrolling lines. This bug was introduced in the previous WPS commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13090 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7000 by Dave Hooper: Fix scrolling line behaviour for dynamic tags ↵Nicolas Pennequin2007-04-09
| | | | | | (e.g. when a line with info about the next track didn't scroll) and fix some incorrect refreshing flags. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13081 a1c6a512-1295-4272-9138-f99709370657
* Skip leading UTF8 BOM if present. Fixes the first line of the WPS not being ↵Nicolas Pennequin2007-04-08
| | | | | | understood as a comment when it is one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13074 a1c6a512-1295-4272-9138-f99709370657
* * Improve conditional evaluation to allow using enums with only two cases ↵Nicolas Pennequin2007-04-08
| | | | | | | | | (problem reported by roolku). This happens to simplify the code. * Rename get_tag() to get_token_value() and make it get a token pointer instead of the index of a token. This also simplifies the code a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13073 a1c6a512-1295-4272-9138-f99709370657
* Oops, this shouldn't have been removed (fix red).Nicolas Pennequin2007-04-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13066 a1c6a512-1295-4272-9138-f99709370657
* FS#6991. Patch by Alexander Levin, modified by me:Nicolas Pennequin2007-04-08
| | | | | | | | * Reorganisation of the WPS data structure with line and subline structs. This allows us to use sublines more sparingly, so it should save some memory. Also it removes the need for the "End Of Line" token. Overall, the data structure and the code are simplified and gain in clarity. * Some code improvements and added comments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13065 a1c6a512-1295-4272-9138-f99709370657
* fix FS#6883 — Follow playlist override where the WPS leaves you when a ↵Jonathan Gordon2007-04-08
| | | | | | playlist ends git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13064 a1c6a512-1295-4272-9138-f99709370657
* minor actions cleanup:Jonathan Gordon2007-04-08
| | | | | | | | - CONTEXT_MAINMENU is not actually needed, use CONTEXT_TREE which does the same actions - (gigabeat) use vol+/- in the lists to control volume (every list!) (FS#6982 in a better way) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13062 a1c6a512-1295-4272-9138-f99709370657
* Add the sleep timer tag that got forgotten in the initial code.Nicolas Pennequin2007-04-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13056 a1c6a512-1295-4272-9138-f99709370657
* Make conditionals trigger a line update. Fixes FS#6987.Nicolas Pennequin2007-04-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13054 a1c6a512-1295-4272-9138-f99709370657
* Now charcell displays require lcd_update() for updating the main lcd content ↵Jens Arnold2007-04-06
| | | | | | like bitmap displays. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13050 a1c6a512-1295-4272-9138-f99709370657
* Use the default subline timeout value in case the value isn't explicitly ↵Nicolas Pennequin2007-04-06
| | | | | | set. Hopefully this will be the last commit in that area :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13048 a1c6a512-1295-4272-9138-f99709370657
* This time I hope I got it right! Basically, remove what the previous commit ↵Nicolas Pennequin2007-04-06
| | | | | | about subline timeouts added and make the values be computed by a special function at display time. This should bring complete compatibility with the previous code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13047 a1c6a512-1295-4272-9138-f99709370657
* Better handling of subline timeout values : All values are set to the ↵Nicolas Pennequin2007-04-06
| | | | | | | | | | default before another value is found by the parser. No more resetting to the default value at displaying time (this caused problems especially noticeable on the DancePuffDuo WPS). Changing the values with conditionals is still possible but only strictly positive tiemout values are accepted now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13045 a1c6a512-1295-4272-9138-f99709370657
* End the default remote-WPS with a newline. Fixes FS #6979.Nicolas Pennequin2007-04-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13041 a1c6a512-1295-4272-9138-f99709370657
* * Fix the bug where subline separators were read as part of a string.Nicolas Pennequin2007-04-05
| | | | | | | * Some cosmetic code changes, no other functional change (add a comment and rename some variables). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13034 a1c6a512-1295-4272-9138-f99709370657
* Rearrange struct wps_tag to avoid padding. Hopefully save some bytes.Dan Everton2007-04-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13033 a1c6a512-1295-4272-9138-f99709370657
* Allow subline timeout values to be changed dynamically in the WPS (e.g. by ↵Nicolas Pennequin2007-04-05
| | | | | | using conditionals). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13026 a1c6a512-1295-4272-9138-f99709370657
* Player full-line progress bar: No more separate character cell(s) for the ↵Jens Arnold2007-04-04
| | | | | | colon(s) in the time display. Looks better, and takes less software-definable characters, allowing for up to 99:59:59 with the last progress bar character still working properly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13023 a1c6a512-1295-4272-9138-f99709370657
* Player progress drawing rewrite (both emptying cup and full-line bar): * ↵Jens Arnold2007-04-04
| | | | | | Fixes FS #6820, related to the glitch that progress moved in the opposite direction when seeking. * Smaller, more efficient code. * Full-line bar only displays as many software defined characters as needed, freeing the remaining ones for other text. * Don't cut last digit from times >=1 hour (at the cost of inexact last progress bar character). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13021 a1c6a512-1295-4272-9138-f99709370657
* * Make some private variables 'static'.Nicolas Pennequin2007-04-04
| | | | | | | * Fix the pitch tag and allow it to be used on all targets except the Archos Player. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13020 a1c6a512-1295-4272-9138-f99709370657
* Introducing the WPS tokenizer !Nicolas Pennequin2007-04-04
| | | | | | | | | | When a WPS file is loaded, it is parsed to an array of tokens, which allows more efficient displaying. More info on the tracker entry : FS #6862. The parsing code is completely independant and is all in wps_parser.c. The displaying part stays in gwps-common.c. Debugging code is provided (with the right ifdefs) and is disabled by default. Overall, the code should be easier to read and maintain. Adding new WPS tags is made quite trivial. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13019 a1c6a512-1295-4272-9138-f99709370657
* Repair player progressbars (single char and full line) broken in the full ↵Jens Arnold2007-04-01
| | | | | | unicode support move, and enable text alignment for charcell. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12993 a1c6a512-1295-4272-9138-f99709370657
* Recode filetypes.c to remove its need for a static string buffer.Jonathan Gordon2007-03-29
| | | | | | | | | Functional changes: - filetypes.c handles the open with menu now instead of onplay.c - automatic plugin registration no longer works (did anyone know about you could do this?) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12959 a1c6a512-1295-4272-9138-f99709370657
* First step of charcell LCD code rework: * Make it fully unicode aware so ↵Jens Arnold2007-03-26
| | | | | | that adding non-ISO8859-1 scripts becomes possible (limited by the LCD capabilities of course). * Make the API more similar to the bitmap LCD code's API. * Moved hardware dependent parts to target tree. * Simplified code. * Jumpscroll temporarily non-functional. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12916 a1c6a512-1295-4272-9138-f99709370657
* Let GCC check arguments of some more printf-style functions, also for ↵Jens Arnold2007-03-17
| | | | | | plugins and codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
* Fix occasional missing cursor when moving up in a list with a title when ↵Magnus Holmgren2007-03-17
| | | | | | paged scrolling is on. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12814 a1c6a512-1295-4272-9138-f99709370657
* Set CONFIG_RTC to 0 for non-RTC targets, and check with #if to profit from ↵Jens Arnold2007-03-16
| | | | | | -Wundef. No code change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12811 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the 'center' parameter for splashes. There were only 2 of almost ↵Jens Arnold2007-03-16
| | | | | | 500 splashes which were not centered. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
* Make a couple of private functions 'static'Nils Wallménius2007-03-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12770 a1c6a512-1295-4272-9138-f99709370657
* Make a couple of private functions 'static'Nils Wallménius2007-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12729 a1c6a512-1295-4272-9138-f99709370657
* Optimized the gui list code performance, including automatic frame dropping ↵Miika Pekkarinen2007-03-11
| | | | | | and cpu boosting when button events are getting queued. Improved scrollwheel acceleration code is needed to notice a real change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12721 a1c6a512-1295-4272-9138-f99709370657
* revert FS#6747 — y-margin reset in gui_list_draw, it introduced a nasty Jonathan Gordon2007-03-11
| | | | | | | scroll bug which isnt so simple to fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12719 a1c6a512-1295-4272-9138-f99709370657
* only call display->setmargins() onceJonathan Gordon2007-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12706 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#6747 by Timo HorstschäferJonathan Gordon2007-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12704 a1c6a512-1295-4272-9138-f99709370657
* Allow dynamic menu items to be spoken, especially the resume/now playing itemLinus Nielsen Feltzing2007-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12614 a1c6a512-1295-4272-9138-f99709370657
* don't restart the whole wps to essentially update the display of runtime ↵Robert Kukla2007-03-04
| | | | | | info, but make the concerned tags dynamic. Now scrolling is not restarted at end of buffering. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12592 a1c6a512-1295-4272-9138-f99709370657
* Use the user font in the quickscreen if it fits. Still uses Jonathan Gordon2007-03-04
| | | | | | | LANG_SYSFONT_x... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12587 a1c6a512-1295-4272-9138-f99709370657
* thats what happens when you commit between dinner courses :pJonathan Gordon2007-03-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12582 a1c6a512-1295-4272-9138-f99709370657
* Fix red builds.Jonathan Gordon2007-03-04
| | | | | | | (Previous commit was for FS#6713 btw) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12581 a1c6a512-1295-4272-9138-f99709370657