From cc6c1538669bfd279665b344e887f9a9fa701c89 Mon Sep 17 00:00:00 2001
From: michael <173676957+Miresker@users.noreply.github.com>
Date: Tue, 27 Jan 2026 20:21:22 +0100
Subject: [PATCH] Add GTKWave arguments
---
.../GhdlSimulatorToolbarViewModel.cs | 21 +++++++++++++++++++
.../Views/GhdlSimulatorToolbarView.axaml | 8 +++++++
2 files changed, 29 insertions(+)
diff --git a/src/OneWare.GhdlExtension/ViewModels/GhdlSimulatorToolbarViewModel.cs b/src/OneWare.GhdlExtension/ViewModels/GhdlSimulatorToolbarViewModel.cs
index af68bc6..b80446f 100644
--- a/src/OneWare.GhdlExtension/ViewModels/GhdlSimulatorToolbarViewModel.cs
+++ b/src/OneWare.GhdlExtension/ViewModels/GhdlSimulatorToolbarViewModel.cs
@@ -89,4 +89,25 @@ public string AdditionalGhdlSimOptions
}
}
+ public string GtkwSaveFile
+ {
+ get => context.GetBenchProperty(nameof(GtkwSaveFile)) ?? "";
+ set
+ {
+ if (string.IsNullOrWhiteSpace(value)) context.RemoveBenchProperty(nameof(GtkwSaveFile));
+ else context.SetBenchProperty(nameof(GtkwSaveFile), value);
+ OnPropertyChanged();
+ }
+ }
+
+ public string GtkwWaveArgs
+ {
+ get => context.GetBenchProperty(nameof(GtkwWaveArgs)) ?? "";
+ set
+ {
+ if (string.IsNullOrWhiteSpace(value)) context.RemoveBenchProperty(nameof(GtkwWaveArgs));
+ else context.SetBenchProperty(nameof(GtkwWaveArgs), value);
+ OnPropertyChanged();
+ }
+ }
}
\ No newline at end of file
diff --git a/src/OneWare.GhdlExtension/Views/GhdlSimulatorToolbarView.axaml b/src/OneWare.GhdlExtension/Views/GhdlSimulatorToolbarView.axaml
index 9cadf56..f5c55a1 100644
--- a/src/OneWare.GhdlExtension/Views/GhdlSimulatorToolbarView.axaml
+++ b/src/OneWare.GhdlExtension/Views/GhdlSimulatorToolbarView.axaml
@@ -19,6 +19,14 @@
+
+
+
+
+
+
+
+