Commit graph

178 commits

Author SHA1 Message Date
Linus Nielsen Feltzing
ae75ea8858 Patch #1016041 by Eric Lassauge
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5561 a1c6a512-1295-4272-9138-f99709370657
2005-01-13 10:48:44 +00:00
Linus Nielsen Feltzing
e88f8b1ffe Deleting the last menu item no longer gives a negative cursor position
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5307 a1c6a512-1295-4272-9138-f99709370657
2004-10-19 09:07:08 +00:00
Jens Arnold
1f0908dfaf Removed button bar for devices with no F buttons (Ondio)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5237 a1c6a512-1295-4272-9138-f99709370657
2004-10-09 20:54:15 +00:00
Björn Stenberg
d6b47ece14 Don't exit menus on repeat.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5167 a1c6a512-1295-4272-9138-f99709370657
2004-10-05 06:35:54 +00:00
Björn Stenberg
6c33c51a4c Redesigned the button handling. The code now uses symbolic function defines instead of checking for specific buttons. This makes it easier to add support for new devices with different button layouts.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5091 a1c6a512-1295-4272-9138-f99709370657
2004-09-19 21:58:37 +00:00
Jens Arnold
8fb336148f Const policed pointer arguments to functions, part 3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4999 a1c6a512-1295-4272-9138-f99709370657
2004-08-18 01:09:31 +00:00
Linus Nielsen Feltzing
ade5d7b848 First step in revamping the USB event handling, paving the way for the upcoming SYS_POWER_OFF event
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4951 a1c6a512-1295-4272-9138-f99709370657
2004-07-26 16:06:59 +00:00
Jörg Hohensohn
b1403ee024 New way of defining menus and options allows to declare them static const, which saves the code to runtime-assemble them. Rockbox just got 6 KB smaller.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4931 a1c6a512-1295-4272-9138-f99709370657
2004-07-23 23:01:20 +00:00
Linus Nielsen Feltzing
82586a69e6 Added menu_insert()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4826 a1c6a512-1295-4272-9138-f99709370657
2004-07-05 14:26:58 +00:00
Linus Nielsen Feltzing
49ea16e2eb Fixed the bug that caused the menu cursor to start at the first line every time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4500 a1c6a512-1295-4272-9138-f99709370657
2004-04-14 06:04:38 +00:00
Linus Nielsen Feltzing
361dd29cad Cleaned up the menu drawing code, and fixed a bug where the menu entry wasn't spoken if the menu scrolled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4481 a1c6a512-1295-4272-9138-f99709370657
2004-04-09 17:47:18 +00:00
Jörg Hohensohn
3aa99e14cd Step 4 of voice UI:
- "talkbox" functionality added, but yet without thumbnail recording
- menu under "general settings" to configure voice
- directories and folders can be voiced as a numbers


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4440 a1c6a512-1295-4272-9138-f99709370657
2004-03-27 00:11:01 +00:00
Linus Nielsen Feltzing
77936e6ec5 First shot at a nice little button bar at the bottom of the recorder LCD. Enable Button Bar in the Display settings. Only the dir browser uses it at the moment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4391 a1c6a512-1295-4272-9138-f99709370657
2004-03-16 13:44:56 +00:00
Jörg Hohensohn
4f36ea8fbf First step of the voice-UI: the menus can talk. You need a "voicefont" file in .rockbox to use this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4381 a1c6a512-1295-4272-9138-f99709370657
2004-03-14 21:33:53 +00:00
Linus Nielsen Feltzing
10b92c44b3 First step towards context sensitive and configurable menus, by Brent Coutts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4370 a1c6a512-1295-4272-9138-f99709370657
2004-03-12 10:20:33 +00:00
Hardeep Sidhu
107ebc5ba9 Modified playlist handling to allow for multiple playlists to be edited at the same time. Added support in playlist viewer for viewing/editing playlists on disk (accessed via ON+PLAY->Playlist->View on a playlist). Added menu in playlist viewer for changing a few settings and saving playlist. Added File Options menu in playlist viewer ON+PLAY menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4276 a1c6a512-1295-4272-9138-f99709370657
2004-01-26 17:05:21 +00:00
Björn Stenberg
461d6e347e Added a splash to indicate battery charging if user tries to shut off while plugged in.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4104 a1c6a512-1295-4272-9138-f99709370657
2003-12-04 00:08:25 +00:00
Daniel Stenberg
1c8f80a0cb yellow build is bad
green build is good


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4056 a1c6a512-1295-4272-9138-f99709370657
2003-11-20 07:48:57 +00:00
Linus Nielsen Feltzing
f1659a3957 Wrapping backwards in menus didn't work well when using a large font
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4055 a1c6a512-1295-4272-9138-f99709370657
2003-11-20 01:51:15 +00:00
Björn Stenberg
d1a6fa113d Addded option to hide icons in dir browser. (Patch #728377)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3731 a1c6a512-1295-4272-9138-f99709370657
2003-06-05 09:38:26 +00:00
Björn Stenberg
942bc9449e Only redraw the status line when info actually changed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3588 a1c6a512-1295-4272-9138-f99709370657
2003-04-23 11:26:25 +00:00
Linus Nielsen Feltzing
e43b78ac46 Magnus Öman's long awaited inverted cursor patch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3565 a1c6a512-1295-4272-9138-f99709370657
2003-04-16 00:12:31 +00:00
Björn Stenberg
074ca2eeb6 Bug fix: Menu returned wrong value if USB was connected during menu->f2/f3.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3435 a1c6a512-1295-4272-9138-f99709370657
2003-03-12 20:06:51 +00:00
Kjell Ericson
5cd393c772 New onplay-menu for the Player.
The menu_run() function is split into two functions, where the new menu_run() works like before, and the new function menu_show() returns the menu item number you selected.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3180 a1c6a512-1295-4272-9138-f99709370657
2003-01-29 08:26:11 +00:00
Kjell Ericson
767d604bcd Removed unnecessary calls to lcd_stop_scroll().
Changed all lcd_scroll_pause() to lcd_stop_scroll().
Updated the tree system for new scroll-behaviour.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3154 a1c6a512-1295-4272-9138-f99709370657
2003-01-23 14:28:16 +00:00
Daniel Stenberg
541fa6ac3a menu_run() does not need to do lcd_update()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3089 a1c6a512-1295-4272-9138-f99709370657
2003-01-15 08:32:56 +00:00
Kjell Ericson
c11b90fa49 Adapted player code for new Rocklatin character set.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3051 a1c6a512-1295-4272-9138-f99709370657
2003-01-10 09:55:50 +00:00
Mats Lidell
1873987315 Use status_set...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2661 a1c6a512-1295-4272-9138-f99709370657
2002-10-15 12:56:05 +00:00
Linus Nielsen Feltzing
0a4b247080 The player firmware now autodetects the LCD type. No need for two player versions anymore
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2658 a1c6a512-1295-4272-9138-f99709370657
2002-10-15 12:25:57 +00:00
Robert Hak
749ae8adae f2 quickscreen now reachable from f1 menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2613 a1c6a512-1295-4272-9138-f99709370657
2002-10-14 09:42:55 +00:00
Mats Lidell
d21d179010 Special case for simulator removed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2576 a1c6a512-1295-4272-9138-f99709370657
2002-10-11 11:07:17 +00:00
Björn Stenberg
8fb7312650 Only show scrollbar when needed. (Björn Fischer)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2406 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 19:41:23 +00:00
Björn Stenberg
a4c3b03f15 Removed lcd_getfontsize(). Removed font parameters to lcd_putsxy and lcd_getstringsize.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2403 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 18:04:15 +00:00
Björn Stenberg
b1b8bd4dd1 Moved on_screen, f2_screen, f3_screen and handle_usb (renamed usb_screen) to a new file: screens.c.
typedef Menu replaced with a bool.
All code now calls usb_screen() for usb handling.
Nearly all code now deals with USB connect/disconnect properly.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2401 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 17:22:12 +00:00
Björn Stenberg
b0cd912f55 Added proper quickscreen to F3 in menus
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2399 a1c6a512-1295-4272-9138-f99709370657
2002-09-24 14:52:23 +00:00
Björn Stenberg
bed3d3f7e0 New full ISO-8859-1 system font.
Added font loading from dir browser.
Changed default font location to /.rockbox/default.fnt.
Code-policed font code.
Removed old font tools.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2347 a1c6a512-1295-4272-9138-f99709370657
2002-09-20 08:07:51 +00:00
Eric Linenberg
038df5cdc9 Daniel,
The following patch makes loadable fonts actually work (finally!).
It took me quite a while, but I finally figured out why the sim
worked and the target didn't: the SH1 processor won't read
longwords from a shortword alignment... I had to rev the .fnt
file to version 1.1 (requires remaking *.fnt files) in order
to fix this.  Please apply the following patch completely.
It's diffed against the latest CVS.

I've also attached rockbox-fonts-1.1.tar.gz which includes
known working *.fnt files, including a courB08 system.fnt,
for demonstration.

Now the real work can begin...  Although the new
system.fnt will work fine, if you try going to a really
big font (try copying courB14.fnt to system.fnt), then
you will find that it comes up and works in tree mode,
but will crash the system when going into WPS
mode...  I'm sure this is because of the low-level
lcd_bitmap not clipping properly when given a too-large
bitmap, which the characters become.  I haven't yet
tried to debug the low-level driver.  Of course, it all
works on the sim...

So the apps developers will now have to make sure that
all apps screen sizes may vary according to the loaded font.
The font height can be gotten through the lcd_getfontsize API.

Files patched in fonts-6.patch

1. apps/menu.c - LCD_PROPFONTS error (2nd resubmission on this, please checkin)

2. firmware/font.c - fixes and reformatting.  Please check this in as is,
my vi editor requires more reformatting changes since I left tabs in the
file, these are removed now (2nd resubmission on this, please checkin)

3. firmware/fonts.h - doc change on .fnt file format, .fnt version
number incremented.

4. firmware/loadfont.c - fixes to load font properly, typedefs
removed.

5. firmware/system.c - lcd_setfont(FONT_SYSFIXED) before
issuing error, otherwise font may not exist.

6. tools/bdf2c - fixes for correct output when filename starts
with a number, as well as when no DEFAULT_CHAR in .bdf
file.  (2nd resubmission on this, please checkin)

7. tools/writerbf.c - fixes for bugfixed fontfile format.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2294 a1c6a512-1295-4272-9138-f99709370657
2002-09-16 03:18:49 +00:00
Daniel Stenberg
93b231c693 Greg Haerr's new loadable font. No more #ifdef font-style, removed old
propfont and loadable font code. New font file format.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2269 a1c6a512-1295-4272-9138-f99709370657
2002-09-12 13:33:59 +00:00
Björn Stenberg
3b97474978 lcd_puts() now clears to end-of-line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2252 a1c6a512-1295-4272-9138-f99709370657
2002-09-09 23:57:00 +00:00
Eric Linenberg
c076b27dfc Added menu wrap. It works on the recorder, but I can't test on the player... hopefully it plays okay!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2165 a1c6a512-1295-4272-9138-f99709370657
2002-09-04 04:21:10 +00:00
Björn Stenberg
90851c5492 Clear button queue when leaving menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2135 a1c6a512-1295-4272-9138-f99709370657
2002-09-02 14:50:37 +00:00
Björn Stenberg
40d866bd9e Fixed build errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2113 a1c6a512-1295-4272-9138-f99709370657
2002-09-01 20:08:08 +00:00
Justin Heiner
b5025a8c40 USB Related:
Consolidated some more of the USB code in the WPS.
    Have backlight turn offf when USB Connected.
menu.c:
    LINE_X was set wrong for player.
settings_menu.c / wps-display.c:
    Added 1 Line ID3+. Has progress bar & Kbps.
    Renamed some of the WPS options to be more readable.
wps.c / wps-display.c
    Fixed problem with FF/REW when 'Remaining Time' is on.
    Added %pb to the WPS mix. Player progress bar thingy.
    Thanks to whoever fixed my PLAYER_PROGRESS function :-)
    Changed how volume changes on player (works better now).
    General cleanup of Custom WPS code.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2091 a1c6a512-1295-4272-9138-f99709370657
