Commit graph

320 commits

Author SHA1 Message Date
Michael Giacomelli
1fefb48e87 Fix System/Running Time to reset the running time whenever a charger or USB cable is inserted, not just when the cable is inserted in the running time screen. Should now make the running time actually be the amount of time rockbox has run since the battery was last charged, which is as far as I can tell the original idea behind the runtime menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24954 a1c6a512-1295-4272-9138-f99709370657
2010-02-27 22:47:49 +00:00
Jonathan Gordon
55b21c104f NULL check so it doesnt display (null) on the comment line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24744 a1c6a512-1295-4272-9138-f99709370657
2010-02-18 05:50:44 +00:00
Jonathan Gordon
c647e62c30 bandaid fix for FS#11033 where a really long comment crashes. Real fix is figuring out why the scroll engine doesnt handle this properly (I give up though)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24743 a1c6a512-1295-4272-9138-f99709370657
2010-02-18 05:43:51 +00:00
Teruaki Kawashima
93f9e7cbfb fix text scrolling handling in do_menu, set_time_screen and time_screen.
Don't scroll text in time_screen(). the lines will be redrawn before scrolling statrs, so they don't scroll anyway.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24591 a1c6a512-1295-4272-9138-f99709370657
2010-02-11 10:41:06 +00:00
Jonathan Gordon
9d1832cfba fix FS#10870 - slightly change the viewportmanager theme undo-er to be able to force an update even if the theme isnt being toggled from off to on which caused WPS artifacts when leaving the WPS if the theme was enabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24087 a1c6a512-1295-4272-9138-f99709370657
2009-12-21 05:19:12 +00:00
Jonathan Gordon
b2eb44ce0e FS#10824 - viewport/statusbar API rework.
Hopefully the only user visible changes are:
- fm and recording screens go by the statusbar setting (sbs or inbuilt)
- plugins go back to using the theme as they should for menus and lists
- splash screens might get cut a bit... entirely theme and splash dependant.. if there is a problematic one we can look at it later.
- hopefully nothing more than very minor screen flickerings... let me know exactly where they are so they can be fixed

New GUI screen rules:
* Screens assume that the theme (sbs+ui viewport+ maybe background image) are always enabled. They may be disabled on a per display basis, but MUST be re-enabled on exit
* Screens must not be coded in a way that requires a statusbar of any type.. the inbuilt bar will be removed shortly.
ALWAYS RESPECT THE USERS SETTINGS unless the screen requires the full display to fit.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23904 a1c6a512-1295-4272-9138-f99709370657
2009-12-09 07:25:46 +00:00
Rob Purchase
aee58ef956 Fix hiding the status bar in the touchscreen calibration screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23530 a1c6a512-1295-4272-9138-f99709370657
2009-11-04 23:57:37 +00:00
Rob Purchase
27f17877be Ensure touchscreen calibration setting is saved after change or reset.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23529 a1c6a512-1295-4272-9138-f99709370657
2009-11-04 23:44:27 +00:00
Thomas Martitz
0bd45b3622 Remove square brackets from the ID3 Viewer related language strings and generate them at runtime. This makes these lang strings actually usable for WPSes using the %Sx tag.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23434 a1c6a512-1295-4272-9138-f99709370657
2009-10-31 12:40:20 +00:00
Tomer Shalev
83d24f89df FS#10704 - Make a configuration option to disable USB HID
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23322 a1c6a512-1295-4272-9138-f99709370657
2009-10-23 13:29:19 +00:00
Tomer Shalev
6381fdc54d Remove redundant ata_mmc.h include in screens.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23279 a1c6a512-1295-4272-9138-f99709370657
2009-10-19 21:46:58 +00:00
Tomer Shalev
dc19343392 Fix red: Too aggressive exclusion of includes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23274 a1c6a512-1295-4272-9138-f99709370657
2009-10-19 21:28:18 +00:00
Tomer Shalev
5d585f4b9b Extract usb_screen logic out of screens.c into apps/gui/usb_screen.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23273 a1c6a512-1295-4272-9138-f99709370657
2009-10-19 21:19:30 +00:00
Tomer Shalev
9ea3da8fda FS#10692 - Viewpority USB screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23269 a1c6a512-1295-4272-9138-f99709370657
2009-10-19 20:06:51 +00:00
Tomer Shalev
3cc5345bc5 Use pointer instead of multiple access to array
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23249 a1c6a512-1295-4272-9138-f99709370657
2009-10-18 20:19:18 +00:00
Nils Wallménius
f34a841b0c Revise r23225 a bit, removing the debug_printf function and implementing more generic lcd_(remote)_putsf function(s) instead and use those in more places
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23233 a1c6a512-1295-4272-9138-f99709370657
2009-10-17 18:02:48 +00:00
Tomer Shalev
4f3d7b5bcb USB HID: Use different context for each mode; Use constant for each action;
Rework keymaps

