diff options
| author | a1xd <[email protected]> | 2020-09-27 23:04:29 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-09-27 23:04:29 -0400 |
| commit | 85aefb4ba131521595e48fe1a25f4db9a69e71e6 (patch) | |
| tree | f1c73a42b369f362a40ea251281d98ee02bf0a98 /grapher/Layouts/LayoutBase.cs | |
| parent | add os detection to installer (diff) | |
| download | rawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.tar.xz rawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.zip | |
add arg checks in wrapper
minor changes to settings shape, requires driver reinstall
add error handling to writer
grapher changes:
add prettier serialization + comments
add elements for scale and separated limit/exp
reset irrelevant (invisible) arg input before checks/write
Diffstat (limited to 'grapher/Layouts/LayoutBase.cs')
| -rw-r--r-- | grapher/Layouts/LayoutBase.cs | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/grapher/Layouts/LayoutBase.cs b/grapher/Layouts/LayoutBase.cs index 04f5189..c380397 100644 --- a/grapher/Layouts/LayoutBase.cs +++ b/grapher/Layouts/LayoutBase.cs @@ -18,10 +18,12 @@ namespace grapher.Layouts public LayoutBase() { AccelLayout = new OptionLayout(false, string.Empty); + ScaleLayout = new OptionLayout(false, string.Empty); CapLayout = new OptionLayout(false, string.Empty); WeightLayout = new OptionLayout(false, string.Empty); OffsetLayout = new OptionLayout(false, string.Empty); - LimExpLayout = new OptionLayout(false, string.Empty); + LimitLayout = new OptionLayout(false, string.Empty); + ExponentLayout = new OptionLayout(false, string.Empty); MidpointLayout = new OptionLayout(false, string.Empty); ButtonEnabled = true; @@ -42,22 +44,28 @@ namespace grapher.Layouts protected OptionLayout AccelLayout { get; set; } + protected OptionLayout ScaleLayout { get; set; } + protected OptionLayout CapLayout { get; set; } protected OptionLayout WeightLayout { get; set; } protected OptionLayout OffsetLayout { get; set; } - protected OptionLayout LimExpLayout { get; set; } + protected OptionLayout LimitLayout { get; set; } + + protected OptionLayout ExponentLayout { get; set; } protected OptionLayout MidpointLayout { get; set; } public void Layout( IOption accelOption, + IOption scaleOption, IOption capOption, IOption weightOption, IOption offsetOption, - IOption limExpOption, + IOption limitOption, + IOption expOption, IOption midpointOption, Button button, int top) @@ -68,10 +76,12 @@ namespace grapher.Layouts foreach (var option in new (OptionLayout, IOption)[] { (AccelLayout, accelOption), + (ScaleLayout, scaleOption), (CapLayout, capOption), (WeightLayout, weightOption), (OffsetLayout, offsetOption), - (LimExpLayout, limExpOption), + (LimitLayout, limitOption), + (ExponentLayout, expOption), (MidpointLayout, midpointOption)}) { option.Item1.Layout(option.Item2); @@ -94,18 +104,22 @@ namespace grapher.Layouts public void Layout( IOption accelOption, + IOption scaleOption, IOption capOption, IOption weightOption, IOption offsetOption, - IOption limExpOption, + IOption limitOption, + IOption expOption, IOption midpointOption, Button button) { Layout(accelOption, + scaleOption, capOption, weightOption, offsetOption, - limExpOption, + limitOption, + expOption, midpointOption, button, accelOption.Top); |