Bug 291763

Summary: Improvements to widgets paste location
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: CONFIRMED ---    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: All   
Latest Commit: Version Fixed In:
Attachments: patch for selecting widgets after paste
initial patch for setting paste location

Description Ralf Habacker 2012-01-17 11:50:38 UTC
Version:           unspecified (using Devel) 
OS:                All

When copying & paste widgets the pasted widgets are located in the top left corner. Especial when pasting multiple widgets this may overlap with existing widgets and makes it hard to move them to the required position. 

Reproducible: Always

Steps to Reproduce:
1. Create Widgets
2. copy and paste

Actual Results:  
Widgets are placed in the top left corner 

Expected Results:  
Widgets should be placed at a better place, which has to be evulated. 

One idea is to attach the pasted widgets on the mouse cursor, which then could be placed with a mouse click. Unfortunally moving multiple widgets is not implemented yet in trunk. [1] (works in the soc-umbrello branch, currently unknown if this is a QGraphicsScene feature or implemented in the umbrello code) 

Another idea is to take the mouse position on the STRG-V trigger or the right-mouse-click-paste command as the top left coordinate for pasting. Unfortunally this do not work when using the paste command from the menu (maybe a default location could be used in this case)

Another idea is to place the widgets anywhere and to select all pasted widgets, so that they can be be moved. 
Unfortunally in recent svn trunk there is no way to move multiple widgets (see [1]).
Comment 1 Ralf Habacker 2012-01-17 11:58:30 UTC
Created attachment 67922 [details]
patch for selecting widgets after paste
Comment 2 Ralf Habacker 2012-01-17 11:58:57 UTC
Created attachment 67923 [details]
initial patch for setting paste location
Comment 3 Ralf Habacker 2012-01-17 13:25:52 UTC
SVN commit 1274084 by habacker:

Select pasted widget.

 M  +6 -0      clipboard/umlclipboard.cpp  
 M  +6 -0      umlview.cpp  
 M  +11 -6     umlview.h  

WebSVN link: http://websvn.kde.org/?view=rev&revision=1274084