This commit makes the code neater and more readable. It makes it easier to
modify keymap assignments and new keypad modes.
Some platforms had their keypad mappings reworked.
The manual is updated to reflect all these changes.
H10 remote control mapping dropped.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23219 a1c6a512-1295-4272-9138-f99709370657
2009-10-17 05:39:54 +00:00
Nils Wallménius
e1439fa010 fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23135 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 18:47:33 +00:00
Nils Wallménius
efdbcc114c Fix typo from r19579 that prevented this code from building, avoid copying lang strings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23134 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 18:11:37 +00:00
Tomer Shalev
71753a3290 Set time screen now supports RTL
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22987 a1c6a512-1295-4272-9138-f99709370657
2009-10-06 16:57:01 +00:00
Tomer Shalev
d996804600 Use pointer to screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22981 a1c6a512-1295-4272-9138-f99709370657
2009-10-06 08:32:37 +00:00
Tomer Shalev
fafd18c0f2 Use pointer to viewport
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22980 a1c6a512-1295-4272-9138-f99709370657
2009-10-06 08:20:12 +00:00
Tomer Shalev
9d9fe03a35 Remove USB mode displaying in non lcd-bitmap targets, as there are no such target which use USB HID
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22921 a1c6a512-1295-4272-9138-f99709370657
2009-10-04 16:12:34 +00:00
Tomer Shalev
de45938554 Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22916 a1c6a512-1295-4272-9138-f99709370657
2009-10-04 14:23:55 +00:00
Tomer Shalev
bcaa113179 Move definition of mode_name outside #ifdef
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22915 a1c6a512-1295-4272-9138-f99709370657
2009-10-04 14:16:32 +00:00
Tomer Shalev
753ca717b4 Remove 'USB Keypad Mode' from USB screen, and instead use 'Multimedia Mode',
'Presentation Mode', etc.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22911 a1c6a512-1295-4272-9138-f99709370657
2009-10-04 05:57:11 +00:00
Tomer Shalev
7d22099f2b Fix red of r22852
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22853 a1c6a512-1295-4272-9138-f99709370657
2009-09-30 10:32:21 +00:00
Tomer Shalev
8c5141b32e Commit "FS#10468 - USB HID: Show keypad mode on screen"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22852 a1c6a512-1295-4272-9138-f99709370657
2009-09-30 10:06:04 +00:00
Bertrik Sikken
69b40e704d Clean up duplicate #includes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22845 a1c6a512-1295-4272-9138-f99709370657
2009-09-27 14:46:44 +00:00
Thomas Martitz
1a28d40335 Fix up statusbar handling in the usb screen a bit more, using the GUI_EVENT_ACTIONUPDATE event instead of direct draw (with the custom statusbar patch in my mind), actually fix statusbar updates for the simulator version of the usb screen. Increase timeouts a bit too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22540 a1c6a512-1295-4272-9138-f99709370657
2009-08-29 17:41:00 +00:00
Thomas Martitz
1dec3e6772 Move a line up into the existing FOR_NB_SCREENS loop and add a comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22535 a1c6a512-1295-4272-9138-f99709370657
2009-08-29 15:22:14 +00:00
Thomas Martitz
cc1be6b766 More fixes for the usb screen: Use send_event(GUI_EVENT_REFRESH, NULL) to get rid of dead parts if the custom ui viewport is used as intended (it also redraws the statusbars additionally to clear&update). Redo the the statusbar handling to use the viewportmanager to properly force the remote statusbar on also.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22534 a1c6a512-1295-4272-9138-f99709370657
2009-08-29 15:17:16 +00:00
Teruaki Kawashima
5226a89cce Clear screen when leave usb screen so that usblogo doesn't remain on the screen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22531 a1c6a512-1295-4272-9138-f99709370657
2009-08-29 14:33:40 +00:00
Nils Wallménius
3200d04d75 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
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22440 a1c6a512-1295-4272-9138-f99709370657
2009-08-20 16:47:44 +00:00
Teruaki Kawashima
0a17284448 Fix type of variable statusbar in screens.c as global_settings.statusbar is integer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22439 a1c6a512-1295-4272-9138-f99709370657
2009-08-20 15:04:47 +00:00
Jens Arnold
eefe832785 Save a bit of binsize by using a more suitable datatype and making the array static.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22349 a1c6a512-1295-4272-9138-f99709370657
2009-08-16 17:35:36 +00:00
Frank Gevaerts
2dc50471ca Consolidate day of week calculation
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22258 a1c6a512-1295-4272-9138-f99709370657
2009-08-11 19:30:19 +00:00
Thomas Martitz
4764ee04c9 Add backdrop functions to the multiscreen api and add a enum backdrop_type parameter for different backdrops (main, wps), symplifying calls and removing dozens of #ifdefs (stubs added for non-backdrop displays that can't do backdrops).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22176 a1c6a512-1295-4272-9138-f99709370657
2009-08-06 00:14:40 +00:00
Nils Wallménius
0a51d3915c Remove redundant definitions of SCROLLBAR_WIDTH
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22114 a1c6a512-1295-4272-9138-f99709370657
2009-08-02 15:44:40 +00:00
Frank Gevaerts
e409fba7f8 Flyspray: FS#10326
Author: Tomer Shalev

