[mythtv] [PATCH] Manualrecording

thor mythtv at lamedomainname.com
Sun Apr 13 14:34:51 EDT 2003

On Sunday 13 April 2003 11:47 am, Leandro Dardini wrote:

> I was too shy to submit a patch to the libmyth... but if you like and if
> this can increase the probability to see this code accepted, I'll go to add
> the keyboard interface to the MythRemoteLineEdit widget, and maybe to the
> MythLineEdit, as you prefer. I think to something like pressing a key like
> "@" (who will use this key in a title?) to bring up an input window
> allowing you to easly enter text with the keyboard interface. The downside
> of this will be the need for another key on the remote... or maybe we can
> use some tricks like "press OK twice to bring the keyboard window" (who
> will use two consecutive space in a title?).

	Two things:

	You might want to subclass MythRemoteLineEdit 
(MythRemoteAndKeyboardLineEdit?), although you may need to make some methods 
virtual and re-implement them to make it work this way. Some GUI contexts may 
not have room for the keyboard, so two distinct widgets may be more flexible 

	MythRemoteLineEdit currently eats spaces, although there's no particular 
reason it has to. The user should be able to get all alpha charcters (a-z) 
and (if we change things) space as well by either typing on a keyboard, 
clicking your keyboard buttons, or using the digits 0-1 (all within the same 
widget). Only gets complicated when they want digits and non-alphanumeric 
characters (ie ":", "/", etc.) and the remote wants to make the number keys 
do character cycling. That's when you'd need some user action (and hopefully 
some visual feedback) to say ... "ok, number keypresses are really numbers or 
characters if shift is on".

	Not sure I'm explaining things well here. Let me know if you can't make heads 
or tails of what I'm trying to say.

- thor

More information about the mythtv-dev mailing list