Commit 8ae59437 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix Bring to Front/Send to Back by putting them in the popup menu. It would be...

fix Bring to Front/Send to Back by putting them in the popup menu. It would be better if the user could select multiple objects at a time, but the x/y coord-based implementation doesn't allow for that.
parent 9caa8ef4
......@@ -994,6 +994,21 @@ function create_popup_menu(name) {
pdgui.popup_action(name, 2);
}
}));
popup_menu.append(new gui.MenuItem({
type: "separator",
}));
popup_menu.append(new gui.MenuItem({
label: "Bring to Front",
click: function() {
pdgui.popup_action(name, 3);
}
}));
popup_menu.append(new gui.MenuItem({
label: "Send to Back",
click: function() {
pdgui.popup_action(name, 4);
}
}));
}
function nw_undo_menu(undo_text, redo_text) {
......@@ -1225,14 +1240,6 @@ function nw_create_patch_window_menus(gui, w, name) {
enabled: true,
click: function() { pdgui.pdsend(name, "tidy"); }
});
minit(m.edit.tofront, {
enabled: true,
click: function() { pdgui.popup_action(name, 3); }
});
minit(m.edit.toback, {
enabled: true,
click: function() { pdgui.popup_action(name, 4); }
});
minit(m.edit.font, {
enabled: true,
click: function () { pdgui.pdsend(name, "menufont"); }
......
......@@ -248,15 +248,6 @@ function create_menu(gui, type) {
modifiers: cmd_or_ctrl,
tooltip: l("menu.tidyup_tt")
}));
edit_menu.append(m.edit.tofront = new gui.MenuItem({
label: l("menu.tofront"),
tooltip: l("menu.tofront_tt")
}));
edit_menu.append(m.edit.toback = new gui.MenuItem({
label: l("menu.toback"),
tooltip: l("menu.toback_tt")
}));
edit_menu.append(new gui.MenuItem({ type: "separator" }));
edit_menu.append(m.edit.font = new gui.MenuItem({
label: l("menu.font"),
tooltip: l("menu.font_tt")
......
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