Bug 414511

Summary: Cannot move start point and end point of a transition to any position of a state border
Product: [Applications] umbrello Reporter: Carsten Behling <carsten.behling>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on: 414520, 414568    
Bug Blocks:    
Attachments: On Off Statemachine
horizontal auto layout for state diagrams

Description Carsten Behling 2019-11-25 20:56:43 UTC
Created attachment 124117 [details]
On Off Statemachine

SUMMARY

When I draw to states with a transition to each other. Th transition arrows are always one on top of the other.

It is hard to separate the two arrow from each other by e.g. moving the start points and end points of those arrows along the state border.

STEPS TO REPRODUCE
1. add a state diagram
2. add a state "On" to that diagram
3. add a state "Off" to that diagram
4. add a transition from "Off" to "On" with event trigger "Power Button"
5. add a state transition from "On" to "Off" with event trigger "Power Button" (=> the second transition arrow is on top of the first one)
6. try to separate both arrows to e.g. be parallel with a distance between them by moving the arrows ore the start points and endpoints with the mouse

OBSERVED RESULT

It's not possible to separate both transition arrows.

EXPECTED RESULT

It should be possible to move the start and end points along the state border and drag the the transition arrows. 

SOFTWARE/OS VERSIONS
Windows: not important here
macOS: not important here
Linux/KDE Plasma: not important here
(available in About System)
KDE Plasma Version: not important here
KDE Frameworks Version: not important here
Qt Version: not important here

ADDITIONAL INFORMATION

Comparing with Enterprise Architect or Rhapsody it feels really annoying drawing state charts.
Comment 1 Ralf Habacker 2019-11-26 09:37:54 UTC
>When I draw to states with a transition to each other. Th transition arrows are >always one on top of the other.

A solution is to change the type of association line to 'Spline', which gives you control points for each line. This makes it easy to adjust individual lines.

To use 'spline' association line type by default you can set "Create new association lines as" in the main page of the settings dialog.

Please note that there is currently a bug with to setting the default line style mode. See bug 414520 for details, which has been already fixed in git branch release/19.12.
Comment 2 Ralf Habacker 2019-11-27 12:29:37 UTC
Created attachment 124139 [details]
horizontal auto layout for state diagrams

For applying an auto layout similar to the layout on your screenshot you may save this file into "$HOME/.local/share/umbrello5/layouts/state-horizontal.desktop to get a horizontal layout.

Adjustments to the file may improve the view.