Beispiel #1
0
        /// <summary>
        /// GTK-specific implementation.
        /// </summary>
        partial void AddPlatformCommands()
        {
            CommandList.Add(SyncToDeviceSubmenuCommand);
            CommandList.Add(SyncFromDeviceSubmenuCommand);
            CommandList.Add(SyncToDeviceSubmenuCommand.CreateSeparator(CommandLocation.Before));

            SyncHostToDeviceCommand.Weight            = 0.111;
            SyncHostToDeviceCommand.VisualParent      = RootCommandGroup.RootCommand; // put into toolbar
            SyncHostToDeviceCommand.MenuParent        = SyncToDeviceSubmenuCommand;
            SyncHostToDevicePreviewCommand.Weight     = SyncHostToDeviceCommand.Weight;
            SyncHostToDevicePreviewCommand.MenuParent = SyncToDeviceSubmenuCommand;

            CommandList.Add(SyncHostToDeviceCommand.CreateToolbarSeparator(CommandLocation.Before));

            SyncDeviceToHostCommand.VisualParent      = null; // do not put into toolbar
            SyncDeviceToHostCommand.MenuParent        = SyncFromDeviceSubmenuCommand;
            SyncDeviceToHostPreviewCommand.Weight     = SyncDeviceToHostCommand.Weight;
            SyncDeviceToHostPreviewCommand.MenuParent = SyncFromDeviceSubmenuCommand;

            DownloadAndPlayCommand.MenuParent   = RootCommandGroup.FileMenuCommand;
            DownloadAndPlayCommand.Weight       = 0.02;
            DownloadAndPlayCommand.VisualParent = RomListCommandGroup.RunProgramToolbarCommand; // put into toolbar

            DownloadAndPlayPromptCommand.MenuParent   = RootCommandGroup.FileMenuCommand;
            DownloadAndPlayPromptCommand.Weight       = 0.03;
            DownloadAndPlayPromptCommand.VisualParent = RomListCommandGroup.RunProgramToolbarCommand; // put into toolbar

            CommandList.Add(DownloadAndPlayPromptCommand.CreateSeparator(CommandLocation.After));

            SyncClearChangesPreviewCommand.Weight     = 0.34;
            SyncClearChangesPreviewCommand.MenuParent = RootCommandGroup.ToolsMenuCommand;
        }
Beispiel #2
0
        /// <inheritdoc />
        partial void AddPlatformCommands()
        {
            DownloadAndPlayCommand.VisualParent          = RomListCommandGroup.RunProgramRibbonCommand;
            DownloadAndPlayCommand.MenuParent            = RootCommandGroup.ApplicationMenuCommand;
            DownloadAndPlayCommand.UseXamlResource       = true;
            DownloadAndPlayPromptCommand.VisualParent    = RomListCommandGroup.RunProgramRibbonCommand;
            DownloadAndPlayPromptCommand.MenuParent      = RootCommandGroup.ApplicationMenuCommand;
            DownloadAndPlayPromptCommand.UseXamlResource = true;

            SyncHostToDevicePreviewCommand.VisualParent = MenuLayoutCommandGroup.SyncHostToDeviceRibbonButtonCommand;
            SyncHostToDeviceCommand.VisualParent        = MenuLayoutCommandGroup.SyncHostToDeviceRibbonButtonCommand;
            SyncClearChangesPreviewCommand.VisualParent = MenuLayoutCommandGroup.SyncHostToDeviceRibbonButtonCommand;

            CommandList.Add(DownloadAndPlayPromptCommand.CreateRibbonMenuSeparator(CommandLocation.After, true));
            CommandList.Add(FileSystemRibbonGroupCommand);
            CommandList.Add(SyncDeviceToHostRibbonButtonCommand);
        }