rockbox/apps/gui
Frank Gevaerts a20d77dba0 Allow %?Sp<...> to be used as a conditional
When there are two choices (i.e. boolean), choose the first one if the
pitch is different from the normal value, and choose the second one if the
pitch is the same as the normal value.

When there are more than two choices (i.e. enum), the left half of the
choices are used to show 0..normal range, and the right half of the
choices are used to show values over that range.  The last entry is used
when it is set to the normal setting, following the rockbox convention to
use the last entry for special values.

  2 items: %?Sp<0..99 or 101..infinity|100>
  3 items: %?Sp<0..99|101..infinity|100>
  4 items: %?Sp<0..49|50..99|101..infinity|100>
  5 items: %?Sp<0..49|50..99|101..149|150..infinity|100>
  6 items: %?Sp<0..33|34..66|67..99|101..133|134..infinity|100>
  7 items: %?Sp<0..33|34..66|67..99|101..133|134..167|167..infinity|100>

This will allow two expected use cases:

 (1) %?Sp<%Sp> to show the pitch only when playing at a modified pitch.

 (2) %?Sp<%xdAa|%xdAb|> to show an icon of Darth Vader (subpicture 1
     of image A) when playing at a lower pitch than the original, and to
     show an icon of a chipmunk (subpicture 2 of image A) when playing at
     a higher pitch than the original.  When playing at a normal pitch,
     nothing is shown.

Flyspray: FS#10680
Author: Junio C Hamano



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23589 a1c6a512-1295-4272-9138-f99709370657
2009-11-09 17:43:46 +00:00
..
bitmap Fix position calculation of title icon. 2009-10-06 13:32:37 +00:00
charcell Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups 2009-08-20 16:47:44 +00:00
skin_engine Allow %?Sp<...> to be used as a conditional 2009-11-09 17:43:46 +00:00
backdrop.c Correct yet another typo causing reds and greater shame on me. 2009-08-06 00:48:08 +00:00
backdrop.h Move find_viewport() and find_image() to skin_parser.c where the reset of the linked-list handling sits. That enables removing duplicated code from checkwps. Also remove a few stubs in favor having the restart playback mechanism on albumart change #ifdef __PCTOOL__ 2009-11-01 15:48:31 +00:00
buttonbar.c FS#10080 2009-07-14 13:57:45 +00:00
buttonbar.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
color_picker.c RTL: Cosmetic changes, no functional change - Rename constants 2009-10-11 20:15:22 +00:00
color_picker.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
icon.c Fine tuning of gui elements positioning in RTL mode 2009-10-05 23:41:59 +00:00
icon.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
list.c FS#10722: some improvements for gui/list.c 2009-10-27 13:18:54 +00:00
list.h revert r23093 and r 23094, since the title pointer is used to modify the title of the list from the callback function in one place 2009-10-11 09:40:47 +00:00
option_select.c Fix FS#10745 - %mv not working in sbs... 2009-11-01 02:36:51 +00:00
option_select.h Make the formatter functions used by the settings return a pointer to avoid usless copying of lang strings, this brought with it a long chain of const correctness and a few random cleanups 2009-08-20 16:47:44 +00:00
pitchscreen.c Correct a small misaligned brace. 2009-10-15 21:35:10 +00:00
pitchscreen.h Fix red in bootloaders 2009-07-11 17:16:23 +00:00
quickscreen.c Const correctness 2009-10-29 15:09:09 +00:00
quickscreen.h Quickscreen: 4th item 2009-08-29 14:42:03 +00:00
scrollbar.c Fix STRIDE macro for multiscreen and add stride support for picture lib. 2009-09-04 00:46:24 +00:00
scrollbar.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
splash.c RTL: Cosmetic changes, no functional change - Rename constants 2009-10-11 20:15:22 +00:00
splash.h FS#9281 Rename of splash functions. 2008-08-15 08:27:39 +00:00
statusbar-skinned.c try that previous commit again... 2009-11-09 06:27:04 +00:00
statusbar-skinned.h Initial custom statusbar commit. 2009-10-19 15:28:15 +00:00
statusbar.c Initial custom statusbar commit. 2009-10-19 15:28:15 +00:00
statusbar.h Fix red - statusbar_position() is a macro. 2009-11-01 13:36:57 +00:00
usb_screen.c FS#10704 - Make a configuration option to disable USB HID 2009-10-23 13:29:19 +00:00
usb_screen.h Extract usb_screen logic out of screens.c into apps/gui/usb_screen.c 2009-10-19 21:19:30 +00:00
viewport.c Fix the error condition to actually set the fullscreen viewport. Also remove a comment which doesnt really add anything.. the comments 15lines above it explain whats happening 2009-11-09 05:15:48 +00:00
viewport.h Initial custom statusbar commit. 2009-10-19 15:28:15 +00:00
wps.c Fix volume change in wps. %mv tag keeped showing volume is changed if volume is changed in wps. 2009-11-04 12:46:31 +00:00
wps.h Remove a wps function call from skin engine, hopefully the last one. 2009-11-01 13:36:52 +00:00
yesno.c Fix FS#9842 by stopping scrolling before leaving the yesno screen. 2009-09-05 18:10:41 +00:00
yesno.h Clean up some more #includes 2009-03-08 18:37:32 +00:00