| 1 | namespace CascadeIDE.Features.UiChrome; |
| 2 | |
| 3 | /// <summary> |
| 4 | /// Числовые константы рабочей области: MainGrid, нижняя зона, колонка редактора, ширины региона Mfd по режимам. |
| 5 | /// Единая точка вместо разрозненных литералов в VM и code-behind. |
| 6 | /// </summary> |
| 7 | public static class UiWorkspaceLayoutDimensions |
| 8 | { |
| 9 | /// <summary> |
| 10 | /// Индексы колонок <c>MainWindow.MainGrid</c> (док-панель: PFD | сплиттер | Forward | сплиттер | MFD). |
| 11 | /// Согласовано с <c>MainWindow.axaml</c> и сборщиком строки колонок presentation (5 колонок). |
| 12 | /// </summary> |
| 13 | public static class MainWindowMainGridColumns |
| 14 | { |
| 15 | public const int PfdRegion = 0; |
| 16 | public const int PfdSplitter = 1; |
| 17 | public const int ForwardRegion = 2; |
| 18 | public const int MfdSplitter = 3; |
| 19 | public const int MfdRegion = 4; |
| 20 | |
| 21 | /// <summary>Число колонок в дефолтной строке <c>ColumnDefinitions</c> главного окна.</summary> |
| 22 | public const int Count = MfdRegion + 1; |
| 23 | } |
| 24 | |
| 25 | /// <summary>Колонки <c>EditorContentGrid</c> во вкладке документа.</summary> |
| 26 | public static class EditorContentGridColumns |
| 27 | { |
| 28 | public const int Editor = 0; |
| 29 | } |
| 30 | |
| 31 | public const int PfdRegionDefaultWidthPixels = 220; |
| 32 | |
| 33 | /// <summary>Сплиттеры между колонками MainGrid (дерево | редактор | Mfd).</summary> |
| 34 | public const double MainGridColumnSplitterWidthPixels = 4; |
| 35 | |
| 36 | /// <summary>Минимальная высота строки нижней панели (терминал) и строки вывода сборки в колонке редактора.</summary> |
| 37 | public const int BottomPanelMinRowPixels = 80; |
| 38 | |
| 39 | /// <summary>Свёрнутый регион Mfd в main grid: 0 px.</summary> |
| 40 | public const int MfdRegionCollapsedWidthPixels = 0; |
| 41 | |
| 42 | public const int MfdRegionExpandedDefaultWidthPixels = 340; |
| 43 | public const int MfdRegionExpandedPowerWidthPixels = 420; |
| 44 | public const int MfdRegionExpandedAgentChatWidthPixels = 520; |
| 45 | } |
| 46 | |