Daniel Willmann | 13 Jun 21:34
Picon

Merge openmoko-keyboard changes

Hi,

I am trying to merge the changes made in openmoko-keyboard back to
matchbox-keyboard so we can avoid a maintenance hell along the road.
First I would like to give a short overview about the changes made and
why we need them.
Please tell me if/under which conditions it is possible to get them
merged upstream.

1) Functions to set/get a background image
2) Functions to set an image for the background of the keys (normal and
pushed)
3) We currently have some special buttons (see
http://wiki.openmoko.org/wiki/Input_Method#Appearance_.26_Interaction )
that switch the layout of the keyboard around. Of course having a
separate layout for caps is silly, but it is for example useful to
display a numpad. If you have a better way of doing this please let me
know.
4) The layout switching would be implemented like this:
<layout id="foo">
With corresponding keys that trigger the layout being:
<key>
  <default display="F" action="layout:foo"/>
</key>

Regards,
Daniel Willmann
Daniel Willmann | 13 Jun 23:49
Picon

Re: [matchbox] Merge openmoko-keyboard changes

Hi,
(restoring cc)

On Wed, 13 Jun 2007 20:59:23 +0100
Matthew Allum <mallum@...> wrote:

> On Wed, 2007-06-13 at 21:34 +0200, Daniel Willmann wrote:
> > First I would like to give a short overview about the changes made
> > and why we need them.
> > 
> > 1) Functions to set/get a background image
> > 2) Functions to set an image for the background of the keys (normal
> > and pushed)
> 
> Both are needed/good, though I would say one thing to remember is that
> you cant guarantee/fix the size of keys nor the keyboard itself.

Yeah, I'll need to remove some "realsize" features in there

> Therefor;
> 
>   - Idealy the background image should scale or tile. (being clipped
> if larger than keyboard window size)

Tiling/scaling should probably be configurable.

>  -  The keys are probably best made up by have a series of tiles that 
>     make up the keys - e.g 4 corner images, 4 edge images (which are 
>     again tiled or scaled) and finally a center image (also 
>     tiled/scaled).
(Continue reading)

Matthew Allum | 14 Jun 00:38

Re: [matchbox] Merge openmoko-keyboard changes

Hi;

On Wed, 2007-06-13 at 23:49 +0200, Daniel Willmann wrote:
> 
> > Therefor;
> > 
> >   - Idealy the background image should scale or tile. (being clipped
> > if larger than keyboard window size)
> 
> Tiling/scaling should probably be configurable.
> 

Yep.

> >  -  The keys are probably best made up by have a series of tiles that 
> >     make up the keys - e.g 4 corner images, 4 edge images (which are 
> >     again tiled or scaled) and finally a center image (also 
> >     tiled/scaled).
> 
> Okay, sounds good. I thought about corner/edge images but it seemed to
> be too much work for the benefit it gives us. On the other hand you
> really do want to have nice corners. :-)

It may not benefit you now but probably will in future if openmoko is
used on hardware with different resolution / DPI displays.

> 
> > This probably all need to be set in a separate 'theme' config file to
> > that of the layout files. Ideally XML based too. The theme file would
> > also define colors for keys when not 
(Continue reading)


Gmane