ocesou / hooke

Automatically exported from code.google.com/p/hooke
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Basic quick input by mouse #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi all developers,

Preamble: I have a very dirty and specific implementation of this for a
plugin I am developing, but I thought it would be nice to share and poll
for suggestions instead of limiting it to my plugin.

Problem: curve analysis is very heavy on mouse-to-keyboard (and reverse)
switches. Considering you also have to give focus to the graph or cli
window on each, it gets very cumbersome. Making graph window aware of key
presses for useful shortcuts would be perfect, but it looks difficult (or
at least I have no idea how), and thread control - messaging to the cli
would be perhaps too much to ask for.

Proposed solution: replace some annoying yes/no questions for clicks in
areas of the graph window (left/right, or even quadrants).

Example (real): suppose I want to cycle trough the list of curves and in
the interesting ones set the contact point (manually). I can launch a
function that asks me to click the contact point and if I click the left
half of the graph (not very likely to have the contact point there!) skips
the curve and goes on with the next one. Just one click per curve required!

It would be nice if you think about more situations to apply this idea. And
some clues about how to obtain the graph window size (to find in which
half/quadrant the click happened regardless of the scale bar) could be nice
too. 

Original issue reported on code.google.com by albertog...@gmail.com on 25 May 2009 at 4:30

GoogleCodeExporter commented 8 years ago
Very clever idea! 

The graph window size should be straightforward to recover from the Wx object. 
If you
have code to show about this, I'd like to see it.

Original comment by devicera...@gmail.com on 26 May 2009 at 4:29

GoogleCodeExporter commented 8 years ago
I was thinking: Wouldn't it be best, at this point, to directly add buttons to 
the GUI?

Original comment by devicera...@gmail.com on 2 Jun 2009 at 5:01

GoogleCodeExporter commented 8 years ago
Multifit plugin should give a good example of the idea.

Original comment by albertog...@gmail.com on 11 Mar 2010 at 12:09

GoogleCodeExporter commented 8 years ago
What about a right click to skip a curve or to exit from a routine?

Original comment by fabrizio...@gmail.com on 7 May 2010 at 9:14

GoogleCodeExporter commented 8 years ago
Cool, I just didn't know enough wxpython to code it that way, but using the 
three
mouse buttons would be wayyy more powerful and quick.

Original comment by glacie...@gmail.com on 8 May 2010 at 1:18