forked from AlbertBall/railway-dot-exe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInterfaceUnit.h
1710 lines (1584 loc) · 82.2 KB
/
InterfaceUnit.h
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// InterfaceUnit.h
/*
Comments in .h files are believed to be accurate and up to date
This is a source code file for "railway.exe", a railway operation
simulator, written originally in Borland C++ Builder 4 Professional with
later updates in Embarcadero C++Builder.
Copyright (C) 2010 Albert Ball [original development]
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
The following notice relates to incorporation of Internet Direct (Indy) components used in the multiplayer functions under the BSD Licence.
Portions of this software are Copyright (c) 1993 ?2018, Chad Z. Hower (Kudzu) and the Indy Pit Crew ?http://www.IndyProject.org/
License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
in the documentation, about box and/or other materials provided with the distribution.
No personal names or organizations names associated with the Indy project may be used to endorse or promote products derived from
this software without specific prior written permission of the specific individual or organization.
THIS SOFTWARE IS PROVIDED BY Chad Z. Hower (Kudzu) and the Indy Pit Crew “AS IS?AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// ---------------------------------------------------------------------------
#ifndef InterfaceUnitH
#define InterfaceUnitH
// ---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <Dialogs.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>
#include <System.ImageList.hpp>
#include <System.IOUtils.hpp> //for directory manipulation
#include <Vcl.ImgList.hpp>
#include <IdBaseComponent.hpp> //
#include <IdComponent.hpp> //
#include <IdUDPBase.hpp> // These added automatically when added
#include <IdUDPClient.hpp> // the IdClient components
#include <IdGlobal.hpp> //
#include <IdSocketHandle.hpp> //
#include <IdException.hpp> // These added from internet searches on 'EIdSocketError received on closing the app'
#include <IdStack.hpp>
#include <Vcl.Grids.hpp> // needed for the multiplayer StringGrid
#include <map>
#include <list>
#include <fstream>
#include <vector>
#include <vcl.h>
#include <windows.h> //needed for 64 bit compilation
// ---------------------------------------------------------------------------
typedef std::pair<int, int>THVShortPair; //also defined in TrainUnit.h but that isn't available from here
///< HLoc/VLoc position pair
class TOnePrefDir; // predeclarations
class TOneRoute;
class TTrack;
class TGraphicElement;
class TTrainController;
class TTrainDataEntry;
class API; //forward class declaration instead of including header added at v2.10.0
class TInterface : public TForm
{
__published: // IDE-managed Components
TBitBtn *SaveRailwayBaseModeButton;
///< Save button at the top left hand corner of the screen when no mode is selected
// 'Build/modify railway' mode - buttons left to right
TBitBtn *AddTrackButton;
TBitBtn *SetGapsButton;
TBitBtn *TrackOKButton;
TBitBtn *AddTextButton;
TBitBtn *MoveTextOrGraphicButton;
TBitBtn *LocationNameButton;
TBitBtn *FontButton;
TBitBtn *TextOrUserGraphicGridButton;
TBitBtn *SetLengthsButton;
TBitBtn *ScreenGridButton;
TBitBtn *SaveRailwayTBPButton;
///< Save button on TrackBuildPanel
TBitBtn *SigAspectButton;
TBitBtn *ExitTrackButton;
TBitBtn *RestoreAllDefaultLengthsButton;
TBitBtn *ResetDefaultLengthButton;
TBitBtn *LengthCancelButton;
TBitBtn *LengthOKButton;
///< distance/speed setting buttons - left to right & top to bottom
TBitBtn *UserGraphicButton; // new at v2.4.0
// user graphic selection buttons
TButton *ReselectUserGraphic;
TButton *SelectNewGraphic;
TEdit *TextBox;
///< the edit box that accepts text to be added
TEdit *DistanceBox;
///< distance/speed setting edit box that accepts distances
TEdit *SpeedLimitBox;
///< distance/speed setting edit box that accepts speed limits
TEdit *LocationNameTextBox;
///< edit box that accepts location names
// length & speed conversion boxes on distance setting screen
TEdit *MileEdit;
TEdit *ChainEdit;
TEdit *YardEdit;
TEdit *SpeedEditBox2;
TPanel *MetrePanel;
TLabel *MetreVariableLabel;
TLabel *MileLabel;
TPanel *LengthConversionPanel;
TPanel *SpeedConversionPanel;
TPanel *SpeedVariablePanel2;
TLabel *ChainLabel;
TLabel *YardLabel;
TLabel *MetreFixedLabel;
TLabel *SpeedTopLabel2;
TLabel *SpeedBottomLabel2;
TLabel *SpeedVariableLabel2;
// 'Set preferred directions' mode - buttons left to right
TBitBtn *AddPrefDirButton;
TBitBtn *DeleteOnePrefDirButton;
TBitBtn *DeleteAllPrefDirButton;
TBitBtn *SaveRailwayPDPButton;
///< Save button on PrefDirPanel
TBitBtn *ExitPrefDirButton;
// 'Create a timetable'/'Edit a timetable' mode - top buttons left to right
TBitBtn *ShowHideTTButton;
TBitBtn *ExitTTModeButton;
// left hand column timetable buttons top to bottom
TButton *PreviousTTEntryButton;
TButton *NextTTEntryButton;
TButton *CopyTTEntryButton;
TButton *CutTTEntryButton;
TButton *PasteTTEntryButton;
TButton *DeleteTTEntryButton;
TButton *MoveTTEntryUpButton;
TButton *MoveTTEntryDownButton;
TButton *SaveTTEntryButton;
TButton *CancelTTEntryButton;
TButton *NewTTEntryButton;
// centre column buttons left to right & top to bottom
TButton *AZOrderButton;
TButton *AddMinsButton;
TButton *SubMinsButton;
TButton *TTServiceSyntaxCheckButton;
TButton *ValidateTimetableButton;
TButton *SaveTTButton;
TButton *SaveTTAsButton;
TButton *RestoreTTButton;
TButton *ExportTTButton;
// service code buttons top to bottom
TButton *SntButton;
TButton *SfsButton;
TButton *SnsButton;
TButton *Sns_fshButton;
TButton *Snt_shButton;
TButton *Sns_shButton;
TButton *pasButton;
TButton *jboButton;
TButton *fspButton;
TButton *rspButton;
TButton *cdtButton;
TButton *FnsButton;
TButton *FjoButton;
TButton *FerButton;
TButton *Frh_shButton;
TButton *Fns_shButton;
TButton *F_nshsButton;
TButton *FrhButton;
TPanel *AddSubMinsPanel;
///< timetable minutes panel
TEdit *TTStartTimeBox;
///< edit box that displays the timetable start time
TComboBox *LocationNameComboBox;
///< the combobox that lists location names
TEdit *AddSubMinsBox;
///< the edit box that accepts minutes to add or subtract
// speed conversion box on timetable screen
TEdit *SpeedEditBox;
TLabel *SpeedTopLabel;
TLabel *SpeedBottomLabel;
TLabel *SpeedVariableLabel;
TPanel *SpeedVariablePanel1;
TPanel *SpeedConversionTTPanel;
// power conversion box on timetable screen
TEdit *PowerEditBox;
TLabel *PowerTopLabel;
TLabel *PowerBottomLabel;
TLabel *PowerVariableLabel;
TPanel *KWPanel;
// 'Operate railway' mode - buttons left to right
TBitBtn *OperateButton;
TBitBtn *AutoSigsButton;
TBitBtn *SigPrefConsecButton;
TBitBtn *UnrestrictedButton;
TBitBtn *RouteCancelButton;
TBitBtn *PresetAutoSigRoutesButton;
TBitBtn *PerformanceLogButton;
TBitBtn *SaveSessionButton;
TBitBtn *OperatorActionButton; // new for v2.2.0
TBitBtn *ExitOperationButton;
TBitBtn *TTClockAdjButton;
TSpeedButton *CallingOnButton; // speedbutton used so can detect when button is down
TButton *PowerToggleButton; // kilowatts to horse power toggle
TButton *SpeedToggleButton; // miles per hour to kilmetres per hour toggle
TButton *SpeedToggleButton2; // miles per hour to kilmetres per hour toggle
// timetable clock adjustment panel, buttons & labels
TPanel *TTClockAdjPanel;
TPanel *TTClockAdjustWarningPanel;
TButton *TTClockAdd1hButton;
TButton *TTClockAdd10mButton;
TButton *TTClockAdd1mButton;
TButton *TTClockAdjustOKButton;
TButton *TTClockExitButton;
TButton *TTClockResetButton;
TButton *TTClockxQuarterButton;
TButton *TTClockxHalfButton;
TButton *TTClockx1Button;
TButton *TTClockx2Button;
TButton *TTClockx4Button;
TButton *TTClockx8Button;
TButton *TTClockx16Button;
TButton *TTClockxEighthButton;
TButton *TTClockxSixteenthButton;
TCheckBox *TTClockAdjustCheckBox;
TLabel *TTClockAdjustWarningLabel;
// timetable conflict analysis button & panel
TButton *ConflictAnalysisButton;
TButton *CPCancelButton;
TButton *CPGenFileButton;
TPanel *ConflictPanel;
TLabel *CPLabel1;
TLabel *CPLabel2;
TLabel *CPLabel3;
TLabel *CPLabel4;
TLabel *CPLabel5;
TCheckBox *CPArrivalsCheckBox;
TCheckBox *CPDeparturesCheckBox;
TCheckBox *CPAtLocCheckBox;
TEdit *CPEditArrRange;
TEdit *CPEditDepRange;
// screen navigation buttons (right/up means move viewpoint right/up, i.e railway moves left/down)
TBitBtn *ScreenRightButton;
TBitBtn *ScreenLeftButton;
TBitBtn *ScreenUpButton;
TBitBtn *ScreenDownButton;
TBitBtn *HomeButton;
TBitBtn *NewHomeButton;
TBitBtn *ZoomButton;
TBitBtn *ErrorButton;
///< the 'Press to exit' button on the error screen
// warning icons shown during operation on the left hand side of the screen
TImage *SignalStopImage; //top 125
TImage *BufferAttentionImage; //2nd 155
TImage *CallOnImage; //3rd 185
TImage *SPADImage; //4th 215
TImage *CrashImage; //5th 245
TImage *DerailImage; //6th 275
TImage *TrainFailedImage; //7th 305 new at v2.4.0
TImage *ManualLCDownImage; //8th 335 new 1t v2.9.0
TImage *DistanceKey;
///< information panel displayed when setting distances & speed limits
TImage *PrefDirKey;
///< information panel displayed when setting preferred directions
// railway status icons displayed on the left hand side of the screen during build/modify mode
TImage *TrackLinkedImage;
TImage *TrackNotLinkedImage;
TImage *GapsSetImage;
TImage *GapsNotSetImage;
TImage *LocationNamesSetImage;
TImage *LocationNamesNotSetImage;
TImage *SigsOnLeftImage1; // these new at v2.3.0 for handed signals
TImage *SigsOnLeftImage2;
TImage *SigsOnRightImage1;
TImage *SigsOnRightImage2;
TImage *MainScreen;
///< the railway display screen
TImageList *TTImageList;
TImageList *MMImageList;
// the warning logs displayed during operation above the railway screen
TLabel *OutputLog1;
TLabel *OutputLog2;
TLabel *OutputLog3;
TLabel *OutputLog4;
TLabel *OutputLog5;
TLabel *OutputLog6;
TLabel *OutputLog7;
TLabel *OutputLog8;
TLabel *OutputLog9;
TLabel *OutputLog10;
TLabel *PrefDirPanelLabel;
///< label to the left of PrefDirPanel
TLabel *ServiceCodeLabel;
///< displays 'Service component codes' on TimetableEditPanel
TLabel *SpeedRestrictionLabel;
///< displays 'Speed Limit (km/h)' on TrackLengthPanel
TLabel *TimetableNameLabel;
///< displays the current timetable name on the timetable edit panel
TLabel *TimetablePanelLabel;
///< label to the left of TimetablePanel
TLabel *TrackBuildPanelLabel;
///< label to the left of TrackBuildPanel
TLabel *TrackLengthLabel;
///< displays 'Length (metres)' on TrackLengthPanel
TLabel *CallLogTickerLabel;
///< diagnostic label displaying the call log depth, made visible by ctrl+ alt+ 2
TLabel *ClockLabel;
///< the timetable clock
TLabel *OperatingPanelLabel;
///< displays 'Operation' or 'Disabled' on the operating panel during operation for running or paused
TLabel *TTClockTitleLabel;
TLabel *TTClockLabel1;
TLabel *TTClockLabel2;
TLabel *TTClockSpeedLabel;
TLabel *TTClockAdjustLabel1;
TLabel *TTClockAdjustLabel2;
TLabel *FloatingLabel;
///< the floating window that displays track & train information
// text displayed on the timetable screen
TLabel *TTLabel1;
TLabel *TTLabel2;
TLabel *TTLabel3;
TLabel *TTLabel4;
TLabel *TTLabel5;
TLabel *TTLabel6;
TLabel *TTLabel7;
TLabel *TTLabel8;
TLabel *TTLabel9;
TLabel *TTLabel11;
TLabel *TTLabel12;
TLabel *TTLabel13;
TLabel *TTLabel14;
TLabel *TTLabel15;
TPanel *RestoreFocusPanel;
///< Panel used to restore focus to Interface to enable cursor keys to move screen
TPanel *TrackBuildPanel;
///< 'Build/modify railway' panel
TPanel *PrefDirPanel;
///< 'Set preferred directions' panel
TPanel *TimetablePanel;
///< 'Create a timetable'/'Edit a timetable' panel that contains the topmost buttons (show/hide & exit)
TPanel *OperatingPanel;
///< 'Operate railway' panel
TPanel *TimetableEditPanel;
///< the large panel that contains all the main timetable components
TPanel *TTCommandTextPanel;
///< the timetable panel that contains the service component buttons and information
TPanel *HighlightPanel;
///< the orange bar that displays the current timetable entry in AllEntriesTTListBox
TPanel *InfoPanel;
///< the general information panel (with blue 'i' symbol)
TPanel *TrackElementPanel;
///< panel containing the track/location/parapet element buttons
TPanel *TrackLengthPanel;
///< the panel that contains the distance/speed setting buttons and edit boxes
TPanel *DevelopmentPanel;
///< used for diagnostic purposes, made visible by ctrl+ alt+ 3
TPanel *FloatingPanel;
///<new for v2.2.0 where label sits in it and it autosizes to the label. Labels are not TWinControls so they always underlie panels which are, so using a panel allows it to overlie other panels. With this there is no need to hide the performance panel when the floating panel obscures it.
TPanel *PositionalPanel;
///< new v2.2.0 panel housing the OAListBox with list of trains and times to act
TPanel *SigImagePanel;
///< new at v2.3.0 for handed signals
TMainMenu *MainMenu1;
///< the program menu
TMemo *ErrorMessage;
///< the text of the normal error message screen
TMemo *ErrorMessageStoreImage;
///< the text of the error message for failure to draw trains in SaveOperatingImage
TMemo *OneEntryTimetableMemo;
///< the single service editing and display area on the right hand side of the timetable edit screen
TMemo *TTInfoMemo;
///< timetable help text displayed on the timetable edit screen
TListBox *AllEntriesTTListBox;
///< Operator action list, sits inside ActionsDuePanel and lists trains in ascending order of time to act
TMenuItem *FileMenu;
TMenuItem *LoadRailwayMenuItem;
TMenuItem *SaveAsMenuItem;
TMenuItem *SaveMenuItem;
TMenuItem *LoadTimetableMenuItem;
TMenuItem *LoadSessionMenuItem;
TMenuItem *ExportTTMenuItem;
TMenuItem *ClearAllMenuItem;
TMenuItem *ExitMenuItem;
TMenuItem *ModeMenu;
TMenuItem *BuildTrackMenuItem;
TMenuItem *PlanPrefDirsMenuItem;
TMenuItem *CreateTimetableMenuItem;
TMenuItem *EditTimetableMenuItem;
TMenuItem *OperateRailwayMenuItem;
TMenuItem *WhiteBgndMenuItem;
TMenuItem *BlackBgndMenuItem;
TMenuItem *BlueBgndMenuItem;
TMenuItem *EditMenu;
TMenuItem *SelectMenuItem;
TMenuItem *ReselectMenuItem;
TMenuItem *CutMenuItem;
TMenuItem *CopyMenuItem;
TMenuItem *FlipMenuItem;
TMenuItem *MirrorMenuItem;
TMenuItem *RotateMenuItem;
TMenuItem *PasteMenuItem;
TMenuItem *DeleteMenuItem;
TMenuItem *SelectLengthsMenuItem;
TMenuItem *SelectBiDirPrefDirsMenuItem;
TMenuItem *CancelSelectionMenuItem;
TMenuItem *CheckPrefDirConflictsMenuItem;
TMenuItem *FloatingInfoMenu;
TMenuItem *TrackInfoMenuItem;
TMenuItem *TrackInfoOnOffMenuItem;
TMenuItem *TrainInfoMenuItem;
TMenuItem *TrainStatusInfoOnOffMenuItem;
TMenuItem *TrainTTInfoOnOffMenuItem;
TMenuItem *ImageMenu;
TMenuItem *SaveImageNoGridMenuItem;
TMenuItem *SaveImageAndGridMenuItem;
TMenuItem *SaveImageAndPrefDirsMenuItem;
TMenuItem *SaveOperatingImageMenuItem;
TMenuItem *HelpMenu;
TMenuItem *AboutMenuItem;
TMenuItem *OpenHelpMenuItem;
TMenuItem *TrainHeadCodeMenuItem;
TMenuItem *TakeSignallerControlMenuItem;
TMenuItem *TimetableControlMenuItem;
TMenuItem *ChangeDirectionMenuItem;
TMenuItem *MoveForwardsMenuItem;
TMenuItem *PassRedSignalMenuItem;
TMenuItem *StepForwardMenuItem;
TMenuItem *SkipTimetabledActionsMenuItem;
TMenuItem *SignallerControlStopMenuItem;
TMenuItem *RemoveTrainMenuItem;
TMenuItem *ConvertToOtherHandSignalsMenuItem;
TMenuItem *N1;
TMenuItem *N2;
TMenuItem *N3;
TMenuItem *N4;
TMenuItem *RailwayWebSiteMenuItem;
// TMenuItem *PasteWithAttributesMenuItem; (dropped at 2.4.0 as all pastes are with attributes)
TMenuItem *RotRightMenuItem; // new at v2.4.0
TMenuItem *RotLeftMenuItem; // new at v2.4.0
TMenuItem *SignallerJoinedByMenuItem; // new at v2.4.0
TMenuItem *RepairFailedTrainMenuItem;
TEdit *MTBFEditBox;
TLabel *MTBFLabel;
TPanel *UserGraphicReselectPanel;
TPopupMenu *PopupMenu;
// file open dialogs
TOpenDialog *LoadRailwayDialog;
TOpenDialog *LoadSessionDialog;
TOpenDialog *TimetableDialog;
TOpenDialog *LoadUserGraphicDialog;
// file save dialogs
TSaveDialog *SaveRailwayDialog;
TSaveDialog *SaveTTDialog;
TFontDialog *FontDialog;
///< font change dialog
TTimer *MasterClock;
///< the program clock (not the timetable clock)
// track/location/parapet element buttons displayed on TrackElementPanel
/// See Speedbutton1 detail for track element allocations \image html Speedbutton_image.png
TSpeedButton *SpeedButton1;
TSpeedButton *SpeedButton2;
TSpeedButton *SpeedButton3;
TSpeedButton *SpeedButton4;
TSpeedButton *SpeedButton5;
TSpeedButton *SpeedButton6;
TSpeedButton *SpeedButton7;
TSpeedButton *SpeedButton8;
TSpeedButton *SpeedButton9;
TSpeedButton *SpeedButton10;
TSpeedButton *SpeedButton11;
TSpeedButton *SpeedButton12;
TSpeedButton *SpeedButton13;
TSpeedButton *SpeedButton14;
TSpeedButton *SpeedButton15;
TSpeedButton *SpeedButton16;
// note: 17 missing - used to be for text in early development
TSpeedButton *SpeedButton18;
TSpeedButton *SpeedButton19;
TSpeedButton *SpeedButton20;
TSpeedButton *SpeedButton21;
TSpeedButton *SpeedButton22;
TSpeedButton *SpeedButton23;
TSpeedButton *SpeedButton24;
TSpeedButton *SpeedButton25;
TSpeedButton *SpeedButton26;
TSpeedButton *SpeedButton27;
TSpeedButton *SpeedButton28;
TSpeedButton *SpeedButton29;
TSpeedButton *SpeedButton30;
TSpeedButton *SpeedButton31;
TSpeedButton *SpeedButton32;
TSpeedButton *SpeedButton33;
TSpeedButton *SpeedButton34;
TSpeedButton *SpeedButton35;
TSpeedButton *SpeedButton36;
TSpeedButton *SpeedButton37;
TSpeedButton *SpeedButton38;
TSpeedButton *SpeedButton39;
TSpeedButton *SpeedButton40;
TSpeedButton *SpeedButton41;
TSpeedButton *SpeedButton42;
TSpeedButton *SpeedButton43;
TSpeedButton *SpeedButton44;
TSpeedButton *SpeedButton45;
TSpeedButton *SpeedButton46;
TSpeedButton *SpeedButton47;
TSpeedButton *SpeedButton48;
TSpeedButton *SpeedButton49;
TSpeedButton *SpeedButton50;
TSpeedButton *SpeedButton51;
TSpeedButton *SpeedButton52;
TSpeedButton *SpeedButton53;
TSpeedButton *SpeedButton54;
TSpeedButton *SpeedButton55;
TSpeedButton *SpeedButton56;
TSpeedButton *SpeedButton57;
TSpeedButton *SpeedButton58;
TSpeedButton *SpeedButton59;
TSpeedButton *SpeedButton60;
TSpeedButton *SpeedButton61;
TSpeedButton *SpeedButton62;
TSpeedButton *SpeedButton63;
TSpeedButton *SpeedButton64;
TSpeedButton *SpeedButton65;
TSpeedButton *SpeedButton66;
TSpeedButton *SpeedButton67;
TSpeedButton *SpeedButton68;
TSpeedButton *SpeedButton69;
TSpeedButton *SpeedButton70;
TSpeedButton *SpeedButton71;
TSpeedButton *SpeedButton72;
TSpeedButton *SpeedButton73;
TSpeedButton *SpeedButton74;
TSpeedButton *SpeedButton75;
TSpeedButton *SpeedButton76;
TSpeedButton *SpeedButton77;
TSpeedButton *SpeedButton78;
TSpeedButton *SpeedButton79;
TSpeedButton *SpeedButton80;
TSpeedButton *SpeedButton81;
TSpeedButton *SpeedButton82;
TSpeedButton *SpeedButton83;
TSpeedButton *SpeedButton84;
TSpeedButton *SpeedButton85;
TSpeedButton *SpeedButton86;
TSpeedButton *SpeedButton87;
TSpeedButton *SpeedButton88;
TSpeedButton *SpeedButton89;
TSpeedButton *SpeedButton90;
TSpeedButton *SpeedButton91;
TSpeedButton *SpeedButton92;
TSpeedButton *SpeedButton93;
TSpeedButton *SpeedButton94;
TSpeedButton *SpeedButton95;
TSpeedButton *SpeedButton96;
TSpeedButton *SpeedButton97;
TSpeedButton *SpeedButton98;
TSpeedButton *SpeedButton99;
TSpeedButton *SpeedButton100;
TSpeedButton *SpeedButton101;
TSpeedButton *SpeedButton102;
TSpeedButton *SpeedButton103;
TSpeedButton *SpeedButton104;
TSpeedButton *SpeedButton105;
TSpeedButton *SpeedButton106;
TSpeedButton *SpeedButton107;
TSpeedButton *SpeedButton108;
TSpeedButton *SpeedButton109;
TSpeedButton *SpeedButton110;
TSpeedButton *SpeedButton111;
TSpeedButton *SpeedButton112;
TSpeedButton *SpeedButton113;
TSpeedButton *SpeedButton114;
TSpeedButton *SpeedButton115;
TSpeedButton *SpeedButton116;
TSpeedButton *SpeedButton117;
TSpeedButton *SpeedButton118;
TSpeedButton *SpeedButton119;
TSpeedButton *SpeedButton120;
TSpeedButton *SpeedButton121;
TSpeedButton *SpeedButton122;
TSpeedButton *SpeedButton123;
TSpeedButton *SpeedButton124;
TSpeedButton *SpeedButton125;
TSpeedButton *SpeedButton126;
TSpeedButton *SpeedButton127;
TSpeedButton *SpeedButton128;
TSpeedButton *SpeedButton129;
TSpeedButton *SpeedButton130;
TSpeedButton *SpeedButton131;
TSpeedButton *SpeedButton132;
TSpeedButton *SpeedButton133;
TSpeedButton *SpeedButton134;
TSpeedButton *SpeedButton135;
TSpeedButton *SpeedButton136;
TSpeedButton *SpeedButton137;
TSpeedButton *SpeedButton138;
TSpeedButton *SpeedButton139;
TSpeedButton *SpeedButton140;
TSpeedButton *SpeedButton141;
TSpeedButton *SpeedButton142;
TSpeedButton *SpeedButton143;
TSpeedButton *SpeedButton144;
TSpeedButton *SpeedButton145;
TSpeedButton *SpeedButton146;
TLabel *CPLabel6;
TLabel *CPLabel7;
TLabel *CPLabel8;
TBitBtn *SigPrefNonConsecButton;
TPanel *TwoLocationNamePanel;
TLabel *TwoLocationNameLabel;
TButton *TwoLocationNameButton;
TCheckBox *TwoLocationNameCheckBox;
TLabel *CPLabel9;
TCheckBox *CPDirectionsCheckBox;
//multiplayer items
TIdUDPClient *MPPlayerClient;
TMenuItem *MultiplayerMenu;
TMenuItem *HostCommands;
TMenuItem *N5;
TMenuItem *PlayerCommands;
TOpenDialog *LoadCouplingFileDialog;
TMenuItem *EndSimulationMenuItem;
TMenuItem *ExitSimulationMenuItem;
TMenuItem *SaveMultiplayerSessionMenuItem;
TMenuItem *JoinMultiplayerSessionMenuItem;
TPanel *MultiplayerPlayerPanel;
TLabel *MPCPLabel1;
TButton *MPCPCancelButton;
TButton *MPCPSendButton;
TEdit *MPCPPlayerNameEditBox;
TLabel *MPCPLabel3;
TButton *MPCPReadyToBeginButton;
TLabel *MPCPLabel4;
TImage *MPCPHostImage;
TMenuItem *MultiplayerHostSessionMenuItem;
TLabel *MPCPLabel2;
TPanel *MultiplayerHostPanel;
TLabel *MPHPLabel1;
TButton *MPHPCancelButton;
TButton *MPHPLoadCouplingFileButton;
TButton *MPHPStartButton;
TLabel *MPHPGeneralLabel;
TLabel *MPCPLabel5;
TLabel *MPCPLabel6;
TEdit *MPCPHostIPEditBox;
TEdit *MPCPHostPortEditBox;
TStringGrid *MultiplayerHostStringGrid; // Col 0 = UserName ("Player'n'" initially, Col 1 = RailwayName, Col 2 = Yes/No for player ready to start
// Row 0 = headings, Row 1 = blank, Row 3 etc = list
TLabel *MPCPLabel7;
TLabel *MPCPLabel8;
TLabel *MPHPLabel3;
TEdit *MPHPOwnPortEditBox;
TLabel *MPHPLabel2;
TEdit *MPHPOwnIPEditBox;
TLinkLabel *IPCheckLinkLabel;
TIdUDPClient *MPHostClient;
TMenuItem *N6;
TMenuItem *ReloadConfigMenuItem;
TMenuItem *ShowHideStringGridMenuItem;
TListBox *SkipTTActionsListBox;
TPanel *SkipListHeaderPanel;
TLabel *SkipListHeaderPanelLabel1;
TLabel *SkipListHeaderPanelLabel2;
TImage *SkipListExitImage;
TMenuItem *BecomeNewServiceMenuItem;
TMenuItem *DelayMenu; //these added at v2.13.0
TMenuItem *NoDelaysMenuItem;
TMenuItem *MinorDelaysMenuItem;
TMenuItem *ModerateDelaysMenuItem;
TMenuItem *MajorDelaysMenuItem;
TMenuItem *FailureMenu; //these added at v2.14.0
TMenuItem *NoFailuresMenuItem;
TMenuItem *MinorFailuresMenuItem;
TMenuItem *ModerateFailuresMenuItem;
TMenuItem *MajorFailuresMenuItem;
TBitBtn *SigAutoNonConsecButton;
TButton *InvertTTEntryButton;
TButton *Button1;
TBitBtn *FlashControlButton;
TButton *ExpandRepeatsButton;
TButton *TimeOrderButton;
TMenuItem *SetReminderMenuItem;
TListBox *ReminderListBox;
TPanel *ReminderHeaderPanel;
TImage *ReminderExitImage;
TLabel *ReminderLabel1;
TLabel *ReminderLabel2; //added at v2.15.0
// menu item actions
void __fastcall AboutMenuItemClick(TObject *Sender);
void __fastcall BlackBgndMenuItemClick(TObject *Sender);
void __fastcall BlueBgndMenuItemClick(TObject *Sender);
void __fastcall BuildTrackMenuItemClick(TObject *Sender);
void __fastcall CancelSelectionMenuItemClick(TObject *Sender);
void __fastcall ClearAllMenuItemClick(TObject *Sender);
void __fastcall CopyMenuItemClick(TObject *Sender);
void __fastcall CreateTimetableMenuItemClick(TObject *Sender);
void __fastcall CutMenuItemClick(TObject *Sender);
void __fastcall DeleteMenuItemClick(TObject *Sender);
void __fastcall EditMenuClick(TObject *Sender); // added at v2.1.0 to allow CTRL+X, CTRL+C & CTRL+V in edit menu
void __fastcall EditTimetableMenuItemClick(TObject *Sender);
void __fastcall ExitMenuItemClick(TObject *Sender);
void __fastcall ExportTTMenuItemClick(TObject *Sender);
void __fastcall FlipMenuItemClick(TObject *Sender);
void __fastcall LoadRailwayMenuItemClick(TObject *Sender);
void __fastcall LoadSessionMenuItemClick(TObject *Sender);
void __fastcall LoadTimetableMenuItemClick(TObject *Sender);
void __fastcall MirrorMenuItemClick(TObject *Sender);
void __fastcall OpenHelpMenuItemClick(TObject *Sender);
void __fastcall OperateRailwayMenuItemClick(TObject *Sender);
void __fastcall PasteMenuItemClick(TObject *Sender);
void __fastcall PlanPrefDirsMenuItemClick(TObject *Sender);
void __fastcall ReselectMenuItemClick(TObject *Sender);
void __fastcall RotateMenuItemClick(TObject *Sender);
void __fastcall SaveMenuItemClick(TObject *Sender);
void __fastcall SaveAsMenuItemClick(TObject *Sender);
void __fastcall SaveHeaderMenu1Click(TObject *Sender);
void __fastcall SaveImageAndGridMenuItemClick(TObject *Sender);
void __fastcall SaveImageAndPrefDirsMenuItemClick(TObject *Sender);
void __fastcall SaveImageNoGridMenuItemClick(TObject *Sender);
void __fastcall SaveOperatingImageMenuItemClick(TObject *Sender);
void __fastcall SelectMenuItemClick(TObject *Sender);
void __fastcall SelectBiDirPrefDirsMenuItemClick(TObject *Sender);
void __fastcall SelectLengthsMenuItemClick(TObject *Sender);
void __fastcall TrackInfoOnOffMenuItemClick(TObject *Sender);
void __fastcall TrainStatusInfoOnOffMenuItemClick(TObject *Sender);
void __fastcall TrainTTInfoOnOffMenuItemClick(TObject *Sender);
void __fastcall WhiteBgndMenuItemClick(TObject *Sender);
// popup menu actions
void __fastcall ChangeDirectionMenuItemClick(TObject *Sender);
void __fastcall MoveForwardsMenuItemClick(TObject *Sender);
void __fastcall PassRedSignalMenuItemClick(TObject *Sender);
void __fastcall RemoveTrainMenuItemClick(TObject *Sender);
void __fastcall SignallerControlStopMenuItemClick(TObject *Sender);
void __fastcall StepForwardMenuItemClick(TObject *Sender);
void __fastcall TakeSignallerControlMenuItemClick(TObject *Sender);
void __fastcall TimetableControlMenuItemClick(TObject *Sender);
// mouse actions
void __fastcall AllEntriesTTListBoxMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall MainScreenMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall MainScreenMouseMove(TObject *Sender, TShiftState Shift, int X, int Y);
void __fastcall MainScreenMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog10MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog1MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog2MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog3MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog4MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog5MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog6MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog7MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog8MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall OutputLog9MouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
// button actions
void __fastcall AddMinsButtonClick(TObject *Sender);
void __fastcall AddPrefDirButtonClick(TObject *Sender);
void __fastcall AddTextButtonClick(TObject *Sender);
void __fastcall AddTrackButtonClick(TObject *Sender);
void __fastcall AutoSigsButtonClick(TObject *Sender);
void __fastcall CallingOnButtonClick(TObject *Sender);
void __fastcall CancelTTEntryButtonClick(TObject *Sender);
void __fastcall CopyTTEntryButtonClick(TObject *Sender);
void __fastcall CutTTEntryButtonClick(TObject *Sender);
void __fastcall DeleteAllPrefDirButtonClick(TObject *Sender);
void __fastcall DeleteOnePrefDirButtonClick(TObject *Sender);
void __fastcall DeleteTTEntryButtonClick(TObject *Sender);
void __fastcall ErrorButtonClick(TObject *Sender);
void __fastcall ExitOperationButtonClick(TObject *Sender);
void __fastcall ExitPrefDirButtonClick(TObject *Sender);
void __fastcall ExitTrackButtonClick(TObject *Sender);
void __fastcall ExitTTModeButtonClick(TObject *Sender);
void __fastcall ExportTTButtonClick(TObject *Sender);
void __fastcall FontButtonClick(TObject *Sender);
void __fastcall HomeButtonClick(TObject *Sender);
void __fastcall LengthCancelButtonClick(TObject *Sender);
void __fastcall LengthOKButtonClick(TObject *Sender);
void __fastcall LocationNameButtonClick(TObject *Sender);
void __fastcall MoveTextOrGraphicButtonClick(TObject *Sender);
void __fastcall MoveTTEntryDownButtonClick(TObject *Sender);
void __fastcall MoveTTEntryUpButtonClick(TObject *Sender);
void __fastcall NewHomeButtonClick(TObject *Sender);
void __fastcall NewTTEntryButtonClick(TObject *Sender);
void __fastcall NextTTEntryButtonClick(TObject *Sender);
void __fastcall UnrestrictedButtonClick(TObject *Sender);
void __fastcall OperateButtonClick(TObject *Sender);
void __fastcall PasteTTEntryButtonClick(TObject *Sender);
void __fastcall PerformanceLogButtonClick(TObject *Sender);
void __fastcall PreviousTTEntryButtonClick(TObject *Sender);
void __fastcall ResetDefaultLengthButtonClick(TObject *Sender);
void __fastcall RestoreAllDefaultLengthsButtonClick(TObject *Sender);
void __fastcall RestoreTTButtonClick(TObject *Sender);
void __fastcall RouteCancelButtonClick(TObject *Sender);
void __fastcall SaveTTAsButtonClick(TObject *Sender);
void __fastcall SaveTTButtonClick(TObject *Sender);
void __fastcall SaveTTEntryButtonClick(TObject *Sender);
void __fastcall ScreenDownButtonClick(TObject *Sender);
void __fastcall ScreenGridButtonClick(TObject *Sender);
void __fastcall ScreenLeftButtonClick(TObject *Sender);
void __fastcall ScreenRightButtonClick(TObject *Sender);
void __fastcall ScreenUpButtonClick(TObject *Sender);
void __fastcall SetGapsButtonClick(TObject *Sender);
void __fastcall SetLengthsButtonClick(TObject *Sender);
void __fastcall ShowHideTTButtonClick(TObject *Sender);
void __fastcall SigAspectButtonClick(TObject *Sender);
void __fastcall SigPrefNonConsecButtonClick(TObject *Sender);
void __fastcall SpeedButtonClick(TObject *Sender);
void __fastcall SubMinsButtonClick(TObject *Sender);
void __fastcall TextOrUserGraphicGridButtonClick(TObject *Sender);
void __fastcall TrackOKButtonClick(TObject *Sender);
void __fastcall TTClockAdd1hButtonClick(TObject *Sender);
void __fastcall TTClockAdd10mButtonClick(TObject *Sender);
void __fastcall TTClockAdd1mButtonClick(TObject *Sender);
void __fastcall TTClockAdjButtonClick(TObject *Sender);
void __fastcall TTClockExitButtonClick(TObject *Sender);
void __fastcall TTClockResetButtonClick(TObject *Sender);
void __fastcall TTClockxQuarterButtonClick(TObject *Sender);
void __fastcall TTClockxHalfButtonClick(TObject *Sender);
void __fastcall TTClockx1ButtonClick(TObject *Sender);
void __fastcall TTClockx2ButtonClick(TObject *Sender);
void __fastcall TTClockx4ButtonClick(TObject *Sender);
void __fastcall TTClockx8ButtonClick(TObject *Sender);
void __fastcall TTClockx16ButtonClick(TObject *Sender);
void __fastcall TTServiceSyntaxCheckButtonClick(TObject *Sender);
void __fastcall TTTextButtonClick(TObject *Sender);
void __fastcall ValidateTimetableButtonClick(TObject *Sender);
void __fastcall ZoomButtonClick(TObject *Sender);
// key actions
void __fastcall AddSubMinsBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall LocationNameComboBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall LocationNameKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall OneEntryTimetableMemoKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall TextBoxKeyPress(TObject *Sender, char &Key);
// miscellaneous actions
void __fastcall AppActivate(TObject *Sender);
void __fastcall AppDeactivate(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
void __fastcall FormCreate(TObject *Sender);
void __fastcall LocationNameComboBoxClick(TObject *Sender);
void __fastcall MasterClockTimer(TObject *Sender);
void __fastcall FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall SpeedEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall SpeedEditBox2KeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall LengthEditKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall PowerEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall PresetAutoSigRoutesButtonClick(TObject *Sender);
void __fastcall FormResize(TObject *Sender);
void __fastcall RailwayWebSiteMenuItemClick(TObject *Sender);
void __fastcall SpeedToggleButtonClick(TObject *Sender);
void __fastcall PowerToggleButtonClick(TObject *Sender);
void __fastcall SpeedToggleButton2Click(TObject *Sender);
void __fastcall OperatorActionButtonClick(TObject *Sender);
void __fastcall ConvertToOtherHandSignalsMenuItemClick(TObject *Sender);
void __fastcall TTClockxEighthButtonClick(TObject *Sender);
void __fastcall TTClockxSixteenthButtonClick(TObject *Sender);
void __fastcall RotRightMenuItemClick(TObject *Sender); // new at v2.4.0
void __fastcall RotLeftMenuItemClick(TObject *Sender); // new at v2.4.0
void __fastcall SignallerJoinedByMenuItemClick(TObject *Sender); // new at v2.4.0
void __fastcall RepairFailedTrainMenuItemClick(TObject *Sender); // new at v2.4.0
void __fastcall MTBFEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall MTBFEditBoxClick(TObject *Sender);
void __fastcall AZOrderButtonClick(TObject *Sender);
void __fastcall UserGraphicButtonClick(TObject *Sender);
void __fastcall ReselectUserGraphicClick(TObject *Sender);
void __fastcall SelectNewGraphicClick(TObject *Sender);
void __fastcall TTClockAdjustOKButtonClick(TObject *Sender);
void __fastcall ConflictAnalysisButtonClick(TObject *Sender);
void __fastcall CPCancelButtonClick(TObject *Sender);
void __fastcall CPGenFileButtonClick(TObject *Sender);
void __fastcall SigPrefConsecButtonClick(TObject *Sender);
void __fastcall CheckPrefDirConflictsMenuItemClick(TObject *Sender);
void __fastcall TwoLocationNameButtonClick(TObject *Sender);
//multiplayer fastcalls
void __fastcall JoinMultiplayerSessionMenuItemClick(TObject *Sender);
void __fastcall MPCPSendButtonClick(TObject *Sender);
void __fastcall MPCPReadyToBeginButtonClick(TObject *Sender);
void __fastcall MPCPPlayerNameEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall MPCPCancelButtonClick(TObject *Sender);
void __fastcall MPHPLoadCouplingFileButtonClick(TObject *Sender);
void __fastcall MPHPCancelButtonClick(TObject *Sender);
void __fastcall MPHPStartButtonClick(TObject *Sender);
void __fastcall MultiplayerHostSessionMenuItemClick(TObject *Sender);
void __fastcall MPCPHostPortEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall MPCPHostIPEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall MPHPOwnIPEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall MPHPOwnPortEditBoxKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
void __fastcall IPCheckLinkLabelLinkClick(TObject *Sender, const UnicodeString Link,
TSysLinkType LinkType);
void __fastcall ShowHideStringGridMenuItemClick(TObject *Sender);
//non-multiplayer fastcalls
void __fastcall SkipTimetabledActionsMenuItemClick(TObject *Sender);
void __fastcall SkipTTActionsListBoxMouseUp(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall SkipListExitImageClick(TObject *Sender);
void __fastcall BecomeNewServiceMenuItemClick(TObject *Sender);
void __fastcall ReloadConfigMenuItemClick(TObject *Sender);
void __fastcall NoDelaysMenuItemClick(TObject *Sender);
void __fastcall MinorDelaysMenuItemClick(TObject *Sender);
void __fastcall ModerateDelaysMenuItemClick(TObject *Sender);
void __fastcall MajorDelaysMenuItemClick(TObject *Sender);
void __fastcall NoFailuresMenuItemClick(TObject *Sender);
void __fastcall MinorFailuresMenuItemClick(TObject *Sender);
void __fastcall ModerateFailuresMenuItemClick(TObject *Sender);
void __fastcall MajorFailuresMenuItemClick(TObject *Sender);
void __fastcall SigAutoNonConsecButtonClick(TObject *Sender);
void __fastcall InvertTTEntryButtonClick(TObject *Sender);
void __fastcall FlashControlButtonClick(TObject *Sender);
void __fastcall ExpandRepeatsButtonClick(TObject *Sender);
void __fastcall TimeOrderButtonClick(TObject *Sender);
void __fastcall SetReminderMenuItemClick(TObject *Sender);
void __fastcall ReminderExitImageClick(TObject *Sender);
void __fastcall ReminderListBoxMouseUp(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y); //added at v2.17.0
public: // AboutForm needs access to these
enum TLevel1Mode
///< Level 1 program modes