2002-08-31 04:58:35 +00:00
Markus Braun
000c2db035 Added scrollbar to tree view and menus.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2084 a1c6a512-1295-4272-9138-f99709370657
2002-08-30 13:49:32 +00:00
Daniel Stenberg
49984facc1 properly remember DISK_CHANGE status and return that to menu parents,
also when coming back from the USB screen set back the status bar state
before redrawing the menu.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1953 a1c6a512-1295-4272-9138-f99709370657
2002-08-23 12:57:00 +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
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
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
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
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
71f71ef837 Removed warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1667 a1c6a512-1295-4272-9138-f99709370657
2002-08-11 09:20:53 +00:00
Björn Stenberg
cd225736f9 First version of loadable fonts patch by Alex Gitelman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1666 a1c6a512-1295-4272-9138-f99709370657
2002-08-11 09:17:47 +00:00
Björn Stenberg
cbc717941d Added key repeat for up/down on recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1660 a1c6a512-1295-4272-9138-f99709370657
2002-08-10 09:04:55 +00:00
Daniel Stenberg
7cdf5c8cab player sim uses big font now, adjust the cursor routine
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1634 a1c6a512-1295-4272-9138-f99709370657
2002-08-09 09:13:00 +00:00
Linus Nielsen Feltzing
8fa021785b Scrolling menus by Justin Heiner
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1515 a1c6a512-1295-4272-9138-f99709370657
2002-08-02 07:59:25 +00:00
Linus Nielsen Feltzing
a552f4c99d Menus now also exits with F1 on recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1468 a1c6a512-1295-4272-9138-f99709370657
2002-07-27 19:53:26 +00:00
Daniel Stenberg
c4be1ee9f9 simulated player text lines are moved down 8 pixels to make room for icons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1079 a1c6a512-1295-4272-9138-f99709370657
2002-06-19 13:00:14 +00:00
Robert Hak
4164f58471 increased lines on menu display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1021 a1c6a512-1295-4272-9138-f99709370657
2002-06-16 23:27:58 +00:00
Daniel Stenberg
e35f8eb603 made the player simulator get a "nice" cursor too!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1009 a1c6a512-1295-4272-9138-f99709370657
2002-06-15 11:39:36 +00:00
Daniel Stenberg
698ebc8412 hehe, we better clear at y*8 not y*6 ;-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@997 a1c6a512-1295-4272-9138-f99709370657
2002-06-14 09:10:36 +00:00
Daniel Stenberg
17f8390c44 the cursor is now only 4 pixels wide
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@995 a1c6a512-1295-4272-9138-f99709370657
2002-06-14 09:03:08 +00:00
Daniel Stenberg
bf603f98cb made to use the new cursor bitmap on the recorder, so put_cursorxy() is
now a better way to position the cursor


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@993 a1c6a512-1295-4272-9138-f99709370657
2002-06-14 08:47:44 +00:00
Björn Stenberg
9314a68db6 Replaced - cursor with more suitable char for player
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@848 a1c6a512-1295-4272-9138-f99709370657
2002-05-31 09:04:51 +00:00
Robert Hak
c501ac7be2 corrected the curson not being drawn for the recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@814 a1c6a512-1295-4272-9138-f99709370657
2002-05-30 08:06:42 +00:00
Björn Stenberg
4caebab366 Fixed draw bug. Removed wrapping.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@796 a1c6a512-1295-4272-9138-f99709370657
2002-05-29 14:25:06 +00:00
Björn Stenberg
60fad547e0 MENU exits menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@791 a1c6a512-1295-4272-9138-f99709370657
2002-05-29 12:28:08 +00:00
Björn Stenberg
f76cee7943 Menu now supports scrolling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@769 a1c6a512-1295-4272-9138-f99709370657
2002-05-28 15:35:33 +00:00
Björn Stenberg
856a13a2d2 Adapted to modified button_get() call
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@760 a1c6a512-1295-4272-9138-f99709370657
2002-05-28 12:10:12 +00:00
Björn Stenberg
2ac057241a Added support for nested menus
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@707 a1c6a512-1295-4272-9138-f99709370657
2002-05-26 17:03:17 +00:00
Björn Stenberg
1c21296a5a Cut away some single-use functions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@673 a1c6a512-1295-4272-9138-f99709370657
2002-05-23 14:11:42 +00:00
Björn Stenberg
c42644d2f4 Removed cursor flicker
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@648 a1c6a512-1295-4272-9138-f99709370657
2002-05-21 15:04:23 +00:00
Björn Stenberg
b21a3bd240 Abstracted the menu interface
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@641 a1c6a512-1295-4272-9138-f99709370657
2002-05-21 14:25:45 +00:00
Robert Hak
b97a2f5e0d minor changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@639 a1c6a512-1295-4272-9138-f99709370657
2002-05-21 08:48:44 +00:00
Robert Hak
dfba210850 minor changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@638 a1c6a512-1295-4272-9138-f99709370657
2002-05-21 08:47:34 +00:00
Robert Hak
7ec9aa3bd8 made the logo display a true splash screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@631 a1c6a512-1295-4272-9138-f99709370657
2002-05-18 11:41:37 +00:00
Daniel Stenberg
1c0c861451 moved from the simulator dir
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@614 a1c6a512-1295-4272-9138-f99709370657
2002-05-17 12:22:24 +00:00