| 1 | using CascadeIDE.Features.Build; |
| 2 | using CascadeIDE.Features.Debug; |
| 3 | using CascadeIDE.Features.Documents; |
| 4 | using CascadeIDE.Features.Shell; |
| 5 | using CommunityToolkit.Mvvm.Input; |
| 6 | |
| 7 | namespace CascadeIDE.ViewModels; |
| 8 | |
| 9 | /// <summary> |
| 10 | /// Wave 2: прокси RelayCommand на feature VMs (XAML, MCP, hotkeys без смены привязок). |
| 11 | /// </summary> |
| 12 | public partial class MainWindowViewModel |
| 13 | { |
| 14 | public IRelayCommand OpenSolutionCommand => ApplicationShell.OpenSolutionCommand; |
| 15 | |
| 16 | public IRelayCommand CreateNewSolutionCommand => ApplicationShell.CreateNewSolutionCommand; |
| 17 | |
| 18 | public IRelayCommand OpenFolderCommand => ApplicationShell.OpenFolderCommand; |
| 19 | |
| 20 | public IRelayCommand OpenFileFromDialogCommand => ApplicationShell.OpenFileFromDialogCommand; |
| 21 | |
| 22 | public IRelayCommand ExitCommand => ApplicationShell.ExitCommand; |
| 23 | |
| 24 | public IRelayCommand AboutCommand => ApplicationShell.AboutCommand; |
| 25 | |
| 26 | public IRelayCommand OpenSettingsCommand => ApplicationShell.OpenSettingsCommand; |
| 27 | |
| 28 | public IRelayCommand OpenFullSettingsWindowCommand => ApplicationShell.OpenFullSettingsWindowCommand; |
| 29 | |
| 30 | public IRelayCommand ToggleMfdHostWindowCommand => ApplicationShell.ToggleMfdHostWindowCommand; |
| 31 | |
| 32 | public IRelayCommand TogglePmSplitHostWindowCommand => ApplicationShell.TogglePmSplitHostWindowCommand; |
| 33 | |
| 34 | public IAsyncRelayCommand ApplyDarkThemeCommand => ApplicationShell.ApplyDarkThemeCommand; |
| 35 | |
| 36 | public IAsyncRelayCommand ApplyLightThemeCommand => ApplicationShell.ApplyLightThemeCommand; |
| 37 | |
| 38 | public IAsyncRelayCommand ApplyCursorLikeThemeCommand => ApplicationShell.ApplyCursorLikeThemeCommand; |
| 39 | |
| 40 | public IAsyncRelayCommand ApplyPowerClassicThemeCommand => ApplicationShell.ApplyPowerClassicThemeCommand; |
| 41 | |
| 42 | public IRelayCommand<string?> SetUiLanguageCommand => ApplicationShell.SetUiLanguageCommand; |
| 43 | |
| 44 | public IRelayCommand ResetUiLanguageToSystemCommand => ApplicationShell.ResetUiLanguageToSystemCommand; |
| 45 | |
| 46 | public IAsyncRelayCommand OpenThemeFileCommand => ApplicationShell.OpenThemeFileCommand; |
| 47 | |
| 48 | public IRelayCommand DebugStartOrContinueCommand => Debug.DebugStartOrContinueCommand; |
| 49 | |
| 50 | public IRelayCommand DebugAttachCommand => Debug.DebugAttachCommand; |
| 51 | |
| 52 | public IRelayCommand DebugStopCommand => Debug.DebugStopCommand; |
| 53 | |
| 54 | public IRelayCommand DebugStepOverCommand => Debug.DebugStepOverCommand; |
| 55 | |
| 56 | public IRelayCommand DebugStepIntoCommand => Debug.DebugStepIntoCommand; |
| 57 | |
| 58 | public IRelayCommand DebugStepOutCommand => Debug.DebugStepOutCommand; |
| 59 | |
| 60 | public IAsyncRelayCommand BuildSolutionCommand => Build.BuildSolutionCommand; |
| 61 | |
| 62 | public IRelayCommand HideBuildOutputCommand => Build.HideBuildOutputCommand; |
| 63 | |
| 64 | public IRelayCommand TogglePfdRegionExpandedCommand => Shell.TogglePfdRegionExpandedCommand; |
| 65 | |
| 66 | public IRelayCommand ToggleMfdRegionExpandedCommand => Shell.ToggleMfdRegionExpandedCommand; |
| 67 | |
| 68 | public IRelayCommand ToggleBuildOutputCommand => Shell.ToggleBuildOutputCommand; |
| 69 | |
| 70 | public IRelayCommand ToggleTerminalCommand => Shell.ToggleTerminalCommand; |
| 71 | |
| 72 | public IRelayCommand ToggleInstrumentationDockCommand => Shell.ToggleInstrumentationDockCommand; |
| 73 | |
| 74 | public IRelayCommand SetSingleEditorGroupCommand => Shell.SetSingleEditorGroupCommand; |
| 75 | |
| 76 | public IRelayCommand SetDualEditorGroupCommand => Shell.SetDualEditorGroupCommand; |
| 77 | |
| 78 | public IRelayCommand SetTripleEditorGroupCommand => Shell.SetTripleEditorGroupCommand; |
| 79 | |
| 80 | public IRelayCommand ShowPfdRegionPanelCommand => Shell.ShowPfdRegionPanelCommand; |
| 81 | |
| 82 | public IRelayCommand ShowBuildOutputPanelCommand => Shell.ShowBuildOutputPanelCommand; |
| 83 | |
| 84 | public IRelayCommand ShowChatPageCommand => Shell.ShowChatPageCommand; |
| 85 | |
| 86 | public IRelayCommand ShowSolutionExplorerPageCommand => Shell.ShowSolutionExplorerPageCommand; |
| 87 | |
| 88 | public IRelayCommand ShowRelatedFilesMfdPageCommand => Shell.ShowRelatedFilesMfdPageCommand; |
| 89 | |
| 90 | public IRelayCommand ShowTerminalPanelCommand => Shell.ShowTerminalPanelCommand; |
| 91 | |
| 92 | public IRelayCommand<string?> SetUiModeByIdCommand => Shell.SetUiModeByIdCommand; |
| 93 | |
| 94 | public IRelayCommand<object?> SetUiModeByIndexCommand => Shell.SetUiModeByIndexCommand; |
| 95 | |
| 96 | public IRelayCommand CycleUiModeCommand => Shell.CycleUiModeCommand; |
| 97 | |
| 98 | public IRelayCommand<string?> ActivateDocumentCommand => Documents.ActivateDocumentCommand; |
| 99 | |
| 100 | public IRelayCommand<string?> CloseDocumentCommand => Documents.CloseDocumentCommand; |
| 101 | |
| 102 | public IRelayCommand<string?> TogglePinDocumentCommand => Documents.TogglePinDocumentCommand; |
| 103 | |
| 104 | public IRelayCommand<string?> MoveDocumentToGroup1Command => Documents.MoveDocumentToGroup1Command; |
| 105 | |
| 106 | public IRelayCommand<string?> MoveDocumentToGroup2Command => Documents.MoveDocumentToGroup2Command; |
| 107 | |
| 108 | public IRelayCommand<string?> MoveDocumentToGroup3Command => Documents.MoveDocumentToGroup3Command; |
| 109 | |
| 110 | public IRelayCommand ReopenClosedDocumentCommand => Documents.ReopenClosedDocumentCommand; |
| 111 | |
| 112 | public IRelayCommand SetSafetyObserveCommand => Shell.SetSafetyObserveCommand; |
| 113 | |
| 114 | public IRelayCommand SetSafetyConfirmCommand => Shell.SetSafetyConfirmCommand; |
| 115 | |
| 116 | public IRelayCommand SetSafetyAutonomousCommand => Shell.SetSafetyAutonomousCommand; |
| 117 | |
| 118 | public IRelayCommand ShowMarkdownPreviewPageCommand => Shell.ShowMarkdownPreviewPageCommand; |
| 119 | |
| 120 | public IRelayCommand OpenPreviewWindowCommand => Shell.OpenPreviewWindowCommand; |
| 121 | } |
| 122 | |