summaryrefslogtreecommitdiff
path: root/src/ui/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/root.c')
-rw-r--r--src/ui/root.c33
1 files changed, 24 insertions, 9 deletions
diff --git a/src/ui/root.c b/src/ui/root.c
index 59f98aa4..91f9fbb3 100644
--- a/src/ui/root.c
+++ b/src/ui/root.c
@@ -1401,23 +1401,38 @@ void createUserInterface_Root(iRoot *d) {
1401 { "${menu.closetab.other}", 0, 0, "tabs.close toleft:1 toright:1" }, 1401 { "${menu.closetab.other}", 0, 0, "tabs.close toleft:1 toright:1" },
1402 { barLeftArrow_Icon " ${menu.closetab.left}", 0, 0, "tabs.close toleft:1" }, 1402 { barLeftArrow_Icon " ${menu.closetab.left}", 0, 0, "tabs.close toleft:1" },
1403 { barRightArrow_Icon " ${menu.closetab.right}", 0, 0, "tabs.close toright:1" }, 1403 { barRightArrow_Icon " ${menu.closetab.right}", 0, 0, "tabs.close toright:1" },
1404 }, 1404 },
1405 6); 1405 6);
1406 iWidget *barMenu = 1406 iWidget *barMenu =
1407 makeMenu_Widget(root, 1407 makeMenu_Widget(root,
1408 (iMenuItem[]){ 1408 (iMenuItem[]){
1409 { leftHalf_Icon " ${menu.sidebar.left}", 0, 0, "sidebar.toggle" }, 1409 { leftHalf_Icon " ${menu.sidebar.left}", 0, 0, "sidebar.toggle" },
1410 { rightHalf_Icon " ${menu.sidebar.right}", 0, 0, "sidebar2.toggle" }, 1410 { rightHalf_Icon " ${menu.sidebar.right}", 0, 0, "sidebar2.toggle" },
1411 }, 1411 },
1412 deviceType_App() == phone_AppDeviceType ? 1 : 2); 1412 deviceType_App() == phone_AppDeviceType ? 1 : 2);
1413 iWidget *clipMenu = makeMenu_Widget(root, 1413 iWidget *clipMenu = makeMenu_Widget(root,
1414 (iMenuItem[]){ 1414#if defined (iPlatformMobile)
1415 { scissor_Icon " ${menu.cut}", 0, 0, "input.copy cut:1" }, 1415 (iMenuItem[]){
1416 { clipCopy_Icon " ${menu.copy}", 0, 0, "input.copy" }, 1416 { ">>>" scissor_Icon " ${menu.cut}", 0, 0, "input.copy cut:1" },
1417 { "---" }, 1417 { ">>>" clipCopy_Icon " ${menu.copy}", 0, 0, "input.copy" },
1418 { clipboard_Icon " ${menu.paste}", 0, 0, "input.paste" }, 1418 { ">>>" clipboard_Icon " ${menu.paste}", 0, 0, "input.paste" },
1419 }, 1419 { "---" },
1420 4); 1420 { ">>>" delete_Icon " " uiTextCaution_ColorEscape "${menu.delete}", 0, 0, "input.delete" },
1421 { ">>>" select_Icon " ${menu.selectall}", 0, 0, "input.selectall" },
1422 { ">>>" undo_Icon " ${menu.undo}", 0, 0, "input.undo" },
1423 }, 7);
1424#else
1425 (iMenuItem[]){
1426 { scissor_Icon " ${menu.cut}", 0, 0, "input.copy cut:1" },
1427 { clipCopy_Icon " ${menu.copy}", 0, 0, "input.copy" },
1428 { clipboard_Icon " ${menu.paste}", 0, 0, "input.paste" },
1429 { "---" },
1430 { delete_Icon " " uiTextCaution_ColorEscape "${menu.delete}", 0, 0, "input.delete" },
1431 { undo_Icon " ${menu.undo}", 0, 0, "input.undo" },
1432 { "---" },
1433 { select_Icon " ${menu.selectall}", 0, 0, "input.selectall" },
1434 }, 8);
1435#endif
1421 iWidget *splitMenu = makeMenu_Widget(root, (iMenuItem[]){ 1436 iWidget *splitMenu = makeMenu_Widget(root, (iMenuItem[]){
1422 { "${menu.split.merge}", '1', 0, "ui.split arg:0" }, 1437 { "${menu.split.merge}", '1', 0, "ui.split arg:0" },
1423 { "${menu.split.swap}", SDLK_x, 0, "ui.split swap:1" }, 1438 { "${menu.split.swap}", SDLK_x, 0, "ui.split swap:1" },