Bug 57664 - Please implement 'duplicate' command
Summary: Please implement 'duplicate' command
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.1.1
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
: 57665 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-24 22:38 UTC by Stevan White
Modified: 2004-04-07 19:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
This patch adds the clone functionality (8.99 KB, patch)
2004-04-01 20:29 UTC, Raymond Bosman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stevan White 2003-04-24 22:38:04 UTC
Version:           1.1.1 (using KDE KDE 3.1)
OS:          Linux

Please implement a 'duplicate' command.

The way it would work for classes would be:

* User selects single class
* User right-clicks to produce pop-down menu
* User selects 'duplicate'
* A dialog pops up, prompting for a class name
* If a name is provided, a new class is created with that name, but with all other properties copied from the previously-selected class.

Similar behavior would apply to other sorts of diagram objects.
Comment 1 Chris Howells 2003-04-24 22:50:48 UTC
*** Bug 57665 has been marked as a duplicate of this bug. ***
Comment 2 Raymond Bosman 2004-04-01 20:29:24 UTC
Created attachment 5492 [details]
This patch adds the clone functionality

Mainly, this patch adds the clone and copyInto functionality to the UMLObject
tree. When the user clicks on the duplicate-item in the listpopupmenu, it calls
the clone function of the current widget, and adds this to the application and
view. 
The new widget is exactly the same as the original widget, but with an
UniqueID. 

The lists that must be duplicated, have also the clone and copyInto
functionalities. Therefore each list extend the QPtrList<type>. (There must be
an better solution than subclassing each QPtrList in the system.)
Comment 3 Raymond Bosman 2004-04-01 20:33:07 UTC
The binary is a gzipped tar file (tar.gz) file. 
Comment 4 Oliver Kellogg 2004-04-07 19:55:23 UTC
Hi Raymond,

I applied your patch.
Many thanks.