summaryrefslogtreecommitdiff
path: root/apps/gui (follow)
Commit message (Collapse)AuthorAge
...
* * 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
* Use array for quickscreen item settings to simplify some logicNils Wallménius2009-10-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23380 a1c6a512-1295-4272-9138-f99709370657
* Allow the x and y pixel values of viewports to be a negative number..Jonathan Gordon2009-10-28
| | | | | | | %V|-50|0|-|..... will position that viewport 50 pixels from the right of the display at the top. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23378 a1c6a512-1295-4272-9138-f99709370657
* FS#10722: some improvements for gui/list.cTeruaki Kawashima2009-10-27
| | | | | | | | | | | | | | * Add function list_get_nb_lines and replace duplicated codes to calculate number of lines by it. * Refine calculation of start_item in function gui_list_put_selection_on_screen. - displays as many items as possible. hopefully fix FS#10054. * Fix checking bounds in function gui_synclist_item_is_onscreen. * Remove trailing spaces and fix indents. Flyspray: FS#10722 Author: myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23367 a1c6a512-1295-4272-9138-f99709370657
* FS#10704 - Make a configuration option to disable USB HID Tomer Shalev2009-10-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23322 a1c6a512-1295-4272-9138-f99709370657
* Remove all update event callbacks if the custom statusbar is unused.Thomas Martitz2009-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23306 a1c6a512-1295-4272-9138-f99709370657
* No need to have this variable global anymore.Thomas Martitz2009-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23305 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
* Convert lcd_activation callbacks to use the event system to allow for ↵Thomas Martitz2009-10-20
| | | | | | | | | multiple parallel callbacks (for custom statusbar). Increase maximum event count as we need more (I actually had a report about it during custom statusbar testing). Removed corresponding functions from the core and plugin api. Bump min version and sort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23302 a1c6a512-1295-4272-9138-f99709370657
* usb_keypad_mode shouldn't depend on SIMULATORFrank Gevaerts2009-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23294 a1c6a512-1295-4272-9138-f99709370657
* Cleanup quickscreen text drawing by using text alignment flags for viewports.Thomas Martitz2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23283 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow: wrong file usedTomer Shalev2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23281 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow: Missing statusbar.h include (hopefully the last one missing)Tomer Shalev2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23280 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow: Missing ata_mmc.h includeTomer Shalev2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23278 a1c6a512-1295-4272-9138-f99709370657
* Extract usb_screen logic out of screens.c into apps/gui/usb_screen.cTomer Shalev2009-10-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23273 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
* Use wrap-safe TIME_BEFORE/TIME_AFTER macros to compare times with ↵Bertrik Sikken2009-10-18
| | | | | | current_time, instead of comparing them directly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23246 a1c6a512-1295-4272-9138-f99709370657
* Add a option to skip length which lets you skip 5s before the end of a song, ↵Thomas Martitz2009-10-17
| | | | | | which can be useful on gapless albums. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23229 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
* Correct a small misaligned brace.Thomas Martitz2009-10-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23198 a1c6a512-1295-4272-9138-f99709370657
* Use the center align viewport flag to draw top and bottom text centered.Thomas Martitz2009-10-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23197 a1c6a512-1295-4272-9138-f99709370657
* Pitchscreen: Don't clear the whole display, but only the parent viewport.Thomas Martitz2009-10-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23196 a1c6a512-1295-4272-9138-f99709370657
* Whoops, I had that warning turned off locally.Thomas Martitz2009-10-14
| | | | | | See http://www.rockbox.org/irc/log-20091014#08:40:11 gcc warns on that one (it's perfectly valid code). It doesn't warn if you do this on plain arrays and since I have had this warning disabled I thought it would not warn on arrays of structs also. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23172 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
* Add a action helper for touchscreen targets to only receive the touchpress ↵Thomas Martitz2009-10-11
| | | | | | | | coordinates if they're in the passed viewport. Also, fixes the coordinates to be relaitve to the viewport. Use it in the color picker screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23116 a1c6a512-1295-4272-9138-f99709370657
* Clean up, simplify and fix small bugs in color picker.Thomas Martitz2009-10-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23111 a1c6a512-1295-4272-9138-f99709370657
* Add a center flag, next to the rtl flag, for viewports. That results in any ↵Thomas Martitz2009-10-11
| | | | | | | | text being drawn centered. It overrides the RTL flag if set. Simplify splashes and time menu by using it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23105 a1c6a512-1295-4272-9138-f99709370657
* revert r23093 and r 23094, since the title pointer is used to modify the ↵Nils Wallménius2009-10-11
| | | | | | title of the list from the callback function in one place git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23096 a1c6a512-1295-4272-9138-f99709370657
* Const correctnessNils Wallménius2009-10-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23093 a1c6a512-1295-4272-9138-f99709370657
* A bit of const correctness and 80-char limit correction.Thomas Martitz2009-10-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23083 a1c6a512-1295-4272-9138-f99709370657
* Slight const police and avoid copying a lang stringNils Wallménius2009-10-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23065 a1c6a512-1295-4272-9138-f99709370657
* Don't cast away constnessNils Wallménius2009-10-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23064 a1c6a512-1295-4272-9138-f99709370657
* Make function arg const pointerNils Wallménius2009-10-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23063 a1c6a512-1295-4272-9138-f99709370657
* Deinline fuction and some whitespace tweaksNils Wallménius2009-10-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23062 a1c6a512-1295-4272-9138-f99709370657
* Add second 'const' qualifyer accidentally removed in r23060Nils Wallménius2009-10-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23061 a1c6a512-1295-4272-9138-f99709370657
* Clean up a bogus array and avoid some copying of static stringsNils Wallménius2009-10-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23060 a1c6a512-1295-4272-9138-f99709370657
* Fix player red and remove an obsolete function call.Thomas Martitz2009-10-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23056 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
* Tiny simplificationNils Wallménius2009-10-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23031 a1c6a512-1295-4272-9138-f99709370657