#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.
- 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.
- 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 , 9 years ago
Milestone: | Future → 1.9.4 |
---|---|
Status: | new → accepted |
comment:2 by , 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 , 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 , 9 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
The fix is now available via the nightly build.
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.