[mythtv] Create XML menus dynamically - plus existing bug in
themedmenus.cpp
Alan Snyder
ax763 at yahoo.com
Thu Jul 8 06:57:11 EDT 2004
--- joel at tamkin.net wrote:
> All,
>
> Has anyone considered allowing for scripting of/from
> xml menu files?
>
> USAGE EXAMPLE:
> In mainmenu.xml:
> ..
> <button $B!D(B>
> $B!D(B
> <action>EXEC /home/mythtv/buildxmlmenu.py</action>
> $B"+(B gets
> run first
> <action>MENU newmenu.xml</action>
> $B"+(B gets run second
> </button>
> $B!D(B
> By allowing for multiple actions (executed
> serially), the
> buildxmlmenu.py script dynamically creates
> newmenu.xml, which could have
> similar submenus, all dynamically created using your
> favorite scripting
> language. One could also play sounds, etc, before
> navigating to menus,
> etc.
>
> I$B!G(Bve implemented a change to themedmenu.cpp
> which allows multiple
> actions to be defined (using a vector<QString> of
> actions, instead of a
> single QString. Also made the necessary changes to
> run handleAction for
> each defined action).
>
This would be a great convenience for those seeking to
add new functions without writing new modules. While
you're at it, another helpful function would be
<on_entry> and <on_exit> sections.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
More information about the mythtv-dev
mailing list