Gesturing freely
Once again quard (Irek Khasyanov) has performed miracles. The trunk contains a version of the mouse gesture recognizer that can match movements live - no need for a special activation key - just pick a distinct enough gesture and it all works. Visit the repo at http://code.google.com/p/mouse-gesture-recognizer/source .
7 Comments:
Oooh, sweetness. Will this make it into KDE 4? Can it be linked into KAction perchance? It'd be wonderful if we could allocate gestures to actions in the same way we do keyboard shortcuts!
It has its own action-like object right now, so integration should not be a problem. Check out http://doc.trolltech.com/qq/qq18-mousegestures.html for a closer look.
Sounds cool! I'm missing one thing in mouse gestures in kde. I'd like to have gesture like down, left, (up|down). When moving mouse up or down at last movent, volume would increase or decrease.
Wonderful, Johan. Thanks! :)
How hard would it be to add an interface to KDE's shortcut edition dialogs so that we could add mouse gestures in lieu of (or in addition to) the usual keyboard shortcut? I've been hoping for such a feature for, without exaggeration, years. (And now you're personally one step away from delivering. I'm considering making you one of my personal heroes. :D)
It would not be impossible - but there is still more functionality needed - if nothing else, a gesture designer widget is missing.
Also, you must remember that all applications using this needs to have an event filter installed and then the KAction class has to be extended.
Okay. Thanks for the explanations, Johan. :)
Do you think the steps you listed would be feasible, or are they just a pipe dream?
Also, silly question but... When you make a gesture, is it full-screen, or do you have to keep it within the bounding rectangle of the concerned application?
Thanks. :)
It is not impossible, but I cannot do the work in the forseable future. Going outside the application's area is just a matter of grabbing the mouse, etc.
I aim to make the mgesturer more "productified" in the near future - a lib with examples and good documentation. From there, the posibilities are endless :-)
Post a Comment
<< Home