Bug 70924 - Allow copy/paste of attributes, operations etc
Summary: Allow copy/paste of attributes, operations etc
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Oliver Kellogg
URL:
Keywords:
: 76194 81064 87063 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-20 16:37 UTC by Jonathan Riddell
Modified: 2007-09-12 06:52 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Riddell 2003-12-20 16:37:23 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Internal changes mean Classifier List Items (attributes, operations, enum literals, templates) can no longer be copied and pasted.
Comment 1 Jonathan Riddell 2004-03-12 10:15:09 UTC
*** Bug 76194 has been marked as a duplicate of this bug. ***
Comment 2 Jonathan Riddell 2004-03-12 10:16:26 UTC
As pointed out in 76194 pasteing an operation in the list view can result in it being added at the bottom of the list view, right clicking it and choosing from the menu causes a crash.
Comment 3 Jonathan Riddell 2004-05-28 00:44:57 UTC
*** Bug 81064 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Stein 2004-08-13 09:48:07 UTC
*** Bug 87063 has been marked as a duplicate of this bug. ***
Comment 5 Mathieu Jobin 2004-08-13 16:24:17 UTC
please, drag n drop too
Comment 6 Mathieu Jobin 2004-08-24 23:44:15 UTC
please vote for this bug
Comment 7 Oliver Kellogg 2005-04-24 17:26:33 UTC
CVS commit by okellogg: 

First stab at restoring cut&paste of classifier list items:
UMLDoc::makeNewClassifierObject(): Set back to work. Make static.
UMLDoc::makeNewUMLObject(): Make static.
UMLListView::getSelectedItems(): Return number of selected items.
UMLListView::focusOutEvent(): Don't clearSelection() when the focus change
  is caused by the list popup.
UMLDrag::decodeClip5(): Pass in the new parent classifier.
CCBUG:70924


  M +1 -1      classifier.cpp   1.73
  M +1 -1      package.cpp   1.35
  M +17 -1     umldoc.cpp   1.248
  M +2 -2      umldoc.h   1.97
  M +9 -5      umllistview.cpp   1.155
  M +7 -1      umllistview.h   1.57
  M +13 -5     clipboard/umlclipboard.cpp   1.27
  M +10 -13    clipboard/umldrag.cpp   1.30
  M +3 -2      clipboard/umldrag.h   1.13
Comment 8 Oliver Kellogg 2005-04-26 21:58:41 UTC
CVS commit by okellogg: 

BUG:70924 - UMLDrag::decodeClip5: Add missing pObject->resolveRef().
Further, remove UMLDoc* arg at UMLClipboard and UMLDrag methods.


  M +2 -2      ChangeLog   1.76
  M +30 -37    umbrello/uml.cpp   1.143
  M +8 -13     umbrello/umlview.cpp   1.216
  M +1 -1      umbrello/umlview.h   1.76
  M +54 -59    umbrello/clipboard/umlclipboard.cpp   1.28
  M +19 -28    umbrello/clipboard/umlclipboard.h   1.13
  M +7 -4      umbrello/clipboard/umldrag.cpp   1.31
  M +2 -3      umbrello/clipboard/umldrag.h   1.14
Comment 9 Sean Flynn 2007-09-12 02:03:50 UTC
Need the copy and paste.  It is extremely tedious to type out 50 methods in different classes that have nearly identical function, documentation and parameters.
Comment 10 Oliver Kellogg 2007-09-12 06:52:50 UTC
> Need the copy and paste. [...]

Works fine for me with 1.5.71 in the listview area (left pane):
Right click on the source operation/attribute, select "Copy".
Then right click on the target class, select "Paste".