Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3529 closed enhancement (fixed)

Improve connecting ports in OMEdit

Reported by: Bernhard Thiele Owned by: Adeel Asghar
Priority: high Milestone: 1.9.4
Component: OMEdit Version:
Keywords: Cc:

Description

I'm currently using OMEdit for teaching in a Modelica course. Sometimes students experience a problem to connect ports. Most of time it works fine, but for some reasons it sometimes just won't work.

The problem is that this bug is hard to reproduce, because whether it works or not seems to be quite specific on the installation. Sometimes restarting OMEdit will allow to make the connection. This clearly is very dissatisfying for the users.

I wonder whether it could be improved and made more robust. I have two improvement ideas for that, that one could discuss.

  1. My impression (maybe wrong) is that sometimes the editor will always be in drag-and-drop mode for certain components and just not switch to "connect mode". Maybe if the button "Connect/Unconnect Mode" could be extended to support three modes (e.g., via a choices list):
  • Drag-and-drop + connect
  • Drag-and-drop only
  • Connect only

Drawing connection could be possibly made more robust if switching into "Connect only" mode.

  1. Another idea that could help users is if a graphical indication is drawn if hovering with the cursor/"connection end" over a port at a place there OMEdit recognizes that it can make a connection, e.g., the cursor could change to indicate that a connection can be made at this point, or the port icon could change color or s.th. similar.

Change History (6)

comment:1 by Adeel Asghar, 9 years ago

Milestone: Future1.9.4
Status: newaccepted

In general in order to make a connection the component should not be selected. Then you must click and drag to start the connection. If the component is selected then OMEdit thinks that you want to move the component.

Your suggestion 1 is already there, If you select connect mode this means "Drag-and-drop + connect", if you unselect connect mode this means "Drag-and-drop + connect". However, there is no "Connect only" mode and I think we don't need it but is possible to implement.

Your suggestion 2 is already implemented in a development branch and will be available in the 1.9.4 final release. OMEdit shows connect cursor when user hovers over a port.

comment:2 by Bernhard Thiele, 9 years ago

It's great that you already implemented "2.". I just wanted to try it and pulled from the the official master branch and compiled in Linux. However, I couldn't observe the change. Do you mean the official master branch with development branch or your own branch?

comment:3 by Adeel Asghar, 9 years ago

I mean my own branch. If you want to try it out then checkout from here https://github.com/adeas31/OMEdit/tree/indentation.

comment:4 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: acceptedclosed

The fix is now available via the nightly build.

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.