diff options
| author | Jacob Palecki <[email protected]> | 2020-09-02 01:02:51 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-02 01:02:51 -0700 |
| commit | 5b9b8ed308e7a8cefbd27b2db72d33d7b002e223 (patch) | |
| tree | 0d66b20cb15f95ac795247da90d3eb1d85a54d58 /grapher/Models/AccelGUIFactory.cs | |
| parent | Small fixes, correctly align labels and boxes (diff) | |
| download | rawaccel-5b9b8ed308e7a8cefbd27b2db72d33d7b002e223.tar.xz rawaccel-5b9b8ed308e7a8cefbd27b2db72d33d7b002e223.zip | |
Move optionsets to applyoptions
Diffstat (limited to 'grapher/Models/AccelGUIFactory.cs')
| -rw-r--r-- | grapher/Models/AccelGUIFactory.cs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/grapher/Models/AccelGUIFactory.cs b/grapher/Models/AccelGUIFactory.cs index 3c2a773..8ed4d72 100644 --- a/grapher/Models/AccelGUIFactory.cs +++ b/grapher/Models/AccelGUIFactory.cs @@ -52,6 +52,7 @@ namespace grapher.Models TextBox midpointBoxX, TextBox midpointBoxY, CheckBox sensXYLock, + CheckBox byComponentXYLock, Label sensitivityLabel, Label rotationLabel, Label weightLabelX, @@ -95,8 +96,6 @@ namespace grapher.Models new ChartXY(gainChart, gainChartY), showVelocityGainToolStripMenuItem); - var applyOptions = new ApplyOptions(wholeVectorToolStripMenuItem, byVectorComponentToolStripMenuItem); - var sensitivity = new OptionXY( sensitivityBoxX, sensitivityBoxY, @@ -271,6 +270,13 @@ namespace grapher.Models limitOrExponentY, midpointY); + var applyOptions = new ApplyOptions( + wholeVectorToolStripMenuItem, + byVectorComponentToolStripMenuItem, + byComponentXYLock, + optionsSetX, + optionsSetY); + var accelCalculator = new AccelCalculator( new Field(dpiTextBox.TextBox, form, Constants.DefaultDPI), new Field(pollRateTextBox.TextBox, form, Constants.DefaultPollRate)); @@ -289,8 +295,6 @@ namespace grapher.Models applyOptions, sensitivity, rotation, - optionsSetX, - optionsSetY, writeButton, mouseLabel, scaleMenuItem); |