Bug 291763 - Improvements to widgets paste location
Summary: Improvements to widgets paste location
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries All
: NOR wishlist (vote)
Target Milestone: ---
Assignee: Umbrello Development Group
Depends on:
Reported: 2012-01-17 11:50 UTC by Ralf Habacker
Modified: 2012-01-17 13:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:

patch for selecting widgets after paste (2.83 KB, patch)
2012-01-17 11:58 UTC, Ralf Habacker
initial patch for setting paste location (1.75 KB, patch)
2012-01-17 11:58 UTC, Ralf Habacker

Note You need to log in before you can comment on or make changes to this bug.
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