Commit c12c8180 authored by Joris Steyn's avatar Joris Steyn

Implement duplication of diagrams

The popup menu of diagram list view items now contain the standard cut/copy
menu entries. A new entry 'Duplicate' allows duplicating a diagram and all
widgets, but not the underlying UML representations.

FEATURE: 85807
BUG: 327670
GUI
parent efd686cd
......@@ -1461,9 +1461,8 @@ void ListPopupMenu::setupMenu(MenuType type)
case mt_Component_Diagram:
case mt_Deployment_Diagram:
case mt_EntityRelationship_Diagram:
//don't insert standard items because cut/copy are not currently
// possible with tabbed diagrams (it didn't work anyway)
//insertStdItems(false);
insertStdItems(false);
insert(mt_Clone);
insert(mt_Rename);
insert(mt_Delete);
insert(mt_Export_Image);
......
......@@ -737,6 +737,11 @@ void UMLListView::popupMenuSel(QAction* action)
UMLApp::app()->slotEditPaste();
break;
case ListPopupMenu::mt_Clone:
UMLApp::app()->slotEditCopy();
UMLApp::app()->slotEditPaste();
break;
case ListPopupMenu::mt_Undefined:
// We got signalled for a menu action, but that menu action was not
// defined in ListPopupMenu. This is the case for "create diagram"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment