summaryrefslogtreecommitdiff
path: root/grapher/Layouts/LayoutBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'grapher/Layouts/LayoutBase.cs')
-rw-r--r--grapher/Layouts/LayoutBase.cs21
1 files changed, 5 insertions, 16 deletions
diff --git a/grapher/Layouts/LayoutBase.cs b/grapher/Layouts/LayoutBase.cs
index eed1716..daac6f1 100644
--- a/grapher/Layouts/LayoutBase.cs
+++ b/grapher/Layouts/LayoutBase.cs
@@ -15,12 +15,14 @@ namespace grapher.Layouts
public const string Limit = "Limit";
public const string Midpoint = "Midpoint";
public const string Offset = "Offset";
+ public const string Cap = "Cap";
+ public const string Weight = "Weight";
public LayoutBase()
{
- ShowOptions = new bool[] { false, false, false, false };
+ ShowOptions = new bool[] { false, false, false, false, true, true };
ShowOptionsXY = new bool[] { true, true };
- OptionNames = new string[] { string.Empty, string.Empty, string.Empty, string.Empty };
+ OptionNames = new string[] { string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty };
ButtonEnabled = true;
}
@@ -40,7 +42,7 @@ namespace grapher.Layouts
internal bool ButtonEnabled { get; set; }
- public void Layout(Option[] options, OptionXY[] optionsXY, Button button)
+ public void Layout(Option[] options, Button button)
{
// Relies on AccelOptions to keep lengths correct.
for (int i = 0; i < options.Length; i++)
@@ -55,19 +57,6 @@ namespace grapher.Layouts
}
}
- // Relies on AccelOptions to keep lengths correct.
- for (int i = 0; i< optionsXY.Length; i++)
- {
- if (ShowOptionsXY[i])
- {
- optionsXY[i].Show();
- }
- else
- {
- optionsXY[i].Hide();
- }
- }
-
button.Enabled = ButtonEnabled;
}
}