[mythtv] "global" keys?

Renchi Raju renchi at pooh.tam.uiuc.edu
Wed Sep 24 13:25:37 EDT 2003


On Wed, 24 Sep 2003, thor wrote:
> On Wednesday 24 September 2003 01:01 pm, Renchi Raju wrote:
>
> > the eventfilter object is to be created in the core mythfrontend
> > and every module, say mythmusic, has this eventfilter installed on
> > itself and then all keypresses go to the core eventfilter object
> > first (i.e to the core mythfrontend), which decides whether to
> > ignore it or deal with it.
>
> 	Hey, that's fine in principal. But if you look at the plugin
> architecture, you'll see that the execution method precludes this.
> You could have a little thread at the core to do this, although that
> would be fraught with problems as threads that touch GUI elements are
> a bad thing.
>
> 	I'm not saying this is impossible. I'm just saying it's not going to
> get solved with a simple keyPress() hierarchy.

i don't see what the problem is. most of the mythplugins have widgets
which derive from mythdialog. the base mythdialog can do the installing
eventfilter business on the mythfrontend end. You don't need to expose
this part to the plugins at all.


More information about the mythtv-dev mailing list