Adds a USB HID sample application, a plugin tha allows to send HID commands while connected in non-storage mode.
This also removes the HID stuff in the debug menu. Testing is now easily doable from the plugin
Also general HID updates


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21953 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 12:58:29 +00:00
Maurus Cuelenaere
b8435f5446 Touchscreen targets: add calibration screen + rewrite calibration driver (FS#10295)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21312 a1c6a512-1295-4272-9138-f99709370657
2009-06-16 17:04:47 +00:00
Jens Arnold
1d6df54df2 Convert a number of places in core and plugins to use the BIT_N() macro instead of 1<<n. Speeds up things on SH1, and also reduces core binsize. Most notable speedups: 1 bit lcd driver: drawpixel +20%, drawline + 27%, hline +5%; jpeg viewer: +8% for 1/8 scaling. Other targets are unaffected.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21205 a1c6a512-1295-4272-9138-f99709370657
2009-06-07 21:27:05 +00:00
Frank Gevaerts
13c6086b71 Fix wrong #ifdefs that sneaked in
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21056 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 15:05:01 +00:00
Frank Gevaerts
08fb988e87 Add HID keymap handling in usb screen. This allows to use the DAP as a keypad to control the PC. The current keymaps are audio-oriented (play/pause/volume/...) (FS#10218 by Tomer Shalev)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21054 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 14:42:54 +00:00
Maurus Cuelenaere
71e1941833 Touchscreen targets: fix time-set screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21011 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 13:10:55 +00:00
Bertrik Sikken
0023943439 Fix duplicate #includes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20977 a1c6a512-1295-4272-9138-f99709370657
2009-05-17 14:50:19 +00:00
Frank Gevaerts
a435c407ac Don't allow disconnecting from the usb screen, as this doesn't work properly on some OSes (e.g. windows "releases" the device whenever it's not actively reading or writing, which doesn't necessarily mean it's safe to disconnect at that point)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20911 a1c6a512-1295-4272-9138-f99709370657
2009-05-11 19:36:10 +00:00
Bertrik Sikken
dccdce6c3c Remove unnecessary #include "adc.h"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20791 a1c6a512-1295-4272-9138-f99709370657
2009-04-25 22:24:59 +00:00
Frank Gevaerts
fbe96bf2c9 don't define handle_usb_events() for the simulators
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20313 a1c6a512-1295-4272-9138-f99709370657
2009-03-12 22:28:24 +00:00
Frank Gevaerts
aa1a99c9b9 Make handle_usb_events() static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20310 a1c6a512-1295-4272-9138-f99709370657
2009-03-12 22:15:51 +00:00