summaryrefslogtreecommitdiff
path: root/SimpleRadar/Config.cs
blob: 42a00166c99b6039e30ce7b45c891a7266c912f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
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 ************************************** */
    }

}