This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5742 - Properties screen
|
DetailsThis patch adds a basic properties screen to the onplay menu, in the likes of the ID3 screen.
I created this because rockbox has no other means of finding the filesize of a file and to quickly check the file extention, which is hidden in when "show files" is set to "supported". This is especially useful for when you have encoded a recording made on the player with the wav2wv plugin, and want to know which to delete. At the moment it just displays the full path, the file extention and the filesize of the selected file, but I will perhaps add more things as I think of them, and as I learn more about C to enable me to do the things I think of :). |
This task depends upon
Thanks for the tip! :)
Perhaps I could make a dedicated menu item to launch the it as a plugin, keeping the best of both worlds. Does this sound like a good idea?
For example pressing LEFT or RIGHT toggles between file info and id3 info.
Bitrate, Frequency and Path could be moved to the file info "tab" then.
When you view the file's properties, show a list of viewers associated with it (viewers.config), and what the default action for that file type is (whether it's a viewer, or whether the Rockbox binary has reserved it, such as music etc).
Unfortunately there are some side effects of using the plugin approach:
- No .lang file support - this means:
-- No support for other languages
-- No voicing
- No statusbar
- No background image support
- Scrolling doesn't work properly any more (probably due to my incompetence rather than any programming limitation)
- Properties plugin is visible from the plugins menu
However, it isn't all bad news. The addition of this featuer only adds 88 bytes to the rockbox binary.
http://daniel.haxx.se/rockbox/langv2
The plugin now uses the button action system, and the scrolling is working fine now.
The patch also adds gui_synclist_set_title to the Plugin API.
I've added it to Rockbox context menu when browsing, and it works on files and directories. Uses direntry and as such doesn't try to open the file. Translatable. Does its own value formatting (in only 17 lines!) because output_dyn_value() can't handle big values and isn't easily adapted (first try resulted in a bigger binary then my implementation in parallel).
Adds 1680 bytes to the binary....
also synced to latest cvs changes
Size increase now at 1576 ;)