| 1 | namespace CascadeIDE.Services.Presentation; |
| 2 | |
| 3 | /// <summary> |
| 4 | /// Строка колонок Avalonia <c>Grid</c> для строки рабочей области главного окна: |
| 5 | /// три колонки контента — PFD, Forward, MFD (см. <c>MainWindow.axaml</c>). |
| 6 | /// При заданных весах в <c>presentation</c> контент-колонки получают звёздочные доли (<c>*</c>). |
| 7 | /// </summary> |
| 8 | public static class PresentationMainGridColumnDefinitions |
| 9 | { |
| 10 | /// <summary>Дефолт без весов в строке <c>presentation</c> (как в разметке до весов).</summary> |
| 11 | public const string Default = PresentationMainGridLayoutFrameBuilder.DefaultColumnDefinitions; |
| 12 | |
| 13 | /// <param name="mfdColumnSuppressedForHost">Колонка MFD в главном окне свёрнута — узкий хвост для двухякорного пресета с весами.</param> |
| 14 | /// <param name="tripleOneAnchorPerZone">Тройной пресет <c>(P)(F)(M)</c> (любой порядок) — отдельная ветка колонок под хосты.</param> |
| 15 | /// <param name="suppressPfdColumnForPfdHostWindow">Колонка PFD в main скрыта — контент в <c>PfdHostWindow</c>.</param> |
| 16 | /// <param name="mainWindowPresentationScreenIndex">См. <see cref="PresentationMainGridLayoutFrameBuilder.Build"/>.</param> |
| 17 | public static string Get( |
| 18 | PresentationParseResult parse, |
| 19 | bool dedicatedMfdSecondScreen, |
| 20 | bool mfdColumnSuppressedForHost, |
| 21 | bool tripleOneAnchorPerZone, |
| 22 | bool suppressPfdColumnForPfdHostWindow, |
| 23 | int mainWindowPresentationScreenIndex = 0) |
| 24 | => PresentationMainGridLayoutFrameBuilder |
| 25 | .Build(parse, dedicatedMfdSecondScreen, mfdColumnSuppressedForHost, tripleOneAnchorPerZone, suppressPfdColumnForPfdHostWindow, mainWindowPresentationScreenIndex) |
| 26 | .ColumnDefinitions; |
| 27 | } |
| 28 | |