summaryrefslogtreecommitdiff
path: root/grapher/Models/AccelGUIFactory.cs
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-02 01:02:51 -0700
committerJacob Palecki <[email protected]>2020-09-02 01:02:51 -0700
commit5b9b8ed308e7a8cefbd27b2db72d33d7b002e223 (patch)
tree0d66b20cb15f95ac795247da90d3eb1d85a54d58 /grapher/Models/AccelGUIFactory.cs
parentSmall fixes, correctly align labels and boxes (diff)
downloadrawaccel-5b9b8ed308e7a8cefbd27b2db72d33d7b002e223.tar.xz
rawaccel-5b9b8ed308e7a8cefbd27b2db72d33d7b002e223.zip
Move optionsets to applyoptions
Diffstat (limited to 'grapher/Models/AccelGUIFactory.cs')
-rw-r--r--grapher/Models/AccelGUIFactory.cs12
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);