summaryrefslogtreecommitdiff
path: root/grapher/Models/Options
diff options
context:
space:
mode:
authorJacob Palecki <[email protected]>2020-09-07 20:30:15 -0700
committerJacob Palecki <[email protected]>2020-09-07 20:30:15 -0700
commit1462da675f1bc36d2a770413f13ccc68165cf1e9 (patch)
treeb2636b1455668b42121ffb1133034ed2b30ce672 /grapher/Models/Options
parentFix some separation bugs (diff)
downloadrawaccel-1462da675f1bc36d2a770413f13ccc68165cf1e9.tar.xz
rawaccel-1462da675f1bc36d2a770413f13ccc68165cf1e9.zip
Add chart resize
Diffstat (limited to 'grapher/Models/Options')
-rw-r--r--grapher/Models/Options/ApplyOptions.cs9
-rw-r--r--grapher/Models/Options/Option.cs1
2 files changed, 8 insertions, 2 deletions
diff --git a/grapher/Models/Options/ApplyOptions.cs b/grapher/Models/Options/ApplyOptions.cs
index 68f06fb..96d598d 100644
--- a/grapher/Models/Options/ApplyOptions.cs
+++ b/grapher/Models/Options/ApplyOptions.cs
@@ -18,7 +18,8 @@ namespace grapher.Models.Options
ToolStripMenuItem byComponentMenuItem,
CheckBox byComponentVectorXYLock,
AccelOptionSet optionSetX,
- AccelOptionSet optionSetY)
+ AccelOptionSet optionSetY,
+ AccelCharts accelCharts)
{
WholeVectorMenuItem = wholeVectorMenuItem;
ByComponentVectorMenuItem = byComponentMenuItem;
@@ -32,6 +33,7 @@ namespace grapher.Models.Options
ByComponentVectorXYLock = byComponentVectorXYLock;
OptionSetX = optionSetX;
OptionSetY = optionSetY;
+ AccelCharts = accelCharts;
ByComponentVectorXYLock.CheckedChanged += new System.EventHandler(OnByComponentXYLockChecked);
ByComponentVectorXYLock.Checked = true;
@@ -53,6 +55,8 @@ namespace grapher.Models.Options
public AccelOptionSet OptionSetY { get; }
+ public AccelCharts AccelCharts { get; }
+
public bool IsWhole { get; private set; }
#endregion Properties
@@ -130,12 +134,14 @@ namespace grapher.Models.Options
{
OptionSetX.SetRegularMode();
OptionSetY.Hide();
+ AccelCharts.SetWidened();
}
public void ShowByComponentAsOneSet()
{
OptionSetX.SetTitleMode("X = Y");
OptionSetY.Hide();
+ AccelCharts.SetWidened();
}
public void ShowByComponentAsTwoSets()
@@ -143,6 +149,7 @@ namespace grapher.Models.Options
OptionSetX.SetTitleMode("X");
OptionSetY.SetTitleMode("Y");
OptionSetY.Show();
+ AccelCharts.SetNarrowed();
}
public void ShowByComponentSet()
diff --git a/grapher/Models/Options/Option.cs b/grapher/Models/Options/Option.cs
index 5355a8a..3c7b2ec 100644
--- a/grapher/Models/Options/Option.cs
+++ b/grapher/Models/Options/Option.cs
@@ -112,7 +112,6 @@ namespace grapher
}
set
{
- Field.Width = value;
}
}