diff options
| author | Matthew Strasiotto <[email protected]> | 2021-05-01 20:20:28 +1000 |
|---|---|---|
| committer | Matthew Strasiotto <[email protected]> | 2021-05-01 20:20:28 +1000 |
| commit | c38b839833f45e53a3b371119ba1d10cf05c4ea0 (patch) | |
| tree | cb60b74805cb92f07a110db34a3f98c9e57d47cb /grapher/Models | |
| parent | add menu item for streaming mode (diff) | |
| download | rawaccel-c38b839833f45e53a3b371119ba1d10cf05c4ea0.tar.xz rawaccel-c38b839833f45e53a3b371119ba1d10cf05c4ea0.zip | |
Add streamingMode option to constructors down the chain
Diffstat (limited to 'grapher/Models')
| -rw-r--r-- | grapher/Models/AccelGUIFactory.cs | 3 | ||||
| -rw-r--r-- | grapher/Models/Charts/AccelCharts.cs | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs index 1c42c76..305445a 100644 --- a/grapher/Models/AccelGUIFactory.cs +++ b/grapher/Models/AccelGUIFactory.cs @@ -29,6 +29,7 @@ namespace grapher.Models ButtonBase toggleButton, ToolStripMenuItem showVelocityGainToolStripMenuItem, ToolStripMenuItem showLastMouseMoveMenuItem, + ToolStripMenuItem streamingModeToolStripMenuItem, ToolStripMenuItem velocityGainCapToolStripMenuItem, ToolStripMenuItem legacyCapToolStripMenuItem, ToolStripMenuItem gainOffsetToolStripMenuItem, @@ -140,6 +141,7 @@ namespace grapher.Models new ChartXY(gainChart, gainChartY, Constants.GainChartTitle), showVelocityGainToolStripMenuItem, showLastMouseMoveMenuItem, + streamingModeToolStripMenuItem, writeButton, accelCalculator); @@ -402,6 +404,7 @@ namespace grapher.Models autoWriteMenuItem, showLastMouseMoveMenuItem, showVelocityGainToolStripMenuItem, + streamingModeToolStripMenuItem, deviceIdManager); var mouseWatcher = new MouseWatcher(form, mouseLabel, accelCharts, settings); diff --git a/grapher/Models/Charts/AccelCharts.cs b/grapher/Models/Charts/AccelCharts.cs index 65c636b..9069886 100644 --- a/grapher/Models/Charts/AccelCharts.cs +++ b/grapher/Models/Charts/AccelCharts.cs @@ -18,6 +18,7 @@ namespace grapher ChartXY gainChart, ToolStripMenuItem enableVelocityAndGain, ToolStripMenuItem enableLastMouseMove, + ToolStripMenuItem enableStreamingMode, Button writeButton, AccelCalculator accelCalculator) { @@ -37,6 +38,8 @@ namespace grapher ContainingForm = form; EnableVelocityAndGain = enableVelocityAndGain; EnableLastValue = enableLastMouseMove; + EnableStreamingMode = enableStreamingMode; + WriteButton = writeButton; EnableVelocityAndGain.Click += new System.EventHandler(OnEnableClick); @@ -57,6 +60,8 @@ namespace grapher public ToolStripMenuItem EnableVelocityAndGain { get; } + public ToolStripMenuItem EnableStreamingMode { get; } + private ToolStripMenuItem EnableLastValue { get; } private Button WriteButton { get; } |