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.
*** Bug 57665 has been marked as a duplicate of this bug. ***
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.)
The binary is a gzipped tar file (tar.gz) file.
Hi Raymond, I applied your patch. Many thanks.