MCPcopy Create free account
hub / github.com/SpartanJ/eepp / createEditMenu

Method createEditMenu

src/tools/ecode/settingsmenu.cpp:1289–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1287}
1288
1289UIMenu* SettingsMenu::createEditMenu() {
1290 mEditMenu = UIPopUpMenu::New();
1291 mEditMenu->setId( "edit_menu" );
1292 mEditMenu->add( i18n( "undo", "Undo" ), findIcon( "undo" ), getKeybind( "undo" ) )
1293 ->setId( "undo" );
1294 mEditMenu->add( i18n( "redo", "Redo" ), findIcon( "redo" ), getKeybind( "redo" ) )
1295 ->setId( "redo" );
1296 mEditMenu->addSeparator();
1297 mEditMenu->add( i18n( "cut", "Cut" ), findIcon( "cut" ), getKeybind( "cut" ) )->setId( "cut" );
1298 mEditMenu->add( i18n( "copy", "Copy" ), findIcon( "copy" ), getKeybind( "copy" ) )
1299 ->setId( "copy" );
1300 mEditMenu->add( i18n( "paste", "Paste" ), findIcon( "paste" ), getKeybind( "paste" ) )
1301 ->setId( "paste" );
1302 mEditMenu
1303 ->add( i18n( "delete", "Delete" ), findIcon( "delete-text" ),
1304 getKeybind( "delete-to-next-char" ) )
1305 ->setId( "delete-to-next-char" );
1306 mEditMenu->addSeparator();
1307 mEditMenu
1308 ->add( i18n( "select_all", "Select All" ), findIcon( "select-all" ),
1309 getKeybind( "select-all" ) )
1310 ->setId( "select-all" );
1311 mEditMenu->addSeparator();
1312 mEditMenu
1313 ->add( i18n( "find_replace", "Find/Replace" ), findIcon( "find-replace" ),
1314 getKeybind( "find-replace" ) )
1315 ->setId( "find-replace" );
1316
1317 mEditMenu->addSeparator();
1318
1319 mEditMenu
1320 ->add( i18n( "open_containing_folder_in_fm", "Open Containing Folder in File Manager" ),
1321 findIcon( "folder-open" ), getKeybind( "open-containing-folder" ) )
1322 ->setId( "open-containing-folder" );
1323 mEditMenu
1324 ->add( i18n( "copy_containing_folder_path_ellipsis", "Copy Containing Folder Path..." ),
1325 findIcon( "copy" ), getKeybind( "copy-containing-folder-path" ) )
1326 ->setId( "copy-containing-folder-path" );
1327 mEditMenu
1328 ->add( i18n( "copy_file_path", "Copy File Path" ), findIcon( "copy" ),
1329 getKeybind( "copy-file-path" ) )
1330 ->setId( "copy-file-path" );
1331
1332 UIMenuSeparator* moveSep = mEditMenu->addSeparator();
1333
1334 mEditMenu
1335 ->add( i18n( "open_in_new_window", "Open in New Window" ), findIcon( "window" ),
1336 getKeybind( "open-in-new-window" ) )
1337 ->setId( "open-in-new-window" );
1338
1339 mEditMenu
1340 ->add( i18n( "move_to_new_window", "Move to New Window" ), findIcon( "window" ),
1341 getKeybind( "move-to-new-window" ) )
1342 ->setId( "move-to-new-window" );
1343
1344 UIMenuSeparator* fileSep = mEditMenu->addSeparator();
1345 mEditMenu
1346 ->add( i18n( "key_bindings", "Key Bindings" ), findIcon( "keybindings" ),

Callers

nothing calls this directly

Calls 15

addSeparatorMethod · 0.80
getNodeMethod · 0.80
getItemIdMethod · 0.80
getDocumentRefMethod · 0.80
getCurEditorMethod · 0.80
hasFilepathMethod · 0.80
getIdMethod · 0.65
NewFunction · 0.50
setIdMethod · 0.45
addMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected