Add "Paste Transformed..." to context menu, when applicable.
parent
6e56b00b9a
commit
e87e787d3f
|
@ -588,7 +588,8 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
|
|||
}
|
||||
|
||||
if(SS.clipboard.r.n > 0 && LockedInWorkplane()) {
|
||||
AddContextMenuItem("Paste", CMNU_PASTE_SEL);
|
||||
AddContextMenuItem("Paste", CMNU_PASTE);
|
||||
AddContextMenuItem("Paste Transformed...", CMNU_PASTE_XFRM);
|
||||
}
|
||||
|
||||
if(itemsSelected) {
|
||||
|
@ -627,10 +628,14 @@ void GraphicsWindow::MouseRightUp(double x, double y) {
|
|||
MenuClipboard(MNU_COPY);
|
||||
break;
|
||||
|
||||
case CMNU_PASTE_SEL:
|
||||
case CMNU_PASTE:
|
||||
MenuClipboard(MNU_PASTE);
|
||||
break;
|
||||
|
||||
case CMNU_PASTE_XFRM:
|
||||
MenuClipboard(MNU_PASTE_TRANSFORM);
|
||||
break;
|
||||
|
||||
case CMNU_DELETE_SEL:
|
||||
MenuClipboard(MNU_DELETE);
|
||||
break;
|
||||
|
|
7
src/ui.h
7
src/ui.h
|
@ -663,9 +663,10 @@ public:
|
|||
CMNU_UNSELECT_HOVERED = 0x101,
|
||||
CMNU_CUT_SEL = 0x102,
|
||||
CMNU_COPY_SEL = 0x103,
|
||||
CMNU_PASTE_SEL = 0x104,
|
||||
CMNU_DELETE_SEL = 0x105,
|
||||
CMNU_SELECT_CHAIN = 0x106,
|
||||
CMNU_PASTE = 0x104,
|
||||
CMNU_PASTE_XFRM = 0x105,
|
||||
CMNU_DELETE_SEL = 0x106,
|
||||
CMNU_SELECT_CHAIN = 0x107,
|
||||
CMNU_NEW_CUSTOM_STYLE = 0x110,
|
||||
CMNU_NO_STYLE = 0x111,
|
||||
CMNU_GROUP_INFO = 0x120,
|
||||
|
|
Loading…
Reference in New Issue