using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace grapher { public static class Constants { #region Constants /// Vertical separation between charts, in pixels. public const int ChartSeparationVertical = 10; /// Default name of settings file. public const string DefaultSettingsFileName = @"settings.json"; /// Needed to show full contents in form. Unsure why. public const int FormHeightPadding = 35; /// Format string for gain cap active value label. public const string GainCapFormatString = "0.##"; /// DPI by which charts are scaled if none is set by user. public const int DefaultDPI = 1200; /// Poll rate by which charts are scaled if none is set by user. public const int DefaultPollRate = 1000; /// Resolution of chart calulation. public const int Resolution = 100; /// Multiplied by DPI over poll rate to find rough max expected velocity. public const double MaxMultiplier = 85; /// Ratio of max (X, Y) used in "by component" calulations to those used in "whole vector" calculations. public const double XYToCombinedRatio = 1.4; /// Separation between X and Y active value labels, in pixels. public const int ActiveLabelXYSeparation = 2; /// Format string for shortened x and y textboxes. public const string ShortenedFormatString = "0.###"; /// Format string for default active value labels. public const string DefaultActiveValueFormatString = "0.######"; /// Format string for default textboxes. public const string DefaultFieldFormatString = "0.#########"; /// Possible options to display in a layout. public const int PossibleOptionsCount = 6; /// Possible x/y options to display in a layout. public const int PossibleOptionsXYCount = 0; /// Horizontal separation between charts, in pixels. public const int ChartSeparationHorizontal = 10; /// Default horizontal separation between x and y fields, in pixels. public const int DefaultFieldSeparation = 4; /// Default horizontal separation between an option's label and box, in pixels. public const int OptionLabelBoxSeperation = 10; /// Default horizontal separation between an option's label and box, in pixels. public const int OptionVerticalSeperation = 4; /// Format string for shortened x and y fields. public const string ShortenedFieldFormatString = "0.###"; /// Format string for shortened x and y dropdowns. public const string AccelDropDownDefaultFullText = "Acceleration Type"; /// Format string for default dropdowns. public const string AccelDropDownDefaultShortText = "Accel Type"; #endregion Constants #region ReadOnly /// Color of font in active value labels. public static readonly Color ActiveValueFontColor = Color.FromArgb(255, 65, 65, 65); #endregion ReadOnly } }