| 1 | namespace CascadeIDE.Models; |
| 2 | |
| 3 | /// <summary>Строка <c>[[settings_category]]</c> из <c>Settings/settings-categories.toml</c>.</summary> |
| 4 | public sealed class SettingsCategoryDefinition |
| 5 | { |
| 6 | public string Id { get; init; } = ""; |
| 7 | |
| 8 | /// <summary>Заголовок группы в боковом списке (повторяется у соседних пунктов).</summary> |
| 9 | public string Group { get; init; } = ""; |
| 10 | |
| 11 | public string Title { get; init; } = ""; |
| 12 | |
| 13 | /// <summary>Встроенная страница (<see cref="SettingsPanelIds"/>).</summary> |
| 14 | public string Panel { get; init; } = ""; |
| 15 | |
| 16 | /// <summary>Порядок в боковом списке (меньше — выше). 0 = по умолчанию из атрибута.</summary> |
| 17 | public int Order { get; init; } |
| 18 | |
| 19 | /// <summary>Скрыть пункт (TOML: <c>hidden = true</c>).</summary> |
| 20 | public bool Hidden { get; init; } |
| 21 | } |
| 22 | |
| 23 | /// <summary>Идентификаторы встроенных страниц настроек.</summary> |
| 24 | public static class SettingsPanelIds |
| 25 | { |
| 26 | public const string Themes = "themes"; |
| 27 | public const string AiChat = "ai_chat"; |
| 28 | public const string Editor = "editor"; |
| 29 | public const string CSharpLsp = "csharp_lsp"; |
| 30 | public const string Markdown = "markdown"; |
| 31 | public const string MarkdownLsp = "markdown_lsp"; |
| 32 | public const string Hci = "hci"; |
| 33 | public const string WorkspaceNavigationMap = "workspace_navigation_map"; |
| 34 | } |
| 35 | |