Commit graph

251 commits

Author SHA1 Message Date
Jonathan Gordon
95be4febc8 doh! fix yellow.
remove the calls to stop_scroll(), clear_viewport() does that

nothing should be using screens[].nb_lines anymore... change the list code to be a good example. (playlist_viewer is the last thing using it which needs fixing)



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17456 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 14:08:46 +00:00
Jonathan Gordon
aff220c9f5 and the time/date screen...
also change the order the yes/no screen clears the viewport.. stop_scroll should be called before clear or you might get artifacts


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17455 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 13:59:27 +00:00
Nicolas Pennequin
357ffb3c46 Convert the whole codebase to UTF-8, except docs/COMMITTERS and tools/creative.c, which need checking.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17369 a1c6a512-1295-4272-9138-f99709370657
2008-05-05 10:32:46 +00:00
Jonathan Gordon
8e57ede59f move the pitchscreen out of screens.c.. no functional changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17365 a1c6a512-1295-4272-9138-f99709370657
2008-05-05 07:07:19 +00:00
Jonathan Gordon
ea664e0647 Viewported quickscreen (take 2 :D) (FS#8553)
- no customization support
- no top item
- much better use of the screen
- deprecates 20 odd lang strings (the QS can now use the regular lang strings and user font)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17315 a1c6a512-1295-4272-9138-f99709370657
2008-05-03 12:30:40 +00:00
Nils Wallménius
33c44461e1 Const police raid, making a lot of pointers to lang strings const and removing some ugly casting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17251 a1c6a512-1295-4272-9138-f99709370657
2008-04-26 09:30:24 +00:00
Nils Wallménius
6848961aa5 Pass the buffer length to the list_get_name callback functions instead of using hardcoded MAX_PATH
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17049 a1c6a512-1295-4272-9138-f99709370657
2008-04-09 15:25:17 +00:00
Dave Chapman
d746b79317 Remove unnecessary (and incorrect) #ifdefs surrounding #include "backdrop.h", and correct remaining references to HAVE_LCD_REMOTE to HAVE_REMOTE_LCD
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16873 a1c6a512-1295-4272-9138-f99709370657
2008-03-29 01:14:10 +00:00
Jonathan Gordon
5ca1539969 the menu and list now accepts a parent viewport to draw in (and the menu can be told to not show status/button bars). This lays the groundwork to fix colour problems with plugin menus (see star.c for an example.) This hopefully fixes some button bar issues as well as theme problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16812 a1c6a512-1295-4272-9138-f99709370657
2008-03-26 03:35:24 +00:00
Paul Louden
f7c938a7b7 (Hopefully) Revert the quickscreen changes. Many fixes need to be made,
and the exact implementation needs discussion. We apologize for the 
inconvenience and hope to bring an improved quickscreen to you soon.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16224 a1c6a512-1295-4272-9138-f99709370657
2008-02-05 09:09:38 +00:00
Jonathan Gordon
2c82494e66 updated the quickscreen's:
- use viewports
- dont change to system font, fiddle with item positions to make them fit small screens
- user customizable options (use the .cfg settings "quickscreen_left, quickscreen_right, quickscreen_top, quickscreen_bottom" for the name and the .cfg name for the setting you want to use. it can be any except the string settings... (e.g. quickscreen_left:talk menu)
- a top item! if there is none set the up button will exit the screen



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16220 a1c6a512-1295-4272-9138-f99709370657
2008-02-05 05:50:20 +00:00
Nils Wallménius
2e2cbfe4ac #ifdef out unused function to fix warning for non rtc and non bitmap targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15757 a1c6a512-1295-4272-9138-f99709370657
2007-11-22 19:56:57 +00:00
Nils Wallménius
7567e99d61 Simplify code for set time and date screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15756 a1c6a512-1295-4272-9138-f99709370657
2007-11-22 19:46:27 +00:00
Nils Wallménius
23078a34d8 Fix FS#8114 remove redundant screen updating and minor code police.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15531 a1c6a512-1295-4272-9138-f99709370657
2007-11-08 14:36:09 +00:00
Jonathan Gordon
5cab5dab0e fix red
fix Björn's name in the (c)
fix FS#8105 - backing out of the submenus in the context menus shuoldnt leave the context menu completly (expect playlist which possibly makes sense?)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15513 a1c6a512-1295-4272-9138-f99709370657
2007-11-07 10:06:21 +00:00
Jonathan Gordon
c14430a9c1 compile talk.c on hwcodec sim. it wont actually talk though
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15512 a1c6a512-1295-4272-9138-f99709370657
2007-11-07 09:28:07 +00:00
Jonathan Gordon
51b75d5d3d fix warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15511 a1c6a512-1295-4272-9138-f99709370657
2007-11-07 07:25:45 +00:00
Stéphane Doyon
22e3d56940 Accept FS#7777: Voice for the "Running Time" screen
(slightly simplified).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15509 a1c6a512-1295-4272-9138-f99709370657
2007-11-07 03:58:13 +00:00
Magnus Holmgren
0e2852bca1 Detabify a line...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15342 a1c6a512-1295-4272-9138-f99709370657
2007-10-28 12:47:49 +00:00
Steve Bavin
fda41b892e Try and save some bytes, seeing as we already assumed LANG_ constants for month and weekday names are contiguous.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15289 a1c6a512-1295-4272-9138-f99709370657
2007-10-24 15:34:36 +00:00
Jonathan Gordon
1e45eecb23 fix up the (c) notice
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15288 a1c6a512-1295-4272-9138-f99709370657
2007-10-24 14:40:58 +00:00
Steve Bavin
072a3c5017 Complete info screen voicing; now consistent with displayed screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15284 a1c6a512-1295-4272-9138-f99709370657
2007-10-24 12:32:12 +00:00
Nils Wallménius
537b27d58f Save a few bytes by changing unit selection strategy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15283 a1c6a512-1295-4272-9138-f99709370657
2007-10-24 10:29:45 +00:00
Steve Bavin
32a9575130 FS#7994 - Rename talk.c API, make talk_disable() affect all talking (not just menus), hopefully save some space.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15206 a1c6a512-1295-4272-9138-f99709370657
2007-10-19 15:31:42 +00:00
Michael Sevakis
a9b2fb5ee3 Finally full multicore support for PortalPlayer 502x targets with an eye towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
2007-10-16 01:25:17 +00:00
Jonathan Gordon
cf1cef5f57 minor update to gui_synclist_do_button() which will hopefully simplify things later.
Now returns true if the action was handled in that function instead of returning the handled action.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14733 a1c6a512-1295-4272-9138-f99709370657
2007-09-17 10:08:50 +00:00
Jens Arnold
022d026594 Player: Make sure the USB screen disables double height.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14389 a1c6a512-1295-4272-9138-f99709370657
2007-08-18 12:36:15 +00:00
Jens Arnold
1d1d9a8491 Switch to using millivolt for battery voltage and other internal voltages. * Fix debug voltage history display. * Some code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14364 a1c6a512-1295-4272-9138-f99709370657
2007-08-15 23:57:27 +00:00
Nils Wallménius
f28da1a35a Enable a lot more features for simulators and add stubs where necessary, simulators should now work with identical lng and voice files as the respective target
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14299 a1c6a512-1295-4272-9138-f99709370657
2007-08-12 19:49:03 +00:00
Magnus Holmgren
ead3de3281 Fix display of file path in the ID3 Info screen on hwcodec (i.e., Archos) devices, introduced by the grouping tags patch. Also correct a comment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14243 a1c6a512-1295-4272-9138-f99709370657
2007-08-08 12:34:19 +00:00
Dan Everton
eecfe9f1cb Add support for grouping tags. From FS#7362.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14242 a1c6a512-1295-4272-9138-f99709370657
2007-08-08 10:19:56 +00:00
Nils Wallménius
b311367481 *** Lang v2 cleanup (FS#6574) ***
1) Introduces apps/features.txt that controls which strings are included 
for each target based on defines.
2) .lng and .voice files are now target specific and the format versions 
of both these file types have been bumped, which means that new voice 
files are needed. 
3) Use the 'features' mechanism to exclude strings for targets that 
didn't use them.
4) Delete unused and deprecated and duplicated strings, sort strings in 
english.lang

