Commit graph

68 commits

Author SHA1 Message Date
Jonathan Gordon
f5ec3e49e0 remove the duplicated gui_list struct and only duplicate the members which 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
2007-12-17 02:37:21 +00:00
Jonathan Gordon
616971c71e remove the seelection_size param from the info init call to hopefully decrease the bin size a bit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15237 a1c6a512-1295-4272-9138-f99709370657
2007-10-21 06:42:52 +00:00
Jonathan Gordon
5eac0108f9 simplify the simpelist api slightly so not every struct member needs to be init manually.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15236 a1c6a512-1295-4272-9138-f99709370657
2007-10-21 01:27:17 +00:00
Jonathan Gordon
5ca8abfff0 convert the open with screen to use the simplelist api
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15230 a1c6a512-1295-4272-9138-f99709370657
2007-10-21 00:11:47 +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
Jonathan Gordon
07a7d47cc1 Revert my filetypes commits from today. the nvram buffer is 44bytes of which 43 are currently being used. We need to figure out what to do about this.
So in the mean time, set the MAX_FILETYPES to a huge value so we don't have to worry about this for a long while.

This build shold be safe to use again. If you downloaded a build after r14286 make sure you grab a new one


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14291 a1c6a512-1295-4272-9138-f99709370657
2007-08-12 09:53:41 +00:00
Jonathan Gordon
7cb80a2a70 Fix a problem with the nvram settings which meant adding new items to the end needed the version bump (they dont anymore, but I'm bumping it now anyway to save some bug reports)
Also operator precedence fixing.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14290 a1c6a512-1295-4272-9138-f99709370657
2007-08-12 07:22:38 +00:00
Jonathan Gordon
eff14cceec Change the way the MAX_FILETYPES define works. It now allocates enough filetype icons as it needed last boot + 8, this means we should never have to edit the define again.
If you get the "filetypes array full" splash, do a clean reboot and it shuold go away. if it doesnt make sure you file a bug report and let us know you did reboot and it stayed there... it means that define does actually need increeasing.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14287 a1c6a512-1295-4272-9138-f99709370657
2007-08-12 02:10:45 +00:00
Peter D'Hoye
f3498db0d4 increase filetypes array a bit, should now have some room for the future... But that doesn't mean that if you add a filetype, you shouldn't check this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14248 a1c6a512-1295-4272-9138-f99709370657
2007-08-08 22:31:42 +00:00
Jonathan Gordon
ecae04a9f2 Fix the open with menu
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14241 a1c6a512-1295-4272-9138-f99709370657
2007-08-08 10:02:00 +00:00
Jonathan Gordon
73160322fe Fix the properties and shortucts plugins after accidently breaking them last night.
Also possibly make them load a bit faster.
Make the open with screen nicer, and show all aviable viewers again (If people prefered it only showing useful viewers maybe we can make this a setting?)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14227 a1c6a512-1295-4272-9138-f99709370657
2007-08-07 07:55:18 +00:00
Jonathan Gordon
7fe32b9a27 Only show plugins which are actually associated with the file from the "open with" menu. (plugins registered with * in the viewers.config are always shown)
Shows everything if the file doesnt have a extension.
Also fix the plugin name showing the whole path instead of just the name.

Previous commit should have said "Delete your current /.rockbox/rocks folder because the plugins' config/extra files have moved and to save you hassles"


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14215 a1c6a512-1295-4272-9138-f99709370657
2007-08-06 13:58:16 +00:00
Jonathan Gordon
fda7d720c0 Accept FS#5464 - organise the rocks directory.
If any plugins or "open with" optoins dont work please let me know...


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14214 a1c6a512-1295-4272-9138-f99709370657
2007-08-06 13:42:52 +00:00
Nils Wallménius
5b76936a44 Accept FS#6159 'Add voice to roughly 100 splash screens and yes-no menus' by Stephane Doyon with some minor tweaks by me. Rerun 'configure' and do a 'make clean' before rebuilding your voice files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14213 a1c6a512-1295-4272-9138-f99709370657
2007-08-06 13:08:36 +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
Peter D'Hoye
96e8a1b08d Increase filetypes array a bit more to give headroom...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13800 a1c6a512-1295-4272-9138-f99709370657
2007-07-05 20:02:09 +00:00
Peter D'Hoye
98d4e09094 Increase filetypes array to make room for our latest supported audioformat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13777 a1c6a512-1295-4272-9138-f99709370657
2007-07-03 17:45:54 +00:00
Dave Chapman
48304ce6d9 Add .wmv and .asf as supported filetypes for the WMA codec
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13773 a1c6a512-1295-4272-9138-f99709370657
2007-07-03 13:16:49 +00:00
Paul Louden
b6ede2189a Clear the whole colour list on new .colours load, rather than
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13675 a1c6a512-1295-4272-9138-f99709370657
2007-06-19 20:08:16 +00:00
Paul Louden
f8b5913ae7 Make user-visible spelling "colours" rather than "colors".
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13671 a1c6a512-1295-4272-9138-f99709370657
2007-06-19 04:21:06 +00:00
Paul Louden
5b25a6e2df Added one more filetype. ??? in .colors lets you set the color for all
unknown filetypes.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13669 a1c6a512-1295-4272-9138-f99709370657
2007-06-18 22:41:39 +00:00
Paul Louden
f2061599d4 Fix new bug caused by my last commit. Since there was no apparent binary
saving of the short, back to long since we need it signed.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13668 a1c6a512-1295-4272-9138-f99709370657
2007-06-18 22:07:38 +00:00
Paul Louden
4cb1072cce Hopefully fix FS#7323. Store colors as fb_data.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13667 a1c6a512-1295-4272-9138-f99709370657
2007-06-18 18:43:11 +00:00
Brandon Low
2d0cb077c3 Shrink binsize by using shorts instead of ints for colors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13660 a1c6a512-1295-4272-9138-f99709370657
2007-06-17 23:12:39 +00:00
Brandon Low
f8682a032e Fix some bugs with the colors stuff. You can now specify folder color with the folder extension.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13659 a1c6a512-1295-4272-9138-f99709370657
2007-06-17 23:10:01 +00:00
Brandon Low
74cbb0a1b2 Give color targets the ability to display each LCD line a different color and use this newfangled ability to provide themable colored file types. See the comments on read_color_theme_file and the sample.colors file provided for how to use this. .colors files go in themes directory for now. This separate line color function should be trivial to add to menus and wpss.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13656 a1c6a512-1295-4272-9138-f99709370657
2007-06-17 21:16:34 +00:00
Dave Chapman
520274219a Initial commit of Monkey's Audio (.ape/.mac) support. Note that Monkey's is an extremely CPU-intensive codec, and that the decoding speed is directly related to the compression level (-c1000, -c2000, -c3000, -c4000 or -c5000) used when encoding the file. Current performance is: -c1000 to -c3000 are realtime on a Gigabeat, -c1000 is realtime on Coldfire targets (H100, H300 and Cowon), and nothing is realtime on PortalPlayer targets (iPods, H10, Sansa). Hopefully this can be improved. More information at FS #7256.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13562 a1c6a512-1295-4272-9138-f99709370657
2007-06-05 16:58:29 +00:00
Jonathan Gordon
5b5d1018d0 Fix a .icons loading bug which caused the tango iconset to not load.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13267 a1c6a512-1295-4272-9138-f99709370657
2007-04-26 05:30:46 +00:00
Jonathan Gordon
9d3694ced6 Fix FS#7056 - dont display garbage if the viewer icon set and the main iconset have different icon heights
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13237 a1c6a512-1295-4272-9138-f99709370657
2007-04-22 08:50:24 +00:00
Jonathan Gordon
36a2e30872 Move the inbuilt filetype info into filetypes.c and rename the defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13201 a1c6a512-1295-4272-9138-f99709370657
2007-04-18 13:03:01 +00:00
Jonathan Gordon
27643c6538 Initialise the custom icons array correctly instead of just using the ? for all filetypes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13194 a1c6a512-1295-4272-9138-f99709370657
2007-04-17 09:17:23 +00:00
Jonathan Gordon
fd951ab8d0 make the folder icons play nice when you load a viewers theme (sorry, this is it from me tonight... )
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13184 a1c6a512-1295-4272-9138-f99709370657
2007-04-16 14:52:47 +00:00
Jonathan Gordon
a9c1df4001 * its name[rows][columns] you drongo!
* make custom viewer icons work slightly better
* minor nit-picks to keep crop happy
* create a /.rockbox/themes/default_rockbox_icons.cfg to restore the default icons easily


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13183 a1c6a512-1295-4272-9138-f99709370657
2007-04-16 14:33:29 +00:00
Jonathan Gordon
4a16739bdd Some gremlins got into my computer again and changed all my code!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13181 a1c6a512-1295-4272-9138-f99709370657
2007-04-16 12:26:49 +00:00
Jonathan Gordon
3124134a08 woops
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13180 a1c6a512-1295-4272-9138-f99709370657
2007-04-16 11:10:41 +00:00
Jonathan Gordon
ccaf24a29c Fix the wavplay icon
Fix copy+paste mistake
Fix typo in comment
Fix crash when trying to run a bmp
Reset the icons properly when loading a .icons file (hopefully will use the correct icon now)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13179 a1c6a512-1295-4272-9138-f99709370657
2007-04-16 11:01:41 +00:00
Jonathan Gordon
6a5cc0bd25 Customizable icons for all bitmap targets. (FS#7013)
http://www.rockbox.org/twiki/bin/view/Main/CustomIcons for info on format and how to load them


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13177 a1c6a512-1295-4272-9138-f99709370657
2007-04-16 09:14:36 +00:00
Jens Arnold
f267e04a69 Fix icons for built-in types on charcell.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12961 a1c6a512-1295-4272-9138-f99709370657
2007-03-29 17:35:25 +00:00
Jonathan Gordon
21165a3f3d Recode filetypes.c to remove its need for a static string buffer.
Functional changes:
- filetypes.c handles the open with menu now instead of onplay.c
- automatic plugin registration no longer works (did anyone know about you could do this?)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12959 a1c6a512-1295-4272-9138-f99709370657
2007-03-29 06:16:00 +00:00
Jens Arnold
4d6374c923 Get rid of the 'center' parameter for splashes. There were only 2 of almost 500 splashes which were not centered.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 21:56:08 +00:00
Jens Arnold
314f3b58f1 More static'ing, and a few fixes resulting from that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11737 a1c6a512-1295-4272-9138-f99709370657
2006-12-12 22:22:21 +00:00
Peter D'Hoye
0f02e4f7a0 File and (recursive) directories properties in the file browser context menu. Uses dircache if possible (plugin api expanded). Is actually implemented as plugin. Small parts taken from earlier work by Will Robertson.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11630 a1c6a512-1295-4272-9138-f99709370657
2006-11-30 22:29:48 +00:00
Jens Arnold
b0b333f95e Upped the number of allowed filetypes for archos to get rid of the 'filetypes array' full' error msg. filetypes.c really needs fixing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9424 a1c6a512-1295-4272-9138-f99709370657
2006-04-02 11:58:25 +00:00
Jens Arnold
0c09f3ee88 WAV playback as a plugin, for archos recorders and Ondios. Plays 16-bit WAV files with all common sample frequencies, both mono and stereo. Meant as a preview for later PCM playback integration, and for doing experiments with the MAS PCM codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9273 a1c6a512-1295-4272-9138-f99709370657
2006-03-26 23:00:24 +00:00
Linus Nielsen Feltzing
25efd331e8 Patch #4791 by Jonathan Gordon - Remove duplicates from the Open-with menu, and allow regular rocks to be loaded as viewers. Also allow all file types in the Open-with menu, not only the registered ones.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9025 a1c6a512-1295-4272-9138-f99709370657
2006-03-13 07:33:30 +00:00
Daniel Stenberg
f981ea93fb kill gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657
2005-12-05 22:44:42 +00:00
Kevin Ferrare
e991beed6d replaced all the splash calls by gui_sync_splash, added some missing remote key in the playlist viewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7909 a1c6a512-1295-4272-9138-f99709370657
2005-11-16 15:12:15 +00:00
Kevin Ferrare
f7c97522a8 Fixed the icon for unknown file types on the archos Player, and the bug when removing the last file on the screen in filetree, added some code for playlists integration with multi-screen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7800 a1c6a512-1295-4272-9138-f99709370657
2005-11-09 01:17:57 +00:00
Henrik Backe
5a8f6bae94 Fixed broken "open with" in onplay menu.
A problem with duplicate entries still exists in "open with" which
I think is best solved by removing the scan_plugins() function in filetypes.c,
but I don't want to remove it without a discussing it first.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7603 a1c6a512-1295-4272-9138-f99709370657
2005-10-09 13:37:35 +00:00
Daniel Stenberg
af48260399 Modified the viewers.config syntax slightly. The name field should now include
path of the plugin/viewer on target, but exclude the exension. Now the Sudoku
plugin acts as a normal plugin and a viewer at the same time.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7582 a1c6a512-1295-4272-9138-f99709370657
2005-10-05 08:02:10 +00:00