/// <summary> /// Adds the platform-specific commands. /// </summary> partial void AddPlatformCommands() { ////CommandList.Add(RemoveAndRefreshCommandsSegmentCommand); AddRomFilesCommand.VisualParent = RootCommandGroup.RootCommand; // add to toolbar AddRomFilesCommand.MenuParent = RootCommandGroup.FileMenuCommand; AddRomFoldersCommand.VisualParent = RootCommandGroup.RootCommand; // add to toolbar AddRomFoldersCommand.MenuParent = RootCommandGroup.FileMenuCommand; ////RemoveRomsCommand.VisualParent = RemoveAndRefreshCommandsSegmentCommand; EditRomFeaturesCommand.MenuParent = RootCommandGroup.EditMenuCommand; EditProgramNameCommand.MenuParent = RootCommandGroup.EditMenuCommand; RomListGroupCommand.MenuParent = RootCommandGroup.EditMenuCommand; RemoveRomsCommand.MenuParent = RootCommandGroup.EditMenuCommand; RemoveRomsCommand.SmallIcon = NSImage.ImageNamed("NSRemoveTemplate"); RemoveRomsCommand.KeyboardShortcutKey = CommandProviderHelpers.NSBackspaceCharacterString; // delete ValidateRomsCommand.KeyboardShortcutKey = "r"; ValidateRomsCommand.KeyboardShortcutModifiers = OSModifierKeys.Menu; ValidateRomsCommand.MenuParent = RootCommandGroup.ViewMenuCommand; ////RefreshRomsCommand.VisualParent = RemoveAndRefreshCommandsSegmentCommand; RefreshRomsCommand.MenuParent = RootCommandGroup.ViewMenuCommand; RefreshRomsCommand.SmallIcon = NSImage.ImageNamed("NSRefreshTemplate"); CommandList.Add(RefreshRomsCommand.CreateSeparator(CommandLocation.After)); ShowRomInfoCommand.MenuParent = RootCommandGroup.ViewMenuCommand; CommandList.Add(EditRomFeaturesCommand); }
/// <inheritdoc /> partial void AddPlatformCommands() { RomListGroupCommand.MenuParent = RootCommandGroup.ApplicationMenuCommand; RomListGroupCommand.Weight = 0.101; AddRomFilesCommand.VisualParent = RomsRibbonGroupCommand; AddRomFilesCommand.MenuParent = RootCommandGroup.ApplicationMenuCommand; AddRomFilesCommand.UseXamlResource = true; AddRomFoldersCommand.VisualParent = RomsRibbonGroupCommand; AddRomFoldersCommand.MenuParent = RootCommandGroup.ApplicationMenuCommand; AddRomFoldersCommand.UseXamlResource = true; RemoveRomsCommand.VisualParent = RomsRibbonGroupCommand; RemoveRomsCommand.UseXamlResource = true; RefreshRomsCommand.MenuParent = RomListGroupCommand; ShowRomInfoCommand.VisualParent = RomsRibbonGroupCommand; ShowRomInfoCommand.UseXamlResource = true; ShowRomInfoCommand.Weight = 0.13; EditProgramNameCommand.VisualParent = RomsRibbonGroupCommand; EditProgramNameCommand.UseXamlResource = true; EditProgramNameCommand.Weight = 0.14; ValidateRomsCommand.MenuParent = RomListGroupCommand; BackupRomListCommand.Weight = 0.136; RestoreRomListCommand.Weight = 0.137; CommandList.Add(RomListGroupCommand.CreateRibbonMenuSeparator(CommandLocation.After, true)); CommandList.Add(RomsRibbonGroupCommand); CommandList.Add(RunProgramRibbonCommand); CommandList.Add(RunProgramRibbonCommand.CreateRibbonSeparator(CommandLocation.After)); CommandList.Add(RefreshRomsCommand.CreateRibbonMenuSeparator(CommandLocation.After, true)); }