Commit graph

529 commits

Author SHA1 Message Date
Daniel Stenberg
cd8a9a043f Menu for menu functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1950 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 12:47:59 +00:00
Daniel Stenberg
aa458aa9d8 MENU_DISK_CHANGED is the new value for telling disk content might have
changed


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1949 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 12:41:25 +00:00
Daniel Stenberg
b285076925 Remade the menu system slightly. All functions invoked from menus now use
the Menu typedef as return type, and *ALL* menus that intercept USB connect
can then return MENU_REFRESH_DIR so that the parent (any parent really) that
do file or dir-accesses knows that and can do the refresh. If no refresh
is needed by the parent, MENU_OK is returned.

Somewhat biggish commit this close to 1.3, but we need to sort out this
refresh-after-usb-connected business.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1948 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 12:32:52 +00:00
Robert Hak
ad4a92eb87 stupid tabs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1947 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 11:37:40 +00:00
Robert Hak
f27fecb076 minor style fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1946 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 11:31:19 +00:00
Markus Braun
d58dab8dd8 restore was allwas true. Set it to false when last restore request was
handled.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1945 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 11:06:14 +00:00
Daniel Stenberg
e6261734a0 two fixes at once:
1. If the WPS is popped up but the mpeg thread can't play any song, we must
   make sure to update the screen to display the "end of playlist" thing.

2. When having reached the "end of playlist" state, pressing LEFT caused a
   crash (due to a NULL pointer being used).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1942 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 08:06:39 +00:00
Daniel Stenberg
3625dedcce playlist_next() now returns NULL on excessive 'step' amounts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1940 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 07:33:35 +00:00
Justin Heiner
0a3589d129 OK, a (hopefully) successful attempt at getting rid of the yellows that I created by removing the other yellows
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1938 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:45:39 +00:00
Justin Heiner
edf6b80547 Forgot to #ifdef something
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1937 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:26:22 +00:00
Justin Heiner
d6a0f6ccd9 Fixed a problem with my #define CUSTOM_WPS - It didn't lower the menu items to 4 from 5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1936 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:19:47 +00:00
Justin Heiner
2630245cb9 Added NSauzede's patch to detect USB while in a Menu. It also adds the USB icon to the player while in USB mode.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1935 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 02:17:00 +00:00
Daniel Stenberg
634551ffeb statusbar bug fix when going to the menu from the dir browser
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1933 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 22:53:12 +00:00
Daniel Stenberg
a8e89fd693 when we want to stop the scroll and clear the screen, it is a lot better
to first pause the scroll (stop puts back text on screen) and then clear
the screen.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1931 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 21:45:22 +00:00
Daniel Stenberg
053d904645 Bill Napier's patch slightly remodelled. This adds a setting called
"Show hidden files" that if enabled will show files with the hidden
attribute and/or starting with a dot in the dir browser. If the setting
is set to Off, files/dirs starting with a dot or that have the hidden
attribute set will be... yes, hidden.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1926 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 15:47:30 +00:00
Justin Heiner
1a8f34bfa9 Changed CUSTOM_WPS to be a define-only feature until it is more complete. To include it, simply uncomment the #define CUSTOM_WPS line in wps.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1924 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 14:19:47 +00:00
Daniel Stenberg
487662a67c fix file name pointer usage, clean the buffer faster, don't use extra
variable


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1921 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 07:12:45 +00:00
Justin Heiner
ad14c5b14e Flipped a line to make it work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1917 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 06:38:20 +00:00
Justin Heiner
6dd8b83507 Attempt at fixing reds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1916 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 06:25:14 +00:00
Daniel Stenberg
11714aceab fixed compiler error
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1914 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 05:30:07 +00:00
Justin Heiner
70a203341f Added conditional Title-Artist to appease PsycoXul :-) It's bound to %h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1913 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 04:03:57 +00:00
Justin Heiner
b10017e3e8 Added %% as an available tag to the Custom WPS. Displays % when used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1909 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 03:02:59 +00:00
Justin Heiner
b986a5c6b7 Added ability to have a Custom WPS Display on the Player. See the commited doc for the tag specification
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1903 a1c6a512-1295-4272-9138-f99709370657
2002-08-22 02:24:14 +00:00
Justin Heiner
7dcff6d98c Changed the previous patch to restart the same song if over 2 seconds to 3 seconds. That way you can hear a bit of the song before... well, it's just better this way *grin*
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1902 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 23:24:26 +00:00
Björn Stenberg
0c2e9f21e3 Stays in pause mode after seek
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1896 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 17:38:56 +00:00
Eric Linenberg
84cf9d446c Lee Marlow's patch to restart the same song if the back button is hit in the wps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1895 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 17:34:01 +00:00
Daniel Stenberg
82340129a6 made the main menu have a USB selection when built for simulator so that
we can simulate the USB stuff at least basicly


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1893 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 17:26:12 +00:00
Daniel Stenberg
01bc8e682a play_list() is now modified to accept a playlist index that is either
meant in the unshuffled list or in the shuffled. There's an extra
parameter giving that info (which of course only makes sense when
shuffle is enabled).

This should make resume work with play-all-dir in shuffled mode.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1889 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 15:08:01 +00:00
Mats Lidell
fa54e94a7a Ignore recorder playmode states.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1880 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 11:51:24 +00:00
Markus Braun
a2feb8b4c8 Fix for fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1879 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 11:40:34 +00:00
Markus Braun
c6c848e91b Fixed wps usb bug. Before rockbox switched not to usb mode when cable was
pluged.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1870 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 11:08:49 +00:00
Mats Lidell
6866cef936 Added icons for charcell simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1857 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 10:43:31 +00:00
Robert Hak
e2580f6f11 lets point to the docs dir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1849 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 10:25:16 +00:00
Daniel Stenberg
a816e4624a store the correct index in the resume info when we fire up a single song in a
directory


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1838 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 08:13:58 +00:00
Markus Braun
6110c98234 Consolidated display restore code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1836 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 06:40:06 +00:00
Markus Braun
c7aaca4615 Make use of the fixed lcd_getstringsize() for prop fonts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1835 a1c6a512-1295-4272-9138-f99709370657
2002-08-21 06:23:23 +00:00
Markus Braun
a0300f5d7e corrected lcd margins for debug menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1831 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 22:13:20 +00:00
Markus Braun
11d208ca85 calculate the string width for numerical volume display and time display in
status bar.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1828 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 20:32:08 +00:00
Markus Braun
861eac8aea corrected display of values when entering a setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1827 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 20:30:32 +00:00
Björn Stenberg
1b05752a3f Always remove double-height when resuming
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1826 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 20:27:36 +00:00
Markus Braun
faacfea055 faster redraw of time display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1825 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 20:00:44 +00:00
Markus Braun
59429dab9d Define instead of a number.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1824 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 19:40:35 +00:00
Markus Braun
c41dcb9ae9 Now using lcd margins instead of a line offset for displaying status bar.
Needed to support fonts smaller than 8 pixels.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1823 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 19:39:55 +00:00
Markus Braun
5e4c1d2ad8 enabled status bar in menus on recorders
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1822 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 19:37:00 +00:00
Björn Stenberg
65fb5f57dc status_draw() now uses lcd_update_rect()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1820 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 14:33:02 +00:00
Daniel Stenberg
ef3a3e7093 use the gcc option -ffreestanding: (quote from the gcc man page)
"A freestanding environment is one in which the standard library may not
exist, and program startup may not necessarily be at "main".  The most obvious
example is an OS kernel."


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1818 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 14:00:42 +00:00
Heikki Hannikainen
3c10db57c6 Use same updated method for delta calculation as powermgmt.c uses (maybe
it should go into a function after all).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1817 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 13:38:14 +00:00
Justin Heiner
97e4a8fbef Added draw_screen(id3) after volume change. Fixed bug in player WPS ID3 Info screen. It needed dont_go_to_menu = true and menu_button_is_down = false.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1816 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 13:10:43 +00:00
Heikki Hannikainen
bd32dee3b9 Use correct offset (0x14 instead of 0x18) when clearing the RTC user RAM space
when F2 is pressed in RTC RAM viewer.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1815 a1c6a512-1295-4272-9138-f99709370657
2002-08-20 08:43:03 +00:00
Daniel Stenberg
5e5f1e247b When shuffle is ENABLED. And you press PLAY in a dir, the selected song
is now the first song to get played. To do this, we first remember which
song that was selected, shuffle the list and then find the selected song
in the shuffled list and play that.

This will have some interesting side effects if the song ends up for example
last in the shuffled list when we consider not always doing repeat-all as
then it'll reach the end of the playlist after one song.

We could optionally put the selected song first in the playlist and then
shuffle all the rest, as that would possibly be closer to what people will
assume it will do.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1803 a1c6a512-1295-4272-9138-f99709370657
2002-08-19 12:45:01 +00:00