This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5700 - XML Menu Config
Attached to Project:
Rockbox
Opened by Gnelik (Gnelik) - Sunday, 23 July 2006, 09:12 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Sunday, 15 April 2007, 15:13 GMT+2
Opened by Gnelik (Gnelik) - Sunday, 23 July 2006, 09:12 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Sunday, 15 April 2007, 15:13 GMT+2
|
DetailsMany users sujested menu reordering here, i sujest to make XML menu file like this:
<menu menu_type="one_per_screen"> <subitems> <item type="dir" menu_type="list"> <lang_file_capt></lang_file_capt> <image>1.bmp</image> <subitems> <item type="command"> <lang_file_capt></lang_file_capt> <image>1.bmp</image> <command>browse_plugins</command> </item> </subitems> </item> </subitems> </menu> With some modifications, and to make visual utilite to generate such files. PS: menu_type= is how menu items shown on the screen one per screen such as in nokia phones, or in the list. |
This task depends upon
Closed by Björn Stenberg (zagor)
Wednesday, 09 May 2007, 09:11 GMT+2
Reason for closing: Rejected
Additional comments about closing: Closing all feature requests.
Wednesday, 09 May 2007, 09:11 GMT+2
Reason for closing: Rejected
Additional comments about closing: Closing all feature requests.
I imagine a file which looks a bit like this :
Caption->Function
Much easier to parse.
Having to port over an XML parser library, no matter it's source, is probably going to be a complete nightmare because I bet you can't find one that doesn't use malloc() or similar.
Also with the parser: for each entry, how is the 'function' to be determined, perhaps by a defined keyword for each menu function?
Given that the menu structure was completely overhauled a while after I initially added that comment to this FS#, I'm not sure how I'd go about doing this at all actually.
Give it a crack and see what happens!
That said, it is incredibly unliekly that a patch for this would be accepted