diff options
| author | Jacob Palecki <[email protected]> | 2020-09-07 19:13:30 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-07 19:13:30 -0700 |
| commit | 0fb1013f66026c696fec6469c02aba1c91711289 (patch) | |
| tree | 5a8a93de6c372195504bf17156f106835cc3a6b7 /grapher/Constants | |
| parent | Refactor type options (diff) | |
| download | rawaccel-0fb1013f66026c696fec6469c02aba1c91711289.tar.xz rawaccel-0fb1013f66026c696fec6469c02aba1c91711289.zip | |
Fix some separation bugs
Diffstat (limited to 'grapher/Constants')
| -rw-r--r-- | grapher/Constants/Constants.cs | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index 3d19b21..c7ca617 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -11,18 +11,6 @@ namespace grapher { #region Constants - /// <summary> Vertical separation between charts, in pixels. </summary> - public const int ChartSeparationVertical = 10; - - /// <summary> Default name of settings file. </summary> - public const string DefaultSettingsFileName = @"settings.json"; - - /// <summary> Needed to show full contents in form. Unsure why. </summary> - public const int FormHeightPadding = 35; - - /// <summary> Format string for gain cap active value label. </summary> - public const string GainCapFormatString = "0.##"; - /// <summary> DPI by which charts are scaled if none is set by user. </summary> public const int DefaultDPI = 1200; @@ -38,23 +26,17 @@ namespace grapher /// <summary> Ratio of max (X, Y) used in "by component" calulations to those used in "whole vector" calculations. </summary> public const double XYToCombinedRatio = 1.4; + /// <summary> Possible options to display in a layout. </summary> + public const int PossibleOptionsCount = 6; + /// <summary> Separation between X and Y active value labels, in pixels. </summary> public const int ActiveLabelXYSeparation = 2; - /// <summary> Format string for shortened x and y textboxes. </summary> - public const string ShortenedFormatString = "0.###"; - - /// <summary> Format string for default active value labels. </summary> - public const string DefaultActiveValueFormatString = "0.######"; - - /// <summary> Format string for default textboxes. </summary> - public const string DefaultFieldFormatString = "0.#########"; - - /// <summary> Possible options to display in a layout. </summary> - public const int PossibleOptionsCount = 6; + /// <summary> Vertical separation between charts, in pixels. </summary> + public const int ChartSeparationVertical = 10; - /// <summary> Possible x/y options to display in a layout. </summary> - public const int PossibleOptionsXYCount = 0; + /// <summary> Needed to show full contents in form. Unsure why. </summary> + public const int FormHeightPadding = 35; /// <summary> Horizontal separation between charts, in pixels. </summary> public const int ChartSeparationHorizontal = 10; @@ -68,14 +50,33 @@ namespace grapher /// <summary> Default horizontal separation between an option's label and box, in pixels. </summary> public const int OptionVerticalSeperation = 4; + /// <summary> Horizonatl separation between left side of single dropdown and left side of labels beneath dropdown </summary> + public const int DropDownLeftSeparation = 10; + + /// <summary> Format string for shortened x and y textboxes. </summary> + public const string ShortenedFormatString = "0.###"; + + /// <summary> Format string for default active value labels. </summary> + public const string DefaultActiveValueFormatString = "0.######"; + + /// <summary> Format string for default textboxes. </summary> + public const string DefaultFieldFormatString = "0.#########"; + /// <summary> Format string for shortened x and y fields. </summary> public const string ShortenedFieldFormatString = "0.###"; + /// <summary> Format string for gain cap active value label. </summary> + public const string GainCapFormatString = "0.##"; + /// <summary> Format string for shortened x and y dropdowns. </summary> public const string AccelDropDownDefaultFullText = "Acceleration Type"; /// <summary> Format string for default dropdowns. </summary> public const string AccelDropDownDefaultShortText = "Accel Type"; + + /// <summary> Default name of settings file. </summary> + public const string DefaultSettingsFileName = @"settings.json"; + #endregion Constants #region ReadOnly |