summaryrefslogtreecommitdiff
path: root/grapher/Layouts
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-07-10 15:35:21 -0700
committerJacob Palecki <[email protected]>2021-07-10 15:35:21 -0700
commitaa04d5a61f89225a03dc3b155d4f3a93ffe4c5b8 (patch)
tree17a28ab918de1372de6bfd6548421972812fb50f /grapher/Layouts
parentFix truncated sensitivity legend (diff)
downloadrawaccel-aa04d5a61f89225a03dc3b155d4f3a93ffe4c5b8.tar.xz
rawaccel-aa04d5a61f89225a03dc3b155d4f3a93ffe4c5b8.zip
Fixed default values by splitting into unique text boxes
Diffstat (limited to 'grapher/Layouts')
-rw-r--r--grapher/Layouts/ClassicLayout.cs3
-rw-r--r--grapher/Layouts/DefaultLayout.cs3
-rw-r--r--grapher/Layouts/JumpLayout.cs5
-rw-r--r--grapher/Layouts/LUTLayout.cs3
-rw-r--r--grapher/Layouts/LayoutBase.cs25
-rw-r--r--grapher/Layouts/LinearLayout.cs3
-rw-r--r--grapher/Layouts/MotivityLayout.cs5
-rw-r--r--grapher/Layouts/NaturalLayout.cs5
-rw-r--r--grapher/Layouts/OffLayout.cs3
-rw-r--r--grapher/Layouts/PowerLayout.cs3
-rw-r--r--grapher/Layouts/UnsupportedLayout.cs3
11 files changed, 56 insertions, 5 deletions
diff --git a/grapher/Layouts/ClassicLayout.cs b/grapher/Layouts/ClassicLayout.cs
index dd1a7d3..86756c9 100644
--- a/grapher/Layouts/ClassicLayout.cs
+++ b/grapher/Layouts/ClassicLayout.cs
@@ -12,6 +12,9 @@ namespace grapher.Layouts
GainSwitchOptionLayout = new OptionLayout(true, Gain);
AccelLayout = new OptionLayout(true, Acceleration);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(true, Cap);
WeightLayout = new OptionLayout(true, Weight);
diff --git a/grapher/Layouts/DefaultLayout.cs b/grapher/Layouts/DefaultLayout.cs
index d6a5f45..29d28f7 100644
--- a/grapher/Layouts/DefaultLayout.cs
+++ b/grapher/Layouts/DefaultLayout.cs
@@ -13,6 +13,9 @@ namespace grapher.Layouts
GainSwitchOptionLayout = new OptionLayout(true, Gain);
AccelLayout = new OptionLayout(true, Acceleration);
+ DecayRateLayout = new OptionLayout(true, DecayRate);
+ GrowthRateLayout = new OptionLayout(true, GrowthRate);
+ SmoothLayout = new OptionLayout(true, Smooth);
ScaleLayout = new OptionLayout(true, Scale);
CapLayout = new OptionLayout(true, Cap);
WeightLayout = new OptionLayout(true, Weight);
diff --git a/grapher/Layouts/JumpLayout.cs b/grapher/Layouts/JumpLayout.cs
index afb0d72..277297c 100644
--- a/grapher/Layouts/JumpLayout.cs
+++ b/grapher/Layouts/JumpLayout.cs
@@ -12,7 +12,10 @@ namespace grapher.Layouts
LogarithmicCharts = false;
GainSwitchOptionLayout = new OptionLayout(true, Gain);
- AccelLayout = new OptionLayout(true, Smooth);
+ AccelLayout = new OptionLayout(false, string.Empty);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(true, Smooth);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(true, Cap);
WeightLayout = new OptionLayout(false, Weight);
diff --git a/grapher/Layouts/LUTLayout.cs b/grapher/Layouts/LUTLayout.cs
index cf4d383..5848adb 100644
--- a/grapher/Layouts/LUTLayout.cs
+++ b/grapher/Layouts/LUTLayout.cs
@@ -21,6 +21,9 @@ namespace grapher.Layouts
GainSwitchOptionLayout = new OptionLayout(false, string.Empty);
AccelLayout = new OptionLayout(false, Acceleration);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(false, Cap);
WeightLayout = new OptionLayout(false, Weight);
diff --git a/grapher/Layouts/LayoutBase.cs b/grapher/Layouts/LayoutBase.cs
index bc95d8d..66260eb 100644
--- a/grapher/Layouts/LayoutBase.cs
+++ b/grapher/Layouts/LayoutBase.cs
@@ -5,6 +5,8 @@ namespace grapher.Layouts
public abstract class LayoutBase
{
public const string Acceleration = "Acceleration";
+ public const string GrowthRate = "Growth Rate";
+ public const string DecayRate = "Decay Rate";
public const string Scale = "Scale";
public const string Exponent = "Exponent";
public const string PowerClassic = "Power";
@@ -16,12 +18,13 @@ namespace grapher.Layouts
public const string Weight = "Weight";
public const string Smooth = "Smooth";
public const string Gain = "Gain";
- public const string GrowthRate = "Growth Rate";
- public const string DecayRate = "Decay Rate";
public LayoutBase()
{
AccelLayout = new OptionLayout(false, string.Empty);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(false, string.Empty);
WeightLayout = new OptionLayout(false, string.Empty);
@@ -48,6 +51,12 @@ namespace grapher.Layouts
protected OptionLayout AccelLayout { get; set; }
+ protected OptionLayout DecayRateLayout { get; set; }
+
+ protected OptionLayout GrowthRateLayout { get; set; }
+
+ protected OptionLayout SmoothLayout { get; set; }
+
protected OptionLayout ScaleLayout { get; set; }
protected OptionLayout CapLayout { get; set; }
@@ -80,6 +89,9 @@ namespace grapher.Layouts
public void Layout(
IOption gainSwitchOption,
IOption accelOption,
+ IOption decayRateOption,
+ IOption growthRateOption,
+ IOption smoothOption,
IOption scaleOption,
IOption capOption,
IOption weightOption,
@@ -99,6 +111,9 @@ namespace grapher.Layouts
foreach (var option in new (OptionLayout, IOption)[] {
(GainSwitchOptionLayout, gainSwitchOption),
(AccelLayout, accelOption),
+ (DecayRateLayout, decayRateOption),
+ (GrowthRateLayout, growthRateOption),
+ (SmoothLayout, smoothOption),
(ScaleLayout, scaleOption),
(CapLayout, capOption),
(WeightLayout, weightOption),
@@ -132,6 +147,9 @@ namespace grapher.Layouts
public void Layout(
IOption gainSwitchOption,
IOption accelOption,
+ IOption decayRateOption,
+ IOption growthRateOption,
+ IOption smoothOption,
IOption scaleOption,
IOption capOption,
IOption weightOption,
@@ -146,6 +164,9 @@ namespace grapher.Layouts
{
Layout(gainSwitchOption,
accelOption,
+ decayRateOption,
+ growthRateOption,
+ smoothOption,
scaleOption,
capOption,
weightOption,
diff --git a/grapher/Layouts/LinearLayout.cs b/grapher/Layouts/LinearLayout.cs
index 62d6f77..6108a0b 100644
--- a/grapher/Layouts/LinearLayout.cs
+++ b/grapher/Layouts/LinearLayout.cs
@@ -15,6 +15,9 @@ namespace grapher.Layouts
GainSwitchOptionLayout = new OptionLayout(true, Gain);
AccelLayout = new OptionLayout(true, Acceleration);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(true, Cap);
WeightLayout = new OptionLayout(false, Weight);
diff --git a/grapher/Layouts/MotivityLayout.cs b/grapher/Layouts/MotivityLayout.cs
index 17b4369..5443715 100644
--- a/grapher/Layouts/MotivityLayout.cs
+++ b/grapher/Layouts/MotivityLayout.cs
@@ -17,7 +17,10 @@ namespace grapher.Layouts
LogarithmicCharts = true;
GainSwitchOptionLayout = new OptionLayout(true, Gain);
- AccelLayout = new OptionLayout(true, GrowthRate);
+ AccelLayout = new OptionLayout(false, string.Empty);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(true, GrowthRate);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(false, string.Empty);
WeightLayout = new OptionLayout(false, string.Empty);
diff --git a/grapher/Layouts/NaturalLayout.cs b/grapher/Layouts/NaturalLayout.cs
index 97aef34..4702f50 100644
--- a/grapher/Layouts/NaturalLayout.cs
+++ b/grapher/Layouts/NaturalLayout.cs
@@ -12,7 +12,10 @@ namespace grapher.Layouts
LogarithmicCharts = false;
GainSwitchOptionLayout = new OptionLayout(true, Gain);
- AccelLayout = new OptionLayout(true, DecayRate);
+ AccelLayout = new OptionLayout(false, string.Empty);
+ DecayRateLayout = new OptionLayout(true, DecayRate);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(false, string.Empty);
WeightLayout = new OptionLayout(true, Weight);
diff --git a/grapher/Layouts/OffLayout.cs b/grapher/Layouts/OffLayout.cs
index e8f8565..d742ef8 100644
--- a/grapher/Layouts/OffLayout.cs
+++ b/grapher/Layouts/OffLayout.cs
@@ -13,6 +13,9 @@ namespace grapher.Layouts
GainSwitchOptionLayout = new OptionLayout(false, string.Empty);
AccelLayout = new OptionLayout(false, string.Empty);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(false, string.Empty);
WeightLayout = new OptionLayout(false, string.Empty);
diff --git a/grapher/Layouts/PowerLayout.cs b/grapher/Layouts/PowerLayout.cs
index a09bf9f..d11480f 100644
--- a/grapher/Layouts/PowerLayout.cs
+++ b/grapher/Layouts/PowerLayout.cs
@@ -11,6 +11,9 @@
GainSwitchOptionLayout = new OptionLayout(true, Gain);
AccelLayout = new OptionLayout(false, string.Empty);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(true, Scale);
CapLayout = new OptionLayout(true, Cap);
WeightLayout = new OptionLayout(true, Weight);
diff --git a/grapher/Layouts/UnsupportedLayout.cs b/grapher/Layouts/UnsupportedLayout.cs
index 04f0e55..4a401a4 100644
--- a/grapher/Layouts/UnsupportedLayout.cs
+++ b/grapher/Layouts/UnsupportedLayout.cs
@@ -18,6 +18,9 @@ namespace grapher.Layouts
GainSwitchOptionLayout = new OptionLayout(false, string.Empty);
AccelLayout = new OptionLayout(false, Acceleration);
+ DecayRateLayout = new OptionLayout(false, string.Empty);
+ GrowthRateLayout = new OptionLayout(false, string.Empty);
+ SmoothLayout = new OptionLayout(false, string.Empty);
ScaleLayout = new OptionLayout(false, string.Empty);
CapLayout = new OptionLayout(false, Cap);
WeightLayout = new OptionLayout(false, Weight);