[mythtv] New menu code.

Isaac Richards mythtv-dev@snowman.net
Thu, 19 Sep 2002 00:45:46 -0400

On Monday 09 September 2002 04:27 pm, Grant Taylor wrote:
> >> Which brings up the point - is the frontend stuff at all scriptable?
> >
> > What would you want to do with it?
> Well, one could trivially launch mozilla/konqueror or mame; add a
> button or two for X10 light dimming; or any number of other things.

In my rewrite of the menu code, I pretty much added this..  Wanted to separate 
the menu definitions from the theme definitions, and more flexibility grew 
out of that, basically.

Check out the new mainmenu.xml file that gets installed from mythfrontend/ to 

For example, this handles the button for mythmusic:

     <action>EXEC mythmusic</action>

The button type specifies the icon MUSIC that's been defined in the theme file 
to be applied to the generic button template (also defined in the theme 
file).  If the button type doesn't exist in the theme, it just won't display 
an icon..  The depends line checks for the specified file to exist, else it 
won't display the button.  Currently, it only checks /usr/local/share/mythtv/ 
for the file, but it'll eventually check the user's $PATH as well.  Allowable 
external actions are only 'EXEC' and 'MENU' right now -- exec should be 
obvious, and MENU just loads another menu file and displays it.