From 2be0106211cb4ce30036fc0c8e84ae70dff68c87 Mon Sep 17 00:00:00 2001
From: a1xd <68629610+a1xd@users.noreply.github.com>
Date: Thu, 8 Oct 2020 02:07:56 -0400
Subject: add toggle button + save gui settings on close
remove option to disable write on startup
---
grapher/Constants/Constants.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'grapher/Constants/Constants.cs')
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs
index b41ffa2..639bd9b 100644
--- a/grapher/Constants/Constants.cs
+++ b/grapher/Constants/Constants.cs
@@ -58,7 +58,7 @@ namespace grapher
public const int NarrowChartLeft = 482;
/// Vertical placement of write button above bottom of sensitivity graph
- public const int WriteButtonVerticalOffset = 80;
+ public const int ButtonVerticalOffset = 60;
/// Format string for shortened x and y textboxes.
public const string ShortenedFormatString = "0.###";
@@ -85,7 +85,10 @@ namespace grapher
public const string WriteButtonDefaultText = "Apply";
/// Default text to be displayed on write button.
- public const string WriteButtonDelayText = "Delay";
+ public const string ToggleButtonDefaultText = "Toggle";
+
+ /// Default text to be displayed on write button.
+ public const string ButtonDelayText = "Delay";
/// Title of sensitivity chart.
public const string SensitivityChartTitle = "Sensitivity";
--
cgit v1.2.3
From 37d2cb7d3ed25862683ef807712c7d50f71e8493 Mon Sep 17 00:00:00 2001
From: a1xd <68629610+a1xd@users.noreply.github.com>
Date: Thu, 8 Oct 2020 02:08:27 -0400
Subject: add scroll to charts
---
grapher/Constants/Constants.cs | 3 +++
1 file changed, 3 insertions(+)
(limited to 'grapher/Constants/Constants.cs')
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs
index 639bd9b..5a05863 100644
--- a/grapher/Constants/Constants.cs
+++ b/grapher/Constants/Constants.cs
@@ -115,6 +115,9 @@ namespace grapher
/// Color of font in active value labels.
public static readonly Color ActiveValueFontColor = Color.FromArgb(255, 65, 65, 65);
+ public static readonly Point Origin = new Point(0);
+ public static readonly Size MaxSize = new Size(9999, 9999);
+
#endregion ReadOnly
}
}
--
cgit v1.2.3
From a44294e7e689e43417323d6b1684f7462d113cb1 Mon Sep 17 00:00:00 2001
From: a1xd <68629610+a1xd@users.noreply.github.com>
Date: Thu, 8 Oct 2020 22:53:31 -0400
Subject: improve comments, variable names
---
grapher/Constants/Constants.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'grapher/Constants/Constants.cs')
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs
index 5a05863..c207b6d 100644
--- a/grapher/Constants/Constants.cs
+++ b/grapher/Constants/Constants.cs
@@ -84,10 +84,10 @@ namespace grapher
/// Default text to be displayed on write button.
public const string WriteButtonDefaultText = "Apply";
- /// Default text to be displayed on write button.
+ /// Default text to be displayed on toggle button.
public const string ToggleButtonDefaultText = "Toggle";
- /// Default text to be displayed on write button.
+ /// Default text to be displayed on button delay.
public const string ButtonDelayText = "Delay";
/// Title of sensitivity chart.
--
cgit v1.2.3
From bcacf971e4cace869243edd5fff3fdb435d48c44 Mon Sep 17 00:00:00 2001
From: a1xd <68629610+a1xd@users.noreply.github.com>
Date: Thu, 8 Oct 2020 23:08:11 -0400
Subject: add magic number to constants
---
grapher/Constants/Constants.cs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'grapher/Constants/Constants.cs')
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs
index c207b6d..d669d25 100644
--- a/grapher/Constants/Constants.cs
+++ b/grapher/Constants/Constants.cs
@@ -60,6 +60,8 @@ namespace grapher
/// Vertical placement of write button above bottom of sensitivity graph
public const int ButtonVerticalOffset = 60;
+ public const float SmallButtonSizeFactor = 0.666f;
+
/// Format string for shortened x and y textboxes.
public const string ShortenedFormatString = "0.###";
@@ -89,7 +91,7 @@ namespace grapher
/// Default text to be displayed on button delay.
public const string ButtonDelayText = "Delay";
-
+
/// Title of sensitivity chart.
public const string SensitivityChartTitle = "Sensitivity";
--
cgit v1.2.3