summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine (follow)
Commit message (Collapse)AuthorAge
...
* Remove a wps function call from skin engine, hopefully the last one.Thomas Martitz2009-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23461 a1c6a512-1295-4272-9138-f99709370657
* Cleanup includes a bit.Thomas Martitz2009-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23459 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#10745 - %mv not working in sbs...Jonathan Gordon2009-11-01
| | | | | | | This fix is as good as we can do, but not perfect. Because the sbs is only updated when a button is pressed it will stay in the "volume changing" state probalby longer than expected.. which isnt terrible, but useful to remember. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23455 a1c6a512-1295-4272-9138-f99709370657
* * code police on a macro which has no reason for beingJonathan Gordon2009-10-29
| | | | | | | | * add the TOKEN_RTC_PRESENT value to the skin debugger listing * Allow the width and height of a viewport to be negative values (so width -50 means extend to 50pixels inside from the right edge) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23393 a1c6a512-1295-4272-9138-f99709370657
* Fix a few potential redraw problems with the custom statusbar and wps ↵Thomas Martitz2009-10-20
| | | | | | | | | fighting for the same full redraw variable. Instead, introduce a new skin struct holding data which is meant for all screens for a single skin (struct wps_state is currently used by both at the same time). Also clean up (classic) statusbar handling for skins using this new struct. Also, implement deactivating updating of the custom statusbar when the LCD is deactivated, saving a bit battery life on some targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23304 a1c6a512-1295-4272-9138-f99709370657
* Initial custom statusbar commit.Thomas Martitz2009-10-19
| | | | | | | | | | | | | | | | | | | | The custom statusbar can be used as a WPS for the main UI, using .(r)sbs files. It's using the skin engine and knows all tags the WPS also knows. The default folder for .sbs is the wps folder to reuse images used in the WPS. As it can be shown in the WPS also, it's useful to move shared parts to the custom statusbar in order to save skin buffer space. There are a few restrictions/TODOs: *) Peak meter doesn't redraw nicely(not frequent enough), as very frequent updates would slow the UI down as hell (some targets fight with it in the WPS already: FS#10686) *) No touchregion support as the statusbar doesn't have any action handling (it won't fail to parse though). *) Drawing stuff into the default VP is forbidden (loading images in it is not). You *need* to use viewports for the displaying stuff (parsing fails if no viewport is used). *) Themes that don't use a custom ui viewport can be fixed up using the new %Vi tag to avoid nasty redraw effectts (you must not draw into it as well, it's used to fix up the ui viewport). %Vi describes the viewport that the lists can use without getting in the way of the statusbar. Otherwise, it behaves like the classic statusbar, it can be configured in the theme settings, and can be turned off in the wps using %wd. Note to translaters: When translating LANG_STATUSBAR_CUSTOM, please consider using the same translation as for LANG_CHANNEL_CUSTOM if it's compatible. They could be combined later then. Flyspray: FS#10566 Author: myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23258 a1c6a512-1295-4272-9138-f99709370657
* Reorder members for more efficient alignment.Thomas Martitz2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23254 a1c6a512-1295-4272-9138-f99709370657
* r23208 broke conditional use of metadata and filename tags. Return NULL ↵Thomas Martitz2009-10-18
| | | | | | instead of "n/a" to make it work again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23253 a1c6a512-1295-4272-9138-f99709370657
* Fix Player, checkwps and database toolsThomas Martitz2009-10-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23215 a1c6a512-1295-4272-9138-f99709370657
* Revert r23212, I committed it accidentally.Thomas Martitz2009-10-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23214 a1c6a512-1295-4272-9138-f99709370657
* initial custom statusbar commitThomas Martitz2009-10-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23212 a1c6a512-1295-4272-9138-f99709370657
* Rework albumart buffering internally to allow for mutliple albumart sizes.Thomas Martitz2009-10-16
| | | | | | | | Playback now has a few albumart slots. Anything (most importantly: skins) can obtain such a slot. The slot has fields for the size which is passed to bufopen then to image_load to buffer the albumart with the proper size. Currently there's 1 slot. We can increase it for remotes if we want. Custom statusbar will increase it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23209 a1c6a512-1295-4272-9138-f99709370657
* Make the skin engine behave sane if the skin's id3 pointer is NULL (the one ↵Thomas Martitz2009-10-16
| | | | | | in struct wps_state), so that skins don't need audio to be played before being displayed (needed for upcoming custom statusbar). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23208 a1c6a512-1295-4272-9138-f99709370657
* Add %cs tag.Thomas Martitz2009-10-16
| | | | | | It can be used conditionally and indicates the current screen (wps, rec, radio screens or lists). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23207 a1c6a512-1295-4272-9138-f99709370657
* Change %mp tag to use current_playmode(). It has upto 9 values now, ↵Thomas Martitz2009-10-16
| | | | | | including recording and radio states. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23206 a1c6a512-1295-4272-9138-f99709370657
* Fix %Sp expansion in wpsThomas Martitz2009-10-15
| | | | | | | | | | | | | | | The value returned from sound_get_pitch() was shown assuming that 100% corresponds to 1000 by skin_tokens.c::get_token_value(). The value actually is 100*PITCH_SPEED_PRECISION. Steal the way the callchain from gui_syncpitchscreen_run() to pitchscreen_draw() in apps/gui/pitchscreen.c formats the value and use it here for consistency. Flyspray: FS#10673 Author: Junio C Hamano git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23199 a1c6a512-1295-4272-9138-f99709370657
* Remove wps_reset(), and rename skin_data_init to skin_data_reset() and ↵Thomas Martitz2009-10-14
| | | | | | | | | extend it to zero most of the wps_data members. As these are called when parsing a skin it doesn't need to be called by the wps or settings, so make it local to skin_parser.c. Reorder the members of struct wps_data for more effecient alignment. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23171 a1c6a512-1295-4272-9138-f99709370657
* fix a redraw bug when a static token (like %C) is the only token on a ↵Jonathan Gordon2009-10-12
| | | | | | sub/line.. hopefully no bad sideeffects... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23140 a1c6a512-1295-4272-9138-f99709370657
* RTL: Cosmetic changes, no functional change - Rename constantsTomer Shalev2009-10-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23117 a1c6a512-1295-4272-9138-f99709370657
* Fix a few problems with RTL, statusbar and custom ui viewport.Thomas Martitz2009-10-09
| | | | | | | *text in statusbar jumped around *custom ui vp wasn't refreshed properly on language changing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23053 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#10617 (fix spotted by Teruaki Kawashima), something about the %C not ↵Jonathan Gordon2009-10-05
| | | | | | working if %?C is the first tokens in the skin git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22944 a1c6a512-1295-4272-9138-f99709370657
* redraw the AA much less frequently to save bettery life and also let skins ↵Jonathan Gordon2009-10-05
| | | | | | draw over the AA... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22932 a1c6a512-1295-4272-9138-f99709370657
* new skin tag: %Sx|<english>| will display the current languages translation ↵Jonathan Gordon2009-09-26
| | | | | | | | | | | | | of the "<english>" string. the <english> is the Source: bit in the .lang files. (must be exactly as it is there...) checkwps cannot verify that the string is correct so make sure to use the sim to verify the string is acurate. Also "fix" checkwps so %St|<setting>| can be accepted for the theme site git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22837 a1c6a512-1295-4272-9138-f99709370657
* Rename struct skin_albumart members to be consistent with similar members of ↵Thomas Martitz2009-09-25
| | | | | | other structs. the albumart_ prefix is redundant. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22836 a1c6a512-1295-4272-9138-f99709370657
* Redo 22825 but this time with caring about alignment.Thomas Martitz2009-09-25
| | | | | | | Change coordinate members in struct skin_albumart to ints. That alone gives a tiny binsize decrease. Change the struct layout (some reordering) to enable more efficient alignment which reclaims 4 of the 8 bytes. Since there's usually only 1 aa struct this should be a net gain. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22835 a1c6a512-1295-4272-9138-f99709370657
* r22826 is causing data aborts when the wps is loaded in the parse_list ↵Karl Kurbjun2009-09-25
| | | | | | function - suspected reason is an improperly aligned pointer depending on how the buffer gets setup when translating a "d". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22827 a1c6a512-1295-4272-9138-f99709370657
* Remove some some code in favor of a single parse_list() call.Thomas Martitz2009-09-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22826 a1c6a512-1295-4272-9138-f99709370657
* Show the name of the setting in the WPS debug outputAlexander Levin2009-09-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22781 a1c6a512-1295-4272-9138-f99709370657
* add the %St setting to the debug output for checkwps/parser.... needs mroe ↵Jonathan Gordon2009-09-22
| | | | | | work to make it more useful git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22780 a1c6a512-1295-4272-9138-f99709370657
* Actually fix AA display... previous commit was borkedJonathan Gordon2009-09-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22728 a1c6a512-1295-4272-9138-f99709370657
* FS#10602 - show the viewport label instead of an int in the debug outputJonathan Gordon2009-09-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22727 a1c6a512-1295-4272-9138-f99709370657
* fix FS#10599 and do r22721 a slightly better way. the %C tag is internally ↵Jonathan Gordon2009-09-18
| | | | | | converted to a different token for display and conditional check. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22726 a1c6a512-1295-4272-9138-f99709370657
* Fix a bug where the conditional use of %C (i.e. %?C) caused the album art to ↵Thomas Martitz2009-09-17
| | | | | | draw (noticed in FS#10596). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22721 a1c6a512-1295-4272-9138-f99709370657
* Remove some trailing whitespaces in in the skin engine files.Thomas Martitz2009-09-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22694 a1c6a512-1295-4272-9138-f99709370657
* Fix/band aid the freeze when %V is the first thing (i.e. in line 1) in a ↵Thomas Martitz2009-09-13
| | | | | | .wps (see FS#10596). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22693 a1c6a512-1295-4272-9138-f99709370657
* Increase skin buffer on charcell displays so it's actually big enough to ↵Frank Gevaerts2009-09-11
| | | | | | load a wps file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22681 a1c6a512-1295-4272-9138-f99709370657
* Initialize token before using.Teruaki Kawashima2009-09-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22678 a1c6a512-1295-4272-9138-f99709370657
* Hopefully make the wps debug info more understandable... display tokens the ↵Jonathan Gordon2009-09-11
| | | | | | same way they are displayed... i.e viewports->lines->sublines->tokens git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22672 a1c6a512-1295-4272-9138-f99709370657
* fix the first subline not displaying properlyJonathan Gordon2009-09-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22668 a1c6a512-1295-4272-9138-f99709370657
* Fix/commit FS#10595. A (sub)line could be part of the previous viewport due ↵Thomas Martitz2009-09-08
| | | | | | to a off-by-one bug in the indexing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22662 a1c6a512-1295-4272-9138-f99709370657
* stupid yellow.... I'm going to bedJonathan Gordon2009-09-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22648 a1c6a512-1295-4272-9138-f99709370657
* add a bit more debug info for skins... show the subimage id in the display ↵Jonathan Gordon2009-09-07
| | | | | | image token's debug line git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22647 a1c6a512-1295-4272-9138-f99709370657
* rework AA load/display handling in the skins to get them working in ↵Jonathan Gordon2009-09-07
| | | | | | viewports again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22646 a1c6a512-1295-4272-9138-f99709370657
* fix red :)Jonathan Gordon2009-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22643 a1c6a512-1295-4272-9138-f99709370657
* Make the e200 compile the vled for the sim... other targets are probably ↵Jonathan Gordon2009-09-06
| | | | | | doing the same thing so find out which.. commit will be immediatly followed to fixd red git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22642 a1c6a512-1295-4272-9138-f99709370657
* minor line handling fixes, be smarter (well dumber actually) about ↵Jonathan Gordon2009-09-04
| | | | | | increasing the size of the tokens array, that loop isnt the only place the data->num_tokens variable gets increased... also add one last WPS_NO_TOKEN token to the end to make sure we dont accidently overrun into the next skin on the last line of a skin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22618 a1c6a512-1295-4272-9138-f99709370657
* Fix STRIDE macro for multiscreen and add stride support for picture lib.Karl Kurbjun2009-09-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22615 a1c6a512-1295-4272-9138-f99709370657
* rename wps_[sub]line to skin_[sub]lineJonathan Gordon2009-09-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22606 a1c6a512-1295-4272-9138-f99709370657
* fix player's redJonathan Gordon2009-09-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22603 a1c6a512-1295-4272-9138-f99709370657
* Almost the last of the skin ram wastage fixing... This one moved the ↵Jonathan Gordon2009-09-02
| | | | | | | | | line/subline handling into the alloced buffer and links them more sensibly with their viewports. now it works something like this: a skin is a list of viewports, each viewport has a list of lines, each line is a list of sublines, each subline has an *index* of its first and last tokens... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22602 a1c6a512-1295-4272-9138-f99709370657