[mythtv] Question regarding the mouse support

florin baiduc florinbaiduc at gmail.com
Tue Mar 14 00:21:16 UTC 2006


On 3/13/06, Micah Francis Galizia <mfgalizi at uwo.ca> wrote:

> As for easy assignment, yes, it would be easy to assigned clicks and
> gestures statically to actions, but that wouldn't be very flexible, would
> it?

I agree, and as I specified, it is not my intention also...


> As for determining which element UI element is focused, the code
> already does that, see MythMainWindow::eventFilter method.
>
> So, as I was saying, all you need to do is translate the gesture (which
> includes single mouse clicks) into an appropriate action, and pass it off to
> the appropriate receiver.

I already checked the eventFiler(), as it is the function outputting
to the teerminal in the UITest... Unfortunately, none of the frontend
(mainmenu, etc) elements can be accessed by using the
screen->GetChildAt(p) and the returned value is of course the NULL
pointer.
That's why I am confused about how to pass the action to the receiver.
(and how to find the receiver)...
I presume that for using the same api, the GetChildAt(point) must be
supported by the myththemedmenu, so I should try to see how the
support was added for the buttons usede in the MythUITest...
Regards...


More information about the mythtv-dev mailing list