Some string IDs were changed so translations will be slightly worse than 
before.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14198 a1c6a512-1295-4272-9138-f99709370657
2007-08-05 19:19:39 +00:00
Dan Everton
f4a61f0c4a Add support for parsing the disc number tag from metadata and use of it in the database. Patch originally from FS#4961 with some minor tweaks by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14154 a1c6a512-1295-4272-9138-f99709370657
2007-08-03 10:00:42 +00:00
Barry Wardell
8a52d70bb0 FS#6403: Fix the spelling of LANG_ID3_FREQUENCY. Shouldn't break old .lng files since we are not changing the order of the strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14042 a1c6a512-1295-4272-9138-f99709370657
2007-07-28 16:32:24 +00:00
Nils Wallménius
22bc7de528 Prevent statusbar from flickering in the 'Set Time/Date' screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13972 a1c6a512-1295-4272-9138-f99709370657
2007-07-24 20:22:23 +00:00
Jens Arnold
c897c241d9 Recorder V1: repair soft shutdown with the new action context handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13957 a1c6a512-1295-4272-9138-f99709370657
2007-07-22 13:08:00 +00:00
Jonathan Gordon
f7675a244b remove the need for action_signalscreenchange().
Fixes problems with targets where the ACTION_STD_CANCEL event is a combo


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13956 a1c6a512-1295-4272-9138-f99709370657
2007-07-22 06:05:53 +00:00
Nils Wallménius
aedf68a02f Fix 'Set time & date' screen display when the name of the day or month was not 3 letters long (german language uses 2 for days) also fix displaying of unicode and clean up code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13949 a1c6a512-1295-4272-9138-f99709370657
2007-07-21 08:28:48 +00:00
Jonathan Gordon
3d73b8eb16 Use the multi-screen api in the usb and time screens
usb screen forces the status bar to display (fixes FS#700)
time screen is now usable on the lcd remotes (need keymaps for the m5/x5)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13903 a1c6a512-1295-4272-9138-f99709370657
2007-07-15 10:30:11 +00:00
Nils Wallménius
3f8c075f24 ifdef out charging screen for targets that do not use it, + minor cleaning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13820 a1c6a512-1295-4272-9138-f99709370657
2007-07-08 15:32:56 +00:00
Nils Wallménius
ede373108a Remove useless #ifdef, specify maximum field width for strings in the snprintf() call
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13766 a1c6a512-1295-4272-9138-f99709370657
2007-07-02 19:52:19 +00:00
Nils Wallménius
2e80610c36 "Set Time/Date" screen.
* Make selection drawn in reversed fg/bg colors.
* Clean up code to make it more readable and drop binsize a bit too.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13753 a1c6a512-1295-4272-9138-f99709370657
2007-07-01 12:08:45 +00:00
Michael Sevakis
1167e3c72f Accept FS#7134 - Sansa: external sd card support by Antonius Hellmann with some tweaks. All testers have given the green light. (Now for the RED ?? ;).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13741 a1c6a512-1295-4272-9138-f99709370657
2007-06-30 02:08:27 +00:00
Steve Bavin
24d9f59c78 When recording, disable voice menus without actually modifying user settings. Patch FS#7272, fixes bug FS #6163
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13615 a1c6a512-1295-4272-9138-f99709370657
2007-06-11 08:28:38 +00:00
Dave Chapman
6c31a9a9d3 Backdrop code should now be surrounded by #if LCD_DEPTH > 1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13570 a1c6a512-1295-4272-9138-f99709370657
2007-06-06 17:30:01 +00:00
Magnus Holmgren
2a20bfe153 Make the ID3 info screen treat empty tag strings as 'no value', like the WPS does.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13305 a1c6a512-1295-4272-9138-f99709370657
2007-05-02 17:01:02 +00:00
Nicolas Pennequin
1cf2ec38b1 Change some ifdefs for the recent backdrop changes (fixes the yellow builds) and move the backdrop files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13265 a1c6a512-1295-4272-9138-f99709370657
2007-04-25 22:08:00 +00:00
Nicolas Pennequin
7fdfa56454 Add backdrop support for LCD remotes with depth > 1-bit. Only WPS backdrops, but the groundwork is laid for main backdrops too (all that's really needed are menus to set/clear them).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13263 a1c6a512-1295-4272-9138-f99709370657
2007-04-25 21:44:56 +00:00
Dominik Riebeling
a3f1e9f3cb Oops. Shouldn't forget the default handler.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13101 a1c6a512-1295-4272-9138-f99709370657
2007-04-10 21:40:44 +00:00
Dominik Riebeling
339d812062 make the runtime view nicer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13100 a1c6a512-1295-4272-9138-f99709370657
2007-04-10 20:56:15 +00:00