init
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.Navigation/Properties/AssemblyInfo.cs
|
||||
generated_at: "2026-04-17T16:45:41.819326+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "4042d03e7c7c8fac"
|
||||
---
|
||||
|
||||
# Documentation: DTS.Viewer.Navigation Assembly Configuration
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
This file provides assembly-level metadata for the `DTS.Viewer.Navigation` module, which appears to be a navigation component within the larger DTS Viewer application. It defines version information, COM visibility settings, and identification attributes using the traditional .NET Framework assembly attribute pattern. This module exists to configure build output metadata and control COM interop visibility for the navigation assembly.
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
This file contains no public classes, methods, or functions. It defines only assembly-level attributes:
|
||||
|
||||
| Attribute | Value |
|
||||
|-----------|-------|
|
||||
| `AssemblyTitle` | `"DTS.Viewer.Navigation"` |
|
||||
| `AssemblyDescription` | `""` (empty) |
|
||||
| `AssemblyConfiguration` | `""` (empty) |
|
||||
| `AssemblyCompany` | `""` (empty) |
|
||||
| `AssemblyProduct` | `"DTS.Viewer.Navigation"` |
|
||||
| `AssemblyCopyright` | `"Copyright © 2017"` |
|
||||
| `AssemblyTrademark` | `""` (empty) |
|
||||
| `AssemblyCulture` | `""` (empty) |
|
||||
| `ComVisible` | `false` |
|
||||
| `Guid` | `"237c6e9f-9118-4bec-a55a-e194232ac330"` |
|
||||
| `AssemblyVersion` | `"1.0.0.0"` |
|
||||
| `AssemblyFileVersion` | `"1.0.0.0"` |
|
||||
|
||||
## 3. Invariants
|
||||
|
||||
- **COM Visibility**: All types in this assembly are not visible to COM components by default (`ComVisible(false)`). Individual types must explicitly set `ComVisible(true)` if COM exposure is required.
|
||||
- **Version Consistency**: Both `AssemblyVersion` and `AssemblyFileVersion` are set to `"1.0.0.0"` and should be updated in tandem for releases.
|
||||
- **Assembly Identity**: The GUID `237c6e9f-9118-4bec-a55a-e194232ac330` uniquely identifies this assembly's type library if exposed to COM.
|
||||
|
||||
## 4. Dependencies
|
||||
|
||||
**This module depends on:**
|
||||
- `System.Reflection` - Provides `AssemblyTitleAttribute`, `AssemblyDescriptionAttribute`, `AssemblyConfigurationAttribute`, `AssemblyCompanyAttribute`, `AssemblyProductAttribute`, `AssemblyCopyrightAttribute`, `AssemblyTrademarkAttribute`, `AssemblyCultureAttribute`, `AssemblyVersionAttribute`
|
||||
- `System.Runtime.CompilerServices` - Imported but no attributes from this namespace are used in this file
|
||||
- `System.Runtime.InteropServices` - Provides `ComVisibleAttribute`, `GuidAttribute`
|
||||
|
||||
**What depends on this module:**
|
||||
- Cannot be determined from this file alone. This is a configuration file for the assembly build process; other modules within
|
||||
@@ -0,0 +1,39 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.Navigation/View/NavigationItem.xaml.cs
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.Navigation/View/NavigationView.xaml.cs
|
||||
generated_at: "2026-04-17T16:11:50.604475+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "6747a61a8fe21d2c"
|
||||
---
|
||||
|
||||
# View
|
||||
|
||||
### 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,45 @@
|
||||
---
|
||||
source_files:
|
||||
- DTS Viewer/DTS.Viewer.Modules/DTS.Viewer.Navigation/ViewModel/NavigationViewModel.cs
|
||||
generated_at: "2026-04-17T16:30:27.299010+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "0e6a43a095627fba"
|
||||
---
|
||||
|
||||
# ViewModel
|
||||
|
||||
### Purpose
|
||||
This module provides the ViewModel for viewer settings, specifically managing calibration behavior configuration. It allows users to select from available calibration behaviors (LinearIfAvailable, NonLinearIfAvailable, UseBothIfAvailable) and handles visibility states for settings UI based on application events. It participates in the Prism MVVM architecture as a configurable settings component.
|
||||
|
||||
### Public Interface
|
||||
|
||||
**Class: `ViewerSettingsViewModel`** (extends `BaseViewModel<IViewerSettingsViewModel>`, implements `IViewerSettingsViewModel`)
|
||||
|
||||
**Constructor:**
|
||||
- `ViewerSettingsViewModel(IViewerSettingsView view, IRegionManager regionManager, IEventAggregator eventAggregator, IUnityContainer unityContainer)` - Initializes the view model, sets up interaction requests, and stores dependencies.
|
||||
|
||||
**Properties:**
|
||||
- `View` (`IViewerSettingsView`) - Gets or sets the associated view interface.
|
||||
- `Parent` (`IBaseViewModel`) - Gets or sets the parent view model.
|
||||
- `NotificationRequest` (`InteractionRequest<Notification>`) - Interaction request for notifications.
|
||||
- `ConfirmationRequest` (`InteractionRequest<Confirmation>`) - Interaction request for confirmations.
|
||||
- `HeaderInfo` (`string`) - Returns "SettingsRegion".
|
||||
- `IsBusy` (`bool`) - Busy state indicator.
|
||||
- `IsDirty` (`bool`) - Dirty state indicator.
|
||||
- `IsNavigationIncluded` (`bool`) - Navigation inclusion flag.
|
||||
- `CalibrationBehaviorSettingVisibility` (`Visibility`) - Controls visibility of calibration behavior setting UI; publishes `ViewerSettingsVisibilityChangedEvent` when changed.
|
||||
- `OverallSettingsVisibility` (`Visibility`) - Computed property; returns `Visible` if `CalibrationBehaviorSettingVisibility` is `Visible`, otherwise `Collapsed`.
|
||||
- `AvailableCalibrationBehaviors` (`DisplayedCalibrationBehavior[]`) - Thread-safe, lazily-initialized array of available calibration options.
|
||||
- `CalibrationBehaviorSetting` (`DisplayedCalibrationBehavior`) - Gets or sets the current calibration behavior; publishes `CalibrationBehaviorSettingChangedEvent` on change.
|
||||
|
||||
**Methods:**
|
||||
- `void Initialize()` - Empty override.
|
||||
- `void Initialize(object parameter)` - Sets `Parent` from parameter and subscribes to events.
|
||||
- `void PublishChanges()` - Empty method (implementation appears incomplete).
|
||||
|
||||
**Events:**
|
||||
- `PropertyChanged` (`PropertyChangedEventHandler`) - Property change notification event.
|
||||
|
||||
### Invariants
|
||||
- `OverallSettingsVisibility` is `Visible` if and only if `CalibrationBehaviorSettingVisibility
|
||||
Reference in New Issue
Block a user