[mythtv] [PATCH] MythVideo - Switch between views

Jeff Doozan mythtv at doozan.com
Sun Sep 7 00:18:20 EDT 2003


On 6 Sep 2003 at 19:44, thor wrote:

> On Saturday 06 September 2003 05:34 pm, Jeff Doozan wrote:
> > I've created a patch that will let you switch between MythVideo vies
> > using the "L", "B", and "M" keys to switch to the List, Browse, and
> > Manage views, respectively.
> 
> 	I started stepping through this, but I think there's a basic problem ... if 
> you alternate between List and Browse, you're building a chain of screens 
> that you'll need a heap of ESC's to get out of (unless I've missed something 
> ...).

It's true that the patch does create a stack of windows, however each 
window calls done(0) after the child window window returns, 
effectively collapsing the entire structure when the Escape key is 
pressed.

> 	The "Right Way" (?) would be to create the dialogs in main(), have them set 
> pointers to each others, and then show() and hide() them (I think). Also, you 
> may want to think about just List and Browse which can pass each other the 
> current parental level as well. Since Manage gives you access to all levels, 
> switching to it would require the password popup, and Manage is not something 
> you really want to be casually hoping in and out of in any case.

I agree that the Right Way would involve some sort of callback to 
main to handle the window creation/destruction, however, this was 
just a quick weekend hack for my own uses and I wanted to make sure 
it worked for me before soliciting any comments or adding any polish.

The current setup is really just a demonstration of how the new class 
constructions work.  I'm sure other people will have ideas on how to 
use them - perhaps remembering the last selected movie for some 
reason or another.  You should be safe checking in the class changes 
and ignoring the keybindings.

-- Jeff



More information about the mythtv-dev mailing list