Q7

Add shorcut mouse-click command for diagram operation

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.0RC5
  • Fix Version/s: 1.3.x
  • Component/s: Runtime
  • Labels:
    None

Description

We can substitute blocks of recorded command:
mouse-move 54 21 button1 -height 41 -width 125
mouse-press 54 21 button1 -height 41 -width 125
mouse-release 54 21 button1 524288 -height 41 -width 125
with one command (on ECL level):
mouse-click 54 21 -height 41 -width 125
Test cases for diagram will be more compact and readable.

Activity

Hide
komaz added a comment - 15/Aug/12 7:58 PM

Very good issue, for the shortcut command I would suggest to also get rid of state mask and add user-friendly button name.

Another idea is to utilize "mouse" command and make a special with-size command, like this:

get-figure | with-size 125:41 { mouse click -button Left -x 54 -y 21 }

with-size implementation might be tricky enough to memorize size somewhere, so that mouse handler for GEF will get this size and interpret as an old-style size arguments for GEF's mouse-press/mouse-release etc.

Show
komaz added a comment - 15/Aug/12 7:58 PM Very good issue, for the shortcut command I would suggest to also get rid of state mask and add user-friendly button name. Another idea is to utilize "mouse" command and make a special with-size command, like this: get-figure | with-size 125:41 { mouse click -button Left -x 54 -y 21 } with-size implementation might be tricky enough to memorize size somewhere, so that mouse handler for GEF will get this size and interpret as an old-style size arguments for GEF's mouse-press/mouse-release etc.

People

Vote (0)
Watch (0)

Dates

  • Created:
    15/Jul/11 2:05 PM
    Updated:
    16/Jan/13 5:48 PM