summaryrefslogtreecommitdiff
path: root/apps/tree.c (follow)
Commit message (Collapse)AuthorAge
...
* Fix FS#10478 - Used wrong directory in Browse theme files by explicitely ↵Thomas Martitz2009-08-01
| | | | | | | | setting current[] to '\0' in an else case. current[] was used unitialized, so browsing themes actually used current[] from a previous call to rockbox_browse() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22094 a1c6a512-1295-4272-9138-f99709370657
* Start of some apps/ and wps cleanup work... Move everything related to the ↵Jonathan Gordon2009-07-27
| | | | | | | | | actual drawing of the wps into apps/gui/wps_engine, things related to the actual screen are in apps/gui/music_screen.c (names are temporary unless noone comes up with anything better) No real code changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22062 a1c6a512-1295-4272-9138-f99709370657
* FS#10080Nils Wallménius2009-07-14
| | | | | | | | | | * Move strncpy() from core to the pluginlib * Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins * Drop strncpy() from the codec api as no codec used it * Bump codec and plugin api versions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
* Fix type mismatch warnings and errors exposed when building with EABI toolchain.Andrew Mahone2009-07-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21769 a1c6a512-1295-4272-9138-f99709370657
* Center the list on the currently loaded file in the following screens ↵Jonas Häggqvist2009-06-22
| | | | | | | | | | | | | | | (FS#10093): - Font selection - FM preset selection - WPS/RWPS selection - Language selection Modify the menu wording to make them seem more like a setting and update the manual accordingly. The code could possibly be more compact - any help on that would be appreciated. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21464 a1c6a512-1295-4272-9138-f99709370657
* Fix duplicate #includesBertrik Sikken2009-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20977 a1c6a512-1295-4272-9138-f99709370657
* Remove unneeded #include "backdrop.h"Bertrik Sikken2009-05-09
| | | | | | | Remove unneeded #include "statusbar.h" git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20891 a1c6a512-1295-4272-9138-f99709370657
* Remove unnecessary #include "backlight.h"Bertrik Sikken2009-04-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20790 a1c6a512-1295-4272-9138-f99709370657
* Clean up some #includesBertrik Sikken2009-03-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20238 a1c6a512-1295-4272-9138-f99709370657
* fix FS#9796 - playlist resume from plugins didnt workJonathan Gordon2009-02-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20101 a1c6a512-1295-4272-9138-f99709370657
* redraw the lists once before going into the button loop to make things look ↵Jonathan Gordon2009-01-15
| | | | | | more responsive git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19773 a1c6a512-1295-4272-9138-f99709370657
* remove some useless/unused stuff from gwps.cJonathan Gordon2009-01-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19705 a1c6a512-1295-4272-9138-f99709370657
* bah, the filetree does the same spindown handling as the WPS so fix it there ↵Jonathan Gordon2009-01-01
| | | | | | also git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19632 a1c6a512-1295-4272-9138-f99709370657
* Decouple the statusbar drawing from the rest of the screen drawing. it is ↵Jonathan Gordon2008-12-31
| | | | | | | | | | | | not drawn roughly 4x per second automatically. viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.) All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false). This commit also includes some menu/list viewport cleanups from kugel in FS#9603 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
* move the scrobbler and playlist shutdown/restart calls out of tree.c and ↵Jonathan Gordon2008-11-17
| | | | | | move them into the regular usb/shutdown handlers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19124 a1c6a512-1295-4272-9138-f99709370657
* Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do ↵Frank Gevaerts2008-11-01
| | | | | | | | | that, it also introduces sd_*, nand_*, and mmc_*. This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#8949 - Alphabetical directory listing reversed after "Error Accessing ↵Nils Wallménius2008-10-08
| | | | | | Directory", patch by pondlife, some long line police by me, also kill a few error splashes in functions that could be called by threads other than UI git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18742 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#9352 - allow .talk clips for single-character filenames.Steve Bavin2008-09-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18383 a1c6a512-1295-4272-9138-f99709370657
* FS#9281 Rename of splash functions.Nils Wallménius2008-08-15
| | | | | | | | | | | | | | | | | | | | * Remove gui_splash() * Rename gui_syncsplash() to splashf() and remove its voice capabilities. * Rename the internal splash() to splash_internal() and introduce an externally visible splash() that handles simple splashing without printf functionality e.g. splash(HZ, ID2P(LANG_FOO)); or splash(HZ, "foo"); if a LANG_* id is passed it will be voiced. * Adjust all places that called gui_syncsplash() to use the correct variant from above. * Export both new functions to plugins and adjust places calling rb->splash() to use the correct variant so that we now have naming consistency between the core and plugins. * Fix one latent bug that would cause my sim to crash with the above changes and correct P2STR and P2ID macros, thanks to pondlife. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18282 a1c6a512-1295-4272-9138-f99709370657
* Remove unnecessary #includeBertrik Sikken2008-07-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18088 a1c6a512-1295-4272-9138-f99709370657
* talk.c helper functions to voice a filename, in a more generic wayStéphane Doyon2008-07-15
| | | | | | | | | | | | than from tree.c Voice a file or dir's thumbnail from path components, or spell last path component. Ability to prefix the thumbnail or spelling with some talk ids. This is the talk_file patch from FS#6323, just refactored a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18048 a1c6a512-1295-4272-9138-f99709370657
* Removed unneeded #include "plugin.h"Bertrik Sikken2008-06-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17852 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Accept FS #9052 by Alexander Levin with a fix by me. Changes HAS_BUTTONBAR ↵Peter D'Hoye2008-05-29
| | | | | | into HAVE_BUTTONBAR to bring it in line with the other defines git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17655 a1c6a512-1295-4272-9138-f99709370657
* more textarea to viewport conversion... yes/no screen...Jonathan Gordon2008-05-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17454 a1c6a512-1295-4272-9138-f99709370657
* use the playlist catalog code to generate the playlists under Playlist > ↵Jonathan Gordon2008-05-04
| | | | | | Create playlist git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17352 a1c6a512-1295-4272-9138-f99709370657
* a bit of code cleanup.. use a single function to get the statusbar height ↵Jonathan Gordon2008-05-04
| | | | | | (or lack of if its enabled), and remove some gui_textarea stuff which could be done using the splash. (gui_textarea is on the way out) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17350 a1c6a512-1295-4272-9138-f99709370657
* Viewported quickscreen (take 2 :D) (FS#8553)Jonathan Gordon2008-05-03
| | | | | | | | | | - 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
* Const police raid, making a lot of pointers to lang strings const and ↵Nils Wallménius2008-04-26
| | | | | | removing some ugly casting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17251 a1c6a512-1295-4272-9138-f99709370657
* Use file_exists and dir_exists functions where appropriate, fix one wrong ↵Nils Wallménius2008-04-16
| | | | | | file descriptor check and one possible dir descriptor leak git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17147 a1c6a512-1295-4272-9138-f99709370657
* Pass the buffer length to the list_get_name callback functions instead of ↵Nils Wallménius2008-04-09
| | | | | | using hardcoded MAX_PATH git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17049 a1c6a512-1295-4272-9138-f99709370657
* Small fix to be able to use F3 to quit the F3 quick menu on the Archos RecorderLinus Nielsen Feltzing2008-04-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16946 a1c6a512-1295-4272-9138-f99709370657
* Remove unnecessary (and incorrect) #ifdefs surrounding #include ↵Dave Chapman2008-03-29
| | | | | | "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
* the menu and list now accepts a parent viewport to draw in (and the menu can ↵Jonathan Gordon2008-03-26
| | | | | | 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
* FS#8457 - convert the list drawing code to use viewports. This does not ↵Jonathan Gordon2008-03-05
| | | | | | include any of the customizability which was in the patch, so unless any bugs show up users should not notice any difference. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16527 a1c6a512-1295-4272-9138-f99709370657
* Better bookmark resume handling, in particular when resuming a directory. If ↵Magnus Holmgren2008-02-10
| | | | | | Load Last Bookmark is set to Yes and the last bookmarked file could not be found, play the selected file instead. When selecting a bookmark for a missing file in the bookmark list, show a message that resume isn't possible (and don't play any selected file if Load Last Bookmark is set to Ask). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16267 a1c6a512-1295-4272-9138-f99709370657
* Prevent possible buffer overflow when locating album art.Magnus Holmgren2008-02-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16231 a1c6a512-1295-4272-9138-f99709370657
* (Hopefully) Revert the quickscreen changes. Many fixes need to be made, Paul Louden2008-02-05
| | | | | | | | | 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
* updated the quickscreen's:Jonathan Gordon2008-02-05
| | | | | | | | | | | - 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
* When automatically loading the last bookmark and the file couldn't be found, ↵Magnus Holmgren2008-01-22
| | | | | | nothing much seemed to happen. Show 'Nothing to resume' in this case, so the user has a clue that something went wrong. Should perhaps use a different message in this case. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16145 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#8469 by Bryan Childs with a few adjustments: Remove duplicate ↵Nicolas Pennequin2008-01-18
| | | | | | strip_extension() function from albumart.c. The other one is moved from tree.c to misc.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16103 a1c6a512-1295-4272-9138-f99709370657
* charcell doesnt show titles in lists, so remove the "show path" setting and ↵Jonathan Gordon2008-01-13
| | | | | | free up some bin space git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16069 a1c6a512-1295-4272-9138-f99709370657
* remove the duplicated gui_list struct and only duplicate the members which ↵Jonathan Gordon2007-12-17
| | | | | | are actually different on each screen. should translate to a smaller bin and easier code (users shouldnt notice any difference) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15947 a1c6a512-1295-4272-9138-f99709370657
* Whitespace/indent/codestyle tweaks, should make no functional differenceNils Wallménius2007-11-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15722 a1c6a512-1295-4272-9138-f99709370657
* Make threads responsible for explicit cancellation of their own boosted ↵Michael Sevakis2007-11-20
| | | | | | status. Sleeping and timeouts will no longer cancel it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15709 a1c6a512-1295-4272-9138-f99709370657
* Add a setting to control whether or not to speak the file type (r15506).Stéphane Doyon2007-11-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15508 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7653: Say file type.Stéphane Doyon2007-11-07
| | | | | | | | In the file browser, when spelling of directory or file names is enabled, say the file type (or "folder"). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15506 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7775: Use list voice callback in file browserStéphane Doyon2007-10-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15232 a1c6a512-1295-4272-9138-f99709370657
* dirbrowse should return a GO_TO_* value, not false on error (fixes the ↵Jonathan Gordon2007-10-19
| | | | | | problem where browsing plugins/fons/etc dirs from the menu would put you back n the filebrowser if the folder was empty instead of back in the menu) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15198 a1c6a512-1295-4272-9138-f99709370657
* Don't get the dircache size while dircache is still initializing. If done ↵Magnus Holmgren2007-10-07
| | | | | | during shutdown, it will force a foreground scan on next boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15013 a1c6a512-1295-4272-9138-f99709370657