----- Original Message -----<br>From: Micah Francis Galizia <mfgalizi @uwo.ca=""><br>Date: Monday, March 13, 2006 3:57 pm<br>Subject: Re: [mythtv] Question regarding the mouse support<br>To: Development of mythtv <mythtv-dev @mythtv.org=""><br><br>&gt; <br>&gt; <br>&gt; ----- Original Message -----<br>&gt; From: florin baiduc <br>&gt; Date: Monday, March 13, 2006 9:45 am<br>&gt; Subject: Re: [mythtv] Question regarding the mouse support<br>&gt; To: Development of mythtv <br>&gt; <br>&gt; &gt; I beg to differ!<br>&gt; &gt; The gestures can be very easily assigned to any Myth action <br>&gt; (one or<br>&gt; &gt; more keypresses). That is not my intention for the moment.<br>&gt; &gt; I intend to use the simple click on the buttons or menuitems for<br>&gt; &gt; activating those item. The only gesture I would need for that <br>&gt; &gt; would be<br>&gt; &gt; the click, but, on the other hand, I need to find out how to <br>&gt; &gt; focus the<br>&gt; &gt; element under the mouse - that's why I was looking into the<br>&gt; &gt; myththemendmenu files.<br>&gt; &gt; My question was how to do that?. The existing mainmenu API doesn't<br>&gt; &gt; have a lot of support for the this (or does it?)<br><br>
I should clarify that I'm talking about the new UI.&nbsp; This doesn't apply to the current release.<br>
&nbsp;<br>&gt; As for easy assignment, yes, it would be easy to assigned clicks <br>&gt; and gestures statically to actions, but that wouldn't be very <br>&gt; flexible, would it?  As for determining which element UI element <br>&gt; is focused, the code already does that, see <br>&gt; MythMainWindow::eventFilter method.<br>&gt; <br>&gt; So, as I was saying, all you need to do is translate the gesture <br>&gt; (which includes single mouse clicks) into an appropriate action, <br>&gt; and pass it off to the appropriate receiver.<br>&gt; <br>&gt; &gt; On 3/13/06, Micah F. Galizia wrote:<br>&gt; &gt; <br>&gt; &gt; &gt; Right now, the new UI can recognize mouse gestures. Last I <br>&gt; &gt; checked, all<br>&gt; &gt; &gt; that was needed was to convert those into events that Myth <br>&gt; can <br>&gt; &gt; translate&gt; into actions.<br>&gt; &gt; &gt;<br>&gt; &gt; <br>&gt; &gt; &gt; Cheers<br>&gt; &gt; &gt; - --<br>&gt; &gt; &gt; Micah F. Galizia<br>&gt; &gt; &gt; mfgalizi@uwo.ca<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; "The mark of an immature man is that he wants to die nobly <br>&gt; for <br>&gt; &gt; a cause,<br>&gt; &gt; &gt; while the mark of the mature man is that he wants to live <br>&gt; &gt; humbly for<br>&gt; &gt; &gt; one." --W. Stekel<br>&gt; &gt; &gt; -----BEGIN PGP SIGNATURE-----<br>&gt; &gt; &gt; Version: GnuPG v1.4.2.2 (GNU/Linux)<br>&gt; &gt; &gt; Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; iD8DBQFEFXEMfZqZRvBjAbwRArdLAJ9dgW3TRFwIL1mRbLYBPNUdYfIXugCcDXpJ<br>&gt; &gt; &gt; b4GI1WOXwXMs1421tjCYmqI=<br>&gt; &gt; &gt; =YKiU<br>&gt; &gt; &gt; -----END PGP SIGNATURE-----<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; mythtv-dev mailing list<br>&gt; &gt; &gt; mythtv-dev@mythtv.org<br>&gt; &gt; &gt; http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev<br>&gt; &gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; mythtv-dev mailing list<br>&gt; &gt; mythtv-dev@mythtv.org<br>&gt; &gt; http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev<br>&gt; &gt; <br>&gt; </mythtv-dev></mfgalizi>