Subversion Repositories amilis

Rev

Blame | Last modification | View Log | RSS feed

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace SimpleRadar
{
    class Config
    {
        #region Anoto Pen Configuration

        public static float DxAnotoPen = 0.01f;
        public static float DyAnotoPen = 0.01f;


        #endregion

        #region General settings

        public static string picturesFolderName = "pictures";

        #endregion

        #region Map drawing settings

        public static int initialZoom = 3;

        public static string selectedSectorName = "T2";

        public static Pen franceDrawingPen = new Pen(Color.FromArgb(250, Color.DarkGray), 1.0f);

        public static Pen defaultDrawPlotsPen = new Pen(Color.FromArgb(200, Color.White), 0.1f);
        public static Pen defaultDrawLinePen = new Pen(Color.FromArgb(150, Color.White), 0.1f);
        public static Color defaultDrawStringColor = Color.FromArgb(240, Color.White);
        public static Font defaultAircraftTagFont = new Font("Arial", 9, FontStyle.Bold);

        public static string descentTendency = "-";
        public static string stableTendency = "";
        public static string climbTendency = "+";

        #endregion

        #region Alidade settings

        public static Pen alidadePen = new Pen(Color.FromArgb(250, Color.Red), 2.0f);
        public static int alidadeDistancePrecision = 1;
        public static Font alidadeDistanceFont = new Font("Arial", 12, FontStyle.Bold);
        public static Color alidadeDistanceColor = Color.FromArgb(250, Color.LightGray);
        public static int alidadeDistanceXShift = 10;
        public static int alidadeDistanceYShift = 0;
        public static string alidadeDistanceSuffix = " NM";
        public static float alidadeDistanceCoefficient = 1f;

        //public static int alidadeLabelWidth = 180;
        public static int alidadeLabelWidth = 100;
        public static int alidadeLabelHeight = 30;
        public static Font alidadeLabelFont = new Font("Times New Roman", 18, FontStyle.Bold);
        //public static string alidadeLabelUnselectedText = "Alidade inactive";
        public static string alidadeLabelUnselectedText = "Alidade";
        public static Color alidadeLabelUnselectedForeColor = Color.FromArgb(100, Color.DarkGray);
        public static Color alidadeLabelUnselectedBackColor = Color.FromArgb(0, Color.White);
        //public static string alidadeLabelSelectedText = "Alidade active";
        public static string alidadeLabelSelectedText = "Alidade";
        public static Color alidadeLabelSelectedForeColor = Color.FromArgb(100, Color.Black);
        public static Color alidadeLabelSelectedBackColor = Color.FromArgb(0, Color.White);

        #endregion

        #region Clock settings

        public static Color clockLabelForeColor = Color.FromArgb(100, Color.DarkGray);
        public static Color clockLabelBackColor = Color.FromArgb(0, Color.White);
        public static Font clockLabelFont = new Font("Times New Roman", 18, FontStyle.Bold);
        public static int clockLabelWidth = 80;
        public static int clockLabelHeight = 30;

        #endregion

        #region Selected aircraft settings

        public static int aircraftSelectedTimerRadius = 900;
        public static int aircraftSelectedTimerInterval = 20;
        public static Pen aircraftSelectedPen = new Pen(Color.FromArgb(80, Color.Blue), 5.0f);
        public static int firstSelectedAircraftCircleRadiusDecrease = 150;
        public static int secondSelectedAircraftCircleRadiusDecrease = 40;
        public static int aircraftSelectedCircleRadiusMinimumSize = 20;

        #endregion

        #region Warning aircraft settings

        public static Pen warningDrawPlotsPen = new Pen(Color.FromArgb(250, Color.Orange), 0.4f);
        public static Color warningFillPolygonColor = Color.FromArgb(255, Color.Orange);

        #endregion

        #region Part aircraft settings

        public static Pen partDrawPlotsPen = new Pen(Color.FromArgb(250, Color.Aqua), 0.4f);
        public static Color defaultFillPartRectangleColor = Color.FromArgb(255, Color.Chocolate);

        #endregion

        #region Followed aircraft settings

        public static Font followedAircraftFont = new Font("Arial", 12, FontStyle.Bold);
        public static Color followedAircraftColor = Color.FromArgb(150, Color.Blue);
        public static string picturesUsedArrowsNamesSuffix = "BlueArrow.png";

        #endregion

        #region Beacon separation aircraft settings

        public static Font separationBeaconDistancesFont = new Font("Arial", 10, FontStyle.Bold);
        public static Color separationBeaconDistanceOneColor = Color.FromArgb(200, Color.LightBlue);
        public static Pen separationBeaconDistanceOnePen = new Pen(separationBeaconDistanceOneColor, 3.0f);
        public static Color separationBeaconDistanceTwoColor = Color.FromArgb(200, Color.LightPink);
        public static Pen separationBeaconDistanceTwoPen = new Pen(separationBeaconDistanceTwoColor, 2.5f);
        public static Color goodSeparationDistanceColor = Color.FromArgb(200, Color.LightGreen);
        public static Color wrongSeparationDistanceColor = Color.FromArgb(200, Color.Red);
        public static Pen thicksJointLinesPen = new Pen(Color.FromArgb(200, Color.White), 1.5f);
        public static System.Drawing.Drawing2D.DashStyle thicksJointLinesPenDashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
        public static int thicksOneEllipseSize = 10;
        public static int thicksTwoEllipseSize = 8;
        public static int minimumAvailableDistance = 5;

        #endregion

        #region ModS settings

        public static int aircraftModsTimerInterval = 200;
        public static int aircraftModsTimerSecondsLifeTime = 6;
        public static int aircraftModsTimerRadius = 40;
        public static int aircraftModsTimerIterationsToFocus = 20;
        public static Font modsFont = new Font("Arial", 9, FontStyle.Bold);
        public static Color modsNormalColor = Color.White;
        public static Color modsUnsucceedColor = Color.Aqua;
        public static Color modsSucceedColor = Color.Black;
        public static string modsPrefix = "<";
        public static string modsSuffix = ">";

        #endregion

        #region CFL filter settings

        public static Font filterActiveFont = new Font("Arial", 50, FontStyle.Bold);
        public static Color filterActiveColor = Color.FromArgb(50, Color.LightGray);
        public static Pen unfilteredDrawPlotsPen = new Pen(Color.FromArgb(100, Color.LightGray), 0.1f);
        public static Color unfilteredFillPartRectangleColor = Color.FromArgb(80, Color.Chocolate);
        public static Pen filteredDrawLinePen = new Pen(Color.FromArgb(255, Color.White), 0.3f);
        public static Pen unfilteredDrawLinePen = new Pen(Color.FromArgb(180, Color.LightGray), 0.1f);
        public static Color unfilteredDrawStringColor = Color.FromArgb(180, Color.LightGray);
        public static Font filteredAircraftTagFont = new Font("Arial", 11, FontStyle.Bold);

        #endregion

        #region Alarms settings

        public static int aircraftAlarmsTimerInterval = 200;
        public static int aircraftAlarmsTimerSecondsLifeTime = 10;
        public static int aircraftAlarmsTimerFeedbackSecondsLifeTime = 5;
        public static int aircraftAlarmsTimerRadius = 40;
        public static int aircraftAlarmsTimerIterationsToFocus = 20;
        public static Font alarmFont = new Font("Arial", 9, FontStyle.Bold);
        public static Color alarmColor = Color.FromArgb(255, Color.White);
        public static Color alarmCircleColor = Color.FromArgb(200, Color.Aqua);
        public static string clockPictureName = "clock.png";

        #endregion

        #region Information messages settings

        public static Color iInformationMessageLabelBackColor = Color.Transparent;
        public static Color iInformationMessageLabelForeColor = Color.Aqua;
        public static string iInformationMessageLabelText = "i";
        public static string iInformationMessageLabelFontFamily = "Blackadder ITC";
        public static float iInformationMessageLabelFontSizeCoefficient = 0.50f;
        public static Color informationMessageForeColor = Color.White;
        public static Color informationMessageBackColor = Color.Transparent;
        public static int informationMessageCompression = 6;
        public static int informationMessageLocationCeilValue = 100;

        #endregion

        #region Tag messages settings

        public static Color tagMessageForeColor = Color.White;
        public static Color tagMessageBackColor = Color.Transparent;
        public static Color emptyTagMessageBackColor = Color.White;
        public static int tagMessageEmptyCompression = 3;
        public static int tagMessageCompression = 14;
        public static int tagMessageLocationCeilValue = 100;

        #endregion

        #region Contextual menu settings

        public static string visuPisteMenuItemCaption = "VISU PISTE";
        public static string montrerMenuItemCaption = "MONTRER...";
        public static string shootRequestMenuItemCaption = "SHOOTRQT";
        public static string flMenuItemCaption = "FL ?";
        public static string ripMenuItemCaption = "RIP...";
        public static string mvtMenuItemCaption = "MVT...";
        public static string modMenuItemCaption = "MOD...";
        public static string partMenuItemCaption = "PART";
        public static string warningMenuItemCaption = "WARNING";
        public static string accesPlnMenuItemCaption = "ACCES PLN";
        public static string cnlMenuItemCaption = "CNL...";
        public static string decorMenuItemCaption = "DECOR";
        public static string lvolMenuItemCaption = "LVOL";

        #endregion



        /* ******************** A ENLEVER PLUS TARD ********************************** */
        //#region Route

        //public static float coordinatesRatio = 8f;

        //public static string sectorsXmlFilePath = "sectors.xml";
        //public static string beaconsXmlFilePath = "balises.xml";
        //public static string routesXmlFilePath = "routes.xml";

        //public static Pen drawRoutesPen = new Pen(Color.FromArgb(60, Color.White), 1.0f);

        //#endregion

        //#region Beacon

        //public static Font unselectedBeaconsCodesFont = new Font("Arial", 8, FontStyle.Regular);
        //public static Color drawBeaconColor = Color.FromArgb(100, Color.Black);
        //public static Color drawBeaconCodeColor = Color.FromArgb(80, Color.Black);
        //public static Color drawSelectedBeaconColor = Color.FromArgb(100, Color.White);
        //public static Color drawSelectedBeaconCodeColor = Color.FromArgb(80, Color.White);
        //public static Font selectedBeaconsCodesFont = new Font("Arial", 8, FontStyle.Bold);

        //public static int beaconsCirclesSize = 5;
        //#endregion

        //#region Sector
        //public static int sectorHighFloorValue = 195;
        //public static Color sectorLinesColor = Color.FromArgb(40, Color.Black);
        ////public static Color sectorSelectedFillColor = Color.FromArgb(250, Color.DarkSlateGray);
        //public static Color sectorSelectedFillColor = Color.FromArgb(250, ColorTranslator.FromHtml("#616360"));
        ////public static Color sectorFillColor = Color.FromArgb(0, Color.DarkSlateGray);
        //public static Color sectorFillColor = Color.FromArgb(200, ColorTranslator.FromHtml("#7a797c"));
        //public static Color sectorNameColor = Color.FromArgb(255, Color.Black);
        //public static Font sectorNameFont = new Font("Arial", 8);
        //#endregion

        //static public int aircraftCometLength = 5;
        /* ************************************* FIN DE A ENLEVER PLUS TARD ************************************** */
    }

}