summaryrefslogtreecommitdiff
path: root/grapher/Layouts
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2021-04-04 23:14:39 -0700
committerJacob Palecki <[email protected]>2021-04-04 23:14:39 -0700
commit069bf5795fbf127d2a8c3233988a77aa7b2107d7 (patch)
tree2df5907768e11caba199df466287f29595daa8e8 /grapher/Layouts
parentAdd differing table types (diff)
downloadrawaccel-069bf5795fbf127d2a8c3233988a77aa7b2107d7.tar.xz
rawaccel-069bf5795fbf127d2a8c3233988a77aa7b2107d7.zip
Fix most errors from wrapper rewrite
Diffstat (limited to 'grapher/Layouts')
-rw-r--r--grapher/Layouts/LinearLayout.cs6
-rw-r--r--grapher/Layouts/NaturalGainLayout.cs24
2 files changed, 4 insertions, 26 deletions
diff --git a/grapher/Layouts/LinearLayout.cs b/grapher/Layouts/LinearLayout.cs
index 0412a2a..186d655 100644
--- a/grapher/Layouts/LinearLayout.cs
+++ b/grapher/Layouts/LinearLayout.cs
@@ -4,11 +4,13 @@ namespace grapher.Layouts
{
public class LinearLayout : LayoutBase
{
+ public const string LinearName = "Linear";
+
public LinearLayout()
: base()
{
- Name = "Linear";
- Index = (int)AccelMode.linear;
+ Name = LinearName;
+ Index = (int)AccelMode.classic;
LogarithmicCharts = false;
AccelLayout = new OptionLayout(true, Acceleration);
diff --git a/grapher/Layouts/NaturalGainLayout.cs b/grapher/Layouts/NaturalGainLayout.cs
deleted file mode 100644
index 12daed3..0000000
--- a/grapher/Layouts/NaturalGainLayout.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using grapher.Models.Serialized;
-
-namespace grapher.Layouts
-{
- public class NaturalGainLayout : LayoutBase
- {
- public NaturalGainLayout()
- : base()
- {
- Name = "NaturalGain";
- Index = (int)AccelMode.naturalgain;
- LogarithmicCharts = false;
-
- AccelLayout = new OptionLayout(true, Acceleration);
- ScaleLayout = new OptionLayout(false, string.Empty);
- CapLayout = new OptionLayout(false, string.Empty);
- WeightLayout = new OptionLayout(true, Weight);
- OffsetLayout = new OptionLayout(true, Offset);
- LimitLayout = new OptionLayout(true, Limit);
- ExponentLayout = new OptionLayout(false, string.Empty);
- MidpointLayout = new OptionLayout(false, string.Empty);
- }
- }
-}