init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.ChartOptions/Model/ChartOptionsModel.cs
|
||||
generated_at: "2026-04-17T15:59:30.841040+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "f69f24106dae95d3"
|
||||
---
|
||||
|
||||
# Documentation: ChartOptionsModel
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
`ChartOptionsModel` is a model class within the `DTS.Viewer.ChartOptions` module that encapsulates configuration state for chart visualization options. It serves as a data-bound model in an MVVM architecture, managing
|
||||
@@ -0,0 +1,36 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.ChartOptions/Properties/AssemblyInfo.cs
|
||||
generated_at: "2026-04-17T16:13:21.103396+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "3d3c0935753bde1d"
|
||||
---
|
||||
|
||||
# Properties
|
||||
|
||||
### Purpose
|
||||
This module contains assembly-level metadata for the `DTS.Viewer.Test` assembly. It provides versioning, copyright, and COM visibility configuration using standard .NET Framework assembly attributes. This is a boilerplate configuration module with no runtime logic.
|
||||
|
||||
### Public Interface
|
||||
No public types are exposed by this module. It contains only assembly-level attributes:
|
||||
|
||||
- **`AssemblyTitle`**: "DTS.Viewer.Test"
|
||||
- **`AssemblyDescription`**: Empty
|
||||
- **`AssemblyVersion`**: "1.0.0.0"
|
||||
- **`AssemblyFileVersion`**: "1.0.0.0"
|
||||
- **`ComVisible`**: false
|
||||
- **`Guid`**: "b2b2b862-1b93-476a-8246-91e1310c7ec7"
|
||||
|
||||
### Invariants
|
||||
- Assembly version is fixed at 1.0.0.0; manual updates required for version increments.
|
||||
- COM visibility is disabled for all types in this assembly.
|
||||
|
||||
### Dependencies
|
||||
- **Depends on:** `System.Reflection`, `System.Runtime.CompilerServices`, `System.Runtime.InteropServices` (standard .NET Framework assemblies)
|
||||
- **Depended on by:** Not applicable; this is configuration metadata.
|
||||
|
||||
### Gotchas
|
||||
- The `AssemblyTitle` is "DTS.Viewer.Test" while the module path suggests "DTS.Viewer.TestSummaryList". This discrepancy may indicate a rename occurred without updating assembly metadata, or the title attribute is intentionally generic.
|
||||
|
||||
---
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.ChartOptions/Resources/TranslateExtension.cs
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.ChartOptions/Resources/StringResources.Designer.cs
|
||||
generated_at: "2026-04-17T16:11:50.603414+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "b9710c66f9ec0c0d"
|
||||
---
|
||||
|
||||
# Resources
|
||||
|
||||
### Purpose
|
||||
This module provides localization/internationalization support for the DTS.Viewer.Filter module. It enables XAML-based string resource lookup through a markup extension pattern, allowing UI elements to display localized strings at design-time and runtime without code-behind resource lookups.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**`TranslateExtension` class** (inherits `MarkupExtension`)
|
||||
- `TranslateExtension(string key)` - Constructor accepting the resource key to look up.
|
||||
- `object ProvideValue(IServiceProvider serviceProvider)` - Returns the localized string for `_key`, or a fallback error string if not found.
|
||||
- Constant: `NotFound = "#stringnotfound#"` - Fallback prefix used when resource lookup fails.
|
||||
|
||||
**`StringResources` class** (internal, auto-generated)
|
||||
- `static ResourceManager ResourceManager { get; }` - Lazily-initialized, cached ResourceManager for the `DTS.Viewer.Filter.Resources.StringResources` resource bundle.
|
||||
- `static CultureInfo Culture { get; set; }` - Overrides the current thread's CurrentUICulture for resource lookups.
|
||||
- `static string Search { get; }` - Localized string resource for "Search".
|
||||
|
||||
### Invariants
|
||||
- `ProvideValue` always returns a non-null string.
|
||||
- If `_key` is null or empty, `ProvideValue` returns exactly `NotFound` ("#stringnotfound#").
|
||||
- If the resource key does not exist in the resource bundle, `ProvideValue` returns `NotFound + " " + _key` (e.g., "#stringnotfound# MissingKey").
|
||||
- `ResourceManager` is lazily instantiated on first access and cached thereafter.
|
||||
|
||||
### Dependencies
|
||||
- **Depends on**: `System`, `System.Windows.Markup`, `System.Resources`, `System.Globalization`.
|
||||
- **Depended on by**: XAML views within the DTS.Viewer.Filter module that use `{local:Translate KeyName}` syntax.
|
||||
|
||||
### Gotchas
|
||||
- `StringResources`
|
||||
@@ -0,0 +1,19 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.ChartOptions/View/ChartOptionsView.xaml.cs
|
||||
generated_at: "2026-04-17T16:13:13.901944+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "4ba631a9f013b7f7"
|
||||
---
|
||||
|
||||
# View
|
||||
|
||||
### Purpose
|
||||
This module provides the WPF view component for chart configuration options in the DTS Viewer application. It implements `IChartOptionsView` and serves as a data provider for available filter classes (CFC - Class Filter Classes) used in sensor data analysis, exposing filter options through the `AnalogSettingDefaults` infrastructure.
|
||||
|
||||
### Public Interface
|
||||
|
||||
- **`ChartOptionsView()`** - Constructor that initializes the XAML component via `InitializeComponent()`.
|
||||
|
||||
- **`AvailableCFC`** (`List<IFilterClass>`) - Read-only property that returns available filter
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.ChartOptions/ViewModel/ChartOptionsViewModel.cs
|
||||
generated_at: "2026-04-17T15:59:04.271654+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "c0b9efc3f556df6f"
|
||||
---
|
||||
|
||||
# Documentation: ChartOptionsViewModel
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
`ChartOptionsViewModel` is a Prism-based view model responsible for managing chart configuration options within the DTS Viewer application. It serves as an intermediary between the UI (`IChartOptionsView`) and the charting system, handling user interactions for cursor display, zoom reset, PDF export, and unit type selection (EU, mV, ADC). The module communicates with parent view models and other components via Prism's `IEventAggregator`, publishing chart option changes and responding to external events such as channel selection and axis changes.
|
||||
|
||||
---
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### Class Signature
|
||||
```csharp
|
||||
public class Chart
|
||||
Reference in New Issue
Block a user