Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: haim on September 18, 2010, 08:23:53 PM

Title: How can I remove lines from the main menu of the player (with Rockbox)
Post by: haim on September 18, 2010, 08:23:53 PM
Hi,
How can I remove lines from the main menu? (eg. to remove the radio's line or the line of the movie)
I use SanDisk CLIP1, But I need it also for models and CLIP+ FUZE.
Thank you!
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: soap on September 18, 2010, 08:32:08 PM
There is no customizable menus in Rockbox.  One would need to edit the source code to change the menus.
That said, one can change which of the existing screens is the starting screen, so depending on your usage patterns you may never see the "cluttered" menu.  See the manual for how to do so.
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: haim on September 18, 2010, 08:36:28 PM
And modify the source code it's Difficult?
I want to permanently remove the row.
I sorry for spelling mistakes, I do not speak English well...
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: saratoga on September 18, 2010, 08:55:15 PM
And modify the source code it's Difficult?
I want to permanently remove the row.
I apologize for spelling errors, I do not speak English well...

Can you program in c?  If so, probably not that hard.  Never looked into it myself though.
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: JdGordon on September 19, 2010, 05:30:30 AM
removing options is dead simple (actualy depends which you want to remove)
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: MItaly on September 19, 2010, 05:57:04 AM
Out of curiosity, why do you need to do it? ???
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: haim on September 19, 2010, 08:26:24 AM
Because I need to remove from the player of my little brother the possibility of radio and movies, he must not bring to class player with movies. He agrees that, it's OK.
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: MItaly on September 19, 2010, 01:06:45 PM
For the movies, you could simply remove their entries in viewers.config (if he's not smart enough to use the "open with" feature :) ).
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: haim on September 19, 2010, 01:10:09 PM
thank's, but the problem is more about the radio.
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: saratoga on September 19, 2010, 01:15:09 PM
You could try commenting out the "#define CONFIG_TUNER SI4700" lines in firmware/export/config/[your_players_name].h and see if that compiles.  It would disable the radio driver completely, but I don't know if it'll compile cleanly.
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: haim on September 19, 2010, 01:18:10 PM
thanks, I'll check it
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: MItaly on September 19, 2010, 05:59:00 PM
... and then he'll learn to boot in the unrestricted OF :D
Title: Re: How can I remove lines from the main menu of the player (with Rockbox)
Post by: haim on September 20, 2010, 08:56:40 AM
You could try commenting out the "#define CONFIG_TUNER SI4700" lines in firmware/export/config/[your_players_name].h and see if that compiles.  It would disable the radio driver completely, but I don't know if it'll compile cleanly.
when I did the compile I get the error:
Code: [Select]
/home/haim/rockbox/apps/menus/recording_menu.c: In function ‘recsource_func’:
/home/haim/rockbox/apps/menus/recording_menu.c:87: error: ‘LANG_FM_RADIO’ undeclared (first use in this function)
/home/haim/rockbox/apps/menus/recording_menu.c:87: error: (Each undeclared identifier is reported only once
/home/haim/rockbox/apps/menus/recording_menu.c:87: error: for each function it appears in.)
/home/haim/rockbox/apps/menus/recording_menu.c:87: warning: missing initializer
/home/haim/rockbox/apps/menus/recording_menu.c:87: warning: (near initialization for ‘names[1].string’)
/home/haim/rockbox/apps/menus/recording_menu.c:93: warning: implicit declaration of function ‘radio_hardware_present’
make: *** [/home/haim/rockbox/build/apps/menus/recording_menu.o] 1 הלקת