[mythtv-commits] mythtv commit: r20918 - in trunk/mythtv by paulh

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Wed Jul 15 23:07:05 UTC 2009


      Author: paulh
        Date: 2009-07-15 23:07:04 +0000 (Wed, 15 Jul 2009)
New Revision: 20918
   Changeset: http://cvs.mythtv.org/trac/changeset/20918

Modified:

   trunk/mythtv/libs/libmythui/mythscreenstack.cpp
   trunk/mythtv/libs/libmythui/mythscreenstack.h
   trunk/mythtv/libs/libmythui/mythscreentype.cpp
   trunk/mythtv/libs/libmythui/mythuihelper.cpp
   trunk/mythtv/libs/libmythui/mythuihelper.h
   trunk/mythtv/programs/mythfrontend/networkcontrol.cpp

Log:

Make the current location stuff more flexible.

You can get the current location for the main stack only or both the popup
and main stacks. The latter would be useful if you wanted to create
a smart remote that just showed buttons that are active on the current
active screen for example.

You can choose to just get the location of the top screen eg. 'GuideGrid' or a
full path to the top screen eg 'mainmenu/tvmenu.xml/tv_schedule.xml/guidegrid'.
Don't know why you'd want the full path but Chris and Stuart wanted it :-)

The network control 'query location' command has been expanded to take
advantage of the new features. The new command looks like this:-

query location FULLPATH MAINSTACKONLY

Where FULLPATH and MAINSTACKONLY are boolean values (true/1 or false/0)

Example output when the current location is the GuideGrid with the popup menu
visible:-

>query location
guidegrid

>query location true
mainmenu/tvmenu.xml/tv_schedule.xml/guidegrid

>query location 0 1
menuPopup

>query location true true
mainmenu/tvmenu.xml/tv_schedule.xml/guidegrid/menuPopup










More information about the mythtv-commits mailing list