| 1 | namespace CascadeIDE.Services; |
| 2 | |
| 3 | /// <summary>Фокус, снимок окна, видимость панелей и режим UI (ide_execute_command).</summary> |
| 4 | public static partial class IdeCommands |
| 5 | { |
| 6 | /// <summary>Передать фокус в редактор (чтобы клавиши/ввод шли в него). returns: text.</summary> |
| 7 | public const string FocusEditor = "focus_editor"; |
| 8 | /// <summary>Снимок окон IDE в PNG (по умолчанию главное окно; при scope=all — все top-level, в т.ч. окно-хост Mfd и прочие). args: scope?:string, workspace_path?:string, output_path?:string; returns: json. example: {"scope":"all","workspace_path":"D:\\\\tmp\\\\ws","output_path":".cascade-ide/window-{n}.png"}.</summary> |
| 9 | public const string CaptureWindow = "capture_window"; |
| 10 | /// <summary>Как меню «Вид → Терминал» (переключатель). returns: text.</summary> |
| 11 | public const string ToggleTerminal = "toggle_terminal"; |
| 12 | /// <summary>Сплиттеры рабочей области: переключить ON GND / IN AIR (мелодия tol, лампа TOL в task cockpit). returns: text.</summary> |
| 13 | public const string ToggleWorkspaceSplittersLock = "toggle_workspace_splitters_lock"; |
| 14 | /// <summary>Как меню «Вид → Вывод сборки». returns: text.</summary> |
| 15 | public const string ToggleBuildOutput = "toggle_build_output"; |
| 16 | /// <summary>Переключить развёрнут/свёрнут регион Pfd (как меню «Вид → Карта намерений (PFD)»). returns: text.</summary> |
| 17 | public const string TogglePfdRegionExpanded = "toggle_pfd_region_expanded"; |
| 18 | |
| 19 | /// <summary>Карта намерений: цикл вида list → graph → both (палитра; быстрый путь — Ctrl+K → S → P). returns: text.</summary> |
| 20 | public const string CycleCodeNavigationMapPresentation = "cycle_code_navigation_map_presentation"; |
| 21 | |
| 22 | /// <summary>Карта намерений: переключить уровень file ↔ controlFlow (Ctrl+K → S → F). returns: text.</summary> |
| 23 | public const string CycleCodeNavigationMapLevel = "cycle_code_navigation_map_level"; |
| 24 | |
| 25 | /// <summary>Карта намерений: установить уровень <c>file</c> или <c>controlFlow</c> (слэш <c>/map type …</c>). args: level:string; returns: text; example: {"level":"file"}.</summary> |
| 26 | public const string SetCodeNavigationMapLevel = "set_code_navigation_map_level"; |
| 27 | |
| 28 | /// <summary>Карта намерений: цикл детализации glance → normal → inspect (Ctrl+K → S → D). returns: text.</summary> |
| 29 | public const string CycleCodeNavigationMapDetailLevel = "cycle_code_navigation_map_detail_level"; |
| 30 | |
| 31 | /// <summary>Карта намерений: цикл укладки related-files radial → top_down → bottom_up. returns: text.</summary> |
| 32 | public const string CycleCodeNavigationMapRelatedGraphLayout = "cycle_code_navigation_map_related_graph_layout"; |
| 33 | /// <summary>Явно показать/скрыть терминал (без переключения). args: visible:boolean; returns: text; example: {"visible":true}.</summary> |
| 34 | public const string SetTerminalVisible = "set_terminal_visible"; |
| 35 | /// <summary>Явно показать/скрыть журнал сборки. args: visible:boolean; returns: text; example: {"visible":true}.</summary> |
| 36 | public const string SetBuildOutputVisible = "set_build_output_visible"; |
| 37 | /// <summary>Режим UI (как меню «Вид → Режим интерфейса»). args: mode:string; returns: text; example: {"mode":"Flight"}.</summary> |
| 38 | public const string SetUiMode = "set_ui_mode"; |
| 39 | } |
| 40 | |