This commit is contained in:
f1iwq2 committed 2024-02-24 10:32:19 +01:00
1 parent c116b8c933
commit 315b803e40
21 files changed
+1936 -1990

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ uses
UnitPareFeu in 'UnitPareFeu.pas', UnitPareFeu in 'UnitPareFeu.pas',
UnitAnalyseSegCDM in 'UnitAnalyseSegCDM.pas' {FormAnalyseCDM}, UnitAnalyseSegCDM in 'UnitAnalyseSegCDM.pas' {FormAnalyseCDM},
Importation in 'Importation.pas' {FormImportation}; Importation in 'Importation.pas' {FormImportation};
{$R *.res} {$R *.res}
begin begin
+114 -114
View File
@@ -1,104 +1,104 @@
Start Length Name Class Start Length Name Class
0001:00000000 0017B6DCH .text CODE 0001:00000000 0018322CH .text CODE
0002:00000000 00002C84H .data DATA 0002:00000000 00002C88H .data DATA
0002:00002C84 045E33F9H .bss BSS 0002:00002C88 045E33F9H .bss BSS
Detailed map of segments Detailed map of segments
0001:00000000 00005EC7 C=CODE S=.text G=(none) M=System ACBP=A9 0001:00000000 00005F13 C=CODE S=.text G=(none) M=System ACBP=A9
0001:00005EC8 00000140 C=CODE S=.text G=(none) M=SysInit ACBP=A9 0001:00005F14 00000140 C=CODE S=.text G=(none) M=SysInit ACBP=A9
0001:00006008 00000108 C=CODE S=.text G=(none) M=Types ACBP=A9 0001:00006054 00000108 C=CODE S=.text G=(none) M=Types ACBP=A9
0001:00006110 00000F38 C=CODE S=.text G=(none) M=Windows ACBP=A9 0001:0000615C 00000F38 C=CODE S=.text G=(none) M=Windows ACBP=A9
0001:00007048 00000038 C=CODE S=.text G=(none) M=Messages ACBP=A9 0001:00007094 00000038 C=CODE S=.text G=(none) M=Messages ACBP=A9
0001:00007080 00000338 C=CODE S=.text G=(none) M=SysConst ACBP=A9 0001:000070CC 00000338 C=CODE S=.text G=(none) M=SysConst ACBP=A9
0001:000073B8 00006FF8 C=CODE S=.text G=(none) M=SysUtils ACBP=A9 0001:00007404 00006FF8 C=CODE S=.text G=(none) M=SysUtils ACBP=A9
0001:0000E3B0 0000081B C=CODE S=.text G=(none) M=VarUtils ACBP=A9 0001:0000E3FC 0000081B C=CODE S=.text G=(none) M=VarUtils ACBP=A9
0001:0000EBCC 0000809E C=CODE S=.text G=(none) M=Variants ACBP=A9 0001:0000EC18 0000809E C=CODE S=.text G=(none) M=Variants ACBP=A9
0001:00016C6C 000001A0 C=CODE S=.text G=(none) M=RTLConsts ACBP=A9 0001:00016CB8 000001A0 C=CODE S=.text G=(none) M=RTLConsts ACBP=A9
0001:00016E0C 0000083C C=CODE S=.text G=(none) M=TypInfo ACBP=A9 0001:00016E58 0000083C C=CODE S=.text G=(none) M=TypInfo ACBP=A9
0001:00017648 00000358 C=CODE S=.text G=(none) M=ActiveX ACBP=A9 0001:00017694 00000358 C=CODE S=.text G=(none) M=ActiveX ACBP=A9
0001:000179A0 0000A7EA C=CODE S=.text G=(none) M=Classes ACBP=A9 0001:000179EC 0000A7EA C=CODE S=.text G=(none) M=Classes ACBP=A9
0001:0002218C 00000370 C=CODE S=.text G=(none) M=Consts ACBP=A9 0001:000221D8 00000370 C=CODE S=.text G=(none) M=Consts ACBP=A9
0001:000224FC 00009BFB C=CODE S=.text G=(none) M=Graphics ACBP=A9 0001:00022548 00009BFB C=CODE S=.text G=(none) M=Graphics ACBP=A9
0001:0002C0F8 00000124 C=CODE S=.text G=(none) M=Math ACBP=A9 0001:0002C144 00000124 C=CODE S=.text G=(none) M=Math ACBP=A9
0001:0002C21C 000002B8 C=CODE S=.text G=(none) M=Contnrs ACBP=A9 0001:0002C268 000002B8 C=CODE S=.text G=(none) M=Contnrs ACBP=A9
0001:0002C4D4 00000198 C=CODE S=.text G=(none) M=CommCtrl ACBP=A9 0001:0002C520 00000198 C=CODE S=.text G=(none) M=CommCtrl ACBP=A9
0001:0002C66C 00000787 C=CODE S=.text G=(none) M=MultiMon ACBP=A9 0001:0002C6B8 00000787 C=CODE S=.text G=(none) M=MultiMon ACBP=A9
0001:0002CDF4 00000038 C=CODE S=.text G=(none) M=Imm ACBP=A9 0001:0002CE40 00000038 C=CODE S=.text G=(none) M=Imm ACBP=A9
0001:0002CE2C 00000FF8 C=CODE S=.text G=(none) M=HelpIntfs ACBP=A9 0001:0002CE78 00000FF8 C=CODE S=.text G=(none) M=HelpIntfs ACBP=A9
0001:0002DE24 00000058 C=CODE S=.text G=(none) M=WinSpool ACBP=A9 0001:0002DE70 00000058 C=CODE S=.text G=(none) M=WinSpool ACBP=A9
0001:0002DE7C 000010C8 C=CODE S=.text G=(none) M=Printers ACBP=A9 0001:0002DEC8 000010C8 C=CODE S=.text G=(none) M=Printers ACBP=A9
0001:0002EF44 0000031F C=CODE S=.text G=(none) M=FlatSB ACBP=A9 0001:0002EF90 0000031F C=CODE S=.text G=(none) M=FlatSB ACBP=A9
0001:0002F264 000003F0 C=CODE S=.text G=(none) M=SyncObjs ACBP=A9 0001:0002F2B0 000003F0 C=CODE S=.text G=(none) M=SyncObjs ACBP=A9
0001:0002F654 000009BB C=CODE S=.text G=(none) M=UxTheme ACBP=A9 0001:0002F6A0 000009BB C=CODE S=.text G=(none) M=UxTheme ACBP=A9
0001:00030010 00000038 C=CODE S=.text G=(none) M=RichEdit ACBP=A9 0001:0003005C 00000038 C=CODE S=.text G=(none) M=RichEdit ACBP=A9
0001:00030048 00000038 C=CODE S=.text G=(none) M=ToolWin ACBP=A9 0001:00030094 00000038 C=CODE S=.text G=(none) M=ToolWin ACBP=A9
0001:00030080 00000048 C=CODE S=.text G=(none) M=ShellAPI ACBP=A9 0001:000300CC 00000048 C=CODE S=.text G=(none) M=ShellAPI ACBP=A9
0001:000300C8 00000038 C=CODE S=.text G=(none) M=RegStr ACBP=A9 0001:00030114 00000038 C=CODE S=.text G=(none) M=RegStr ACBP=A9
0001:00030100 00000058 C=CODE S=.text G=(none) M=WinInet ACBP=A9 0001:0003014C 00000058 C=CODE S=.text G=(none) M=WinInet ACBP=A9
0001:00030158 00000038 C=CODE S=.text G=(none) M=UrlMon ACBP=A9 0001:000301A4 00000038 C=CODE S=.text G=(none) M=UrlMon ACBP=A9
0001:00030190 0000007C C=CODE S=.text G=(none) M=ShlObj ACBP=A9 0001:000301DC 0000007C C=CODE S=.text G=(none) M=ShlObj ACBP=A9
0001:0003020C 00000060 C=CODE S=.text G=(none) M=CommDlg ACBP=A9 0001:00030258 00000060 C=CODE S=.text G=(none) M=CommDlg ACBP=A9
0001:0003026C 00000038 C=CODE S=.text G=(none) M=Dlgs ACBP=A9 0001:000302B8 00000038 C=CODE S=.text G=(none) M=Dlgs ACBP=A9
0001:000302A4 000036D1 C=CODE S=.text G=(none) M=Dialogs ACBP=A9 0001:000302F0 000036D1 C=CODE S=.text G=(none) M=Dialogs ACBP=A9
0001:00033978 00004ADA C=CODE S=.text G=(none) M=ExtCtrls ACBP=A9 0001:000339C4 00004ADA C=CODE S=.text G=(none) M=ExtCtrls ACBP=A9
0001:00038454 00000090 C=CODE S=.text G=(none) M=ComStrs ACBP=A9 0001:000384A0 00000090 C=CODE S=.text G=(none) M=ComStrs ACBP=A9
0001:000384E4 000007A0 C=CODE S=.text G=(none) M=Clipbrd ACBP=A9 0001:00038530 000007A0 C=CODE S=.text G=(none) M=Clipbrd ACBP=A9
0001:00038C84 00000128 C=CODE S=.text G=(none) M=StrUtils ACBP=A9 0001:00038CD0 00000128 C=CODE S=.text G=(none) M=StrUtils ACBP=A9
0001:00038DAC 00003821 C=CODE S=.text G=(none) M=Buttons ACBP=A9 0001:00038DF8 00003821 C=CODE S=.text G=(none) M=Buttons ACBP=A9
0001:0003C5D0 00000038 C=CODE S=.text G=(none) M=ExtDlgs ACBP=A9 0001:0003C61C 00000038 C=CODE S=.text G=(none) M=ExtDlgs ACBP=A9
0001:0003C608 00000068 C=CODE S=.text G=(none) M=IniFiles ACBP=A9 0001:0003C654 00000068 C=CODE S=.text G=(none) M=IniFiles ACBP=A9
0001:0003C670 00000068 C=CODE S=.text G=(none) M=Registry ACBP=A9 0001:0003C6BC 00000068 C=CODE S=.text G=(none) M=Registry ACBP=A9
0001:0003C6D8 0000006C C=CODE S=.text G=(none) M=Mapi ACBP=A9 0001:0003C724 0000006C C=CODE S=.text G=(none) M=Mapi ACBP=A9
0001:0003C744 00000058 C=CODE S=.text G=(none) M=ExtActns ACBP=A9 0001:0003C790 00000058 C=CODE S=.text G=(none) M=ExtActns ACBP=A9
0001:0003C79C 00000038 C=CODE S=.text G=(none) M=ListActns ACBP=A9 0001:0003C7E8 00000038 C=CODE S=.text G=(none) M=ListActns ACBP=A9
0001:0003C7D4 00009948 C=CODE S=.text G=(none) M=ComCtrls ACBP=A9 0001:0003C820 00009948 C=CODE S=.text G=(none) M=ComCtrls ACBP=A9
0001:0004611C 00000EA0 C=CODE S=.text G=(none) M=Themes ACBP=A9 0001:00046168 00000EA0 C=CODE S=.text G=(none) M=Themes ACBP=A9
0001:00046FBC 0000C698 C=CODE S=.text G=(none) M=StdCtrls ACBP=A9 0001:00047008 0000C698 C=CODE S=.text G=(none) M=StdCtrls ACBP=A9
0001:00053654 00000168 C=CODE S=.text G=(none) M=StdActns ACBP=A9 0001:000536A0 00000168 C=CODE S=.text G=(none) M=StdActns ACBP=A9
0001:000537BC 00000D1F C=CODE S=.text G=(none) M=WinHelpViewer ACBP=A9 0001:00053808 00000D1F C=CODE S=.text G=(none) M=WinHelpViewer ACBP=A9
0001:000544DC 00011403 C=CODE S=.text G=(none) M=Controls ACBP=A9 0001:00054528 00011403 C=CODE S=.text G=(none) M=Controls ACBP=A9
0001:000658E0 00001292 C=CODE S=.text G=(none) M=ActnList ACBP=A9 0001:0006592C 00001292 C=CODE S=.text G=(none) M=ActnList ACBP=A9
0001:00066B74 00001B9C C=CODE S=.text G=(none) M=ImgList ACBP=A9 0001:00066BC0 00001B9C C=CODE S=.text G=(none) M=ImgList ACBP=A9
0001:00068710 000066E1 C=CODE S=.text G=(none) M=Menus ACBP=A9 0001:0006875C 000066E1 C=CODE S=.text G=(none) M=Menus ACBP=A9
0001:0006EDF4 0000CF8C C=CODE S=.text G=(none) M=Forms ACBP=A9 0001:0006EE40 0000CF8C C=CODE S=.text G=(none) M=Forms ACBP=A9
0001:0007BD80 00000060 C=CODE S=.text G=(none) M=ComConst ACBP=A9 0001:0007BDCC 00000060 C=CODE S=.text G=(none) M=ComConst ACBP=A9
0001:0007BDE0 00001259 C=CODE S=.text G=(none) M=ComObj ACBP=A9 0001:0007BE2C 00001259 C=CODE S=.text G=(none) M=ComObj ACBP=A9
0001:0007D03C 00000038 C=CODE S=.text G=(none) M=StdVCL ACBP=A9 0001:0007D088 00000038 C=CODE S=.text G=(none) M=StdVCL ACBP=A9
0001:0007D074 00001793 C=CODE S=.text G=(none) M=AxCtrls ACBP=A9 0001:0007D0C0 00001793 C=CODE S=.text G=(none) M=AxCtrls ACBP=A9
0001:0007E808 00000060 C=CODE S=.text G=(none) M=OleConst ACBP=A9 0001:0007E854 00000060 C=CODE S=.text G=(none) M=OleConst ACBP=A9
0001:0007E868 00003519 C=CODE S=.text G=(none) M=OleCtrls ACBP=A9 0001:0007E8B4 00003519 C=CODE S=.text G=(none) M=OleCtrls ACBP=A9
0001:00081D84 00000050 C=CODE S=.text G=(none) M=JConsts ACBP=A9 0001:00081DD0 00000050 C=CODE S=.text G=(none) M=JConsts ACBP=A9
0001:00081DD4 000133EC C=CODE S=.text G=(none) M=jpeg ACBP=A9 0001:00081E20 000133EC C=CODE S=.text G=(none) M=jpeg ACBP=A9
0001:000951C0 00000314 C=CODE S=.text G=(none) M=TlHelp32 ACBP=A9 0001:0009520C 00000314 C=CODE S=.text G=(none) M=TlHelp32 ACBP=A9
0001:000954D4 00000128 C=CODE S=.text G=(none) M=WinSock ACBP=A9 0001:00095520 00000128 C=CODE S=.text G=(none) M=WinSock ACBP=A9
0001:000955FC 00003A78 C=CODE S=.text G=(none) M=ScktComp ACBP=A9 0001:00095648 00003A78 C=CODE S=.text G=(none) M=ScktComp ACBP=A9
0001:00099074 000008EA C=CODE S=.text G=(none) M=OleServer ACBP=A9 0001:000990C0 000008EA C=CODE S=.text G=(none) M=OleServer ACBP=A9
0001:00099960 00000598 C=CODE S=.text G=(none) M=MSCommLib_TLB ACBP=A9 0001:000999AC 00000598 C=CODE S=.text G=(none) M=MSCommLib_TLB ACBP=A9
0001:00099EF8 00000040 C=CODE S=.text G=(none) M=MMSystem ACBP=A9 0001:00099F44 00000040 C=CODE S=.text G=(none) M=MMSystem ACBP=A9
0001:00099F38 00000038 C=CODE S=.text G=(none) M=Nb30 ACBP=A9 0001:00099F84 00000038 C=CODE S=.text G=(none) M=Nb30 ACBP=A9
0001:00099F70 00000A18 C=CODE S=.text G=(none) M=MaskUtils ACBP=A9 0001:00099FBC 00000A18 C=CODE S=.text G=(none) M=MaskUtils ACBP=A9
0001:0009A988 00002108 C=CODE S=.text G=(none) M=Mask ACBP=A9 0001:0009A9D4 00002108 C=CODE S=.text G=(none) M=Mask ACBP=A9
0001:0009CA90 0000924C C=CODE S=.text G=(none) M=Grids ACBP=A9 0001:0009CADC 0000924C C=CODE S=.text G=(none) M=Grids ACBP=A9
0001:000A5CDC 00002A08 C=CODE S=.text G=(none) M=UnitDebug ACBP=A9 0001:000A5D28 0000191C C=CODE S=.text G=(none) M=UnitPilote ACBP=A9
0001:000A86E4 000017B8 C=CODE S=.text G=(none) M=UnitPilote ACBP=A9 0001:000A7644 0000057C C=CODE S=.text G=(none) M=Importation ACBP=A9
0001:000A9E9C 00000574 C=CODE S=.text G=(none) M=Importation ACBP=A9 0001:000A7BC0 00019434 C=CODE S=.text G=(none) M=UnitAnalyseSegCDM ACBP=A9
0001:000AA410 000147BC C=CODE S=.text G=(none) M=UnitAnalyseSegCDM ACBP=A9 0001:000C0FF4 0000289B C=CODE S=.text G=(none) M=UnitConfigTCO ACBP=A9
0001:000BEBCC 000027E0 C=CODE S=.text G=(none) M=UnitConfigTCO ACBP=A9 0001:000C3890 00000D78 C=CODE S=.text G=(none) M=Unit_Pilote_aig ACBP=A9
0001:000C13AC 00000C64 C=CODE S=.text G=(none) M=Unit_Pilote_aig ACBP=A9 0001:000C4608 00003D24 C=CODE S=.text G=(none) M=UnitConfigCellTCO ACBP=A9
0001:000C2010 00003BEC C=CODE S=.text G=(none) M=UnitConfigCellTCO ACBP=A9 0001:000C832C 00031BF8 C=CODE S=.text G=(none) M=UnitTCO ACBP=A9
0001:000C5BFC 000312F0 C=CODE S=.text G=(none) M=UnitTCO ACBP=A9 0001:000F9F24 000031F0 C=CODE S=.text G=(none) M=UnitSR ACBP=A9
0001:000F6EEC 00002D1C C=CODE S=.text G=(none) M=UnitSR ACBP=A9 0001:000FD114 00002BF0 C=CODE S=.text G=(none) M=UnitCDF ACBP=A9
0001:000F9C08 00002594 C=CODE S=.text G=(none) M=UnitCDF ACBP=A9 0001:000FFD04 0000283F C=CODE S=.text G=(none) M=verif_version ACBP=A9
0001:000FC19C 0003C444 C=CODE S=.text G=(none) M=UnitConfig ACBP=A9 0001:00102544 000011D0 C=CODE S=.text G=(none) M=UnitPareFeu ACBP=A9
0001:001385E0 0000284B C=CODE S=.text G=(none) M=verif_version ACBP=A9 0001:00103714 0003C750 C=CODE S=.text G=(none) M=UnitConfig ACBP=A9
0001:0013AE2C 000011D0 C=CODE S=.text G=(none) M=UnitPareFeu ACBP=A9 0001:0013FE64 00002BCC C=CODE S=.text G=(none) M=UnitDebug ACBP=A9
0001:0013BFFC 00000C00 C=CODE S=.text G=(none) M=UnitSimule ACBP=A9 0001:00142A30 00000D2C C=CODE S=.text G=(none) M=UnitSimule ACBP=A9
0001:0013CBFC 00002670 C=CODE S=.text G=(none) M=Unitplace ACBP=A9 0001:0014375C 000027E8 C=CODE S=.text G=(none) M=Unitplace ACBP=A9
0001:0013F26C 0003BFAF C=CODE S=.text G=(none) M=UnitPrinc ACBP=A9 0001:00145F44 0003CE27 C=CODE S=.text G=(none) M=UnitPrinc ACBP=A9
0001:0017B21C 000004C0 C=CODE S=.text G=(none) M=Signaux_complexes_GL ACBP=A9 0001:00182D6C 000004C0 C=CODE S=.text G=(none) M=Signaux_complexes_GL ACBP=A9
0002:00000000 000000CC C=DATA S=.data G=DGROUP M=System ACBP=A9 0002:00000000 000000CC C=DATA S=.data G=DGROUP M=System ACBP=A9
0002:000000CC 00000020 C=DATA S=.data G=DGROUP M=SysInit ACBP=A9 0002:000000CC 00000020 C=DATA S=.data G=DGROUP M=SysInit ACBP=A9
0002:000000EC 00000254 C=DATA S=.data G=DGROUP M=SysUtils ACBP=A9 0002:000000EC 00000254 C=DATA S=.data G=DGROUP M=SysUtils ACBP=A9
@@ -207,29 +207,28 @@ Detailed map of segments
0002:00003E58 00000004 C=BSS S=.bss G=DGROUP M=MaskUtils ACBP=A9 0002:00003E58 00000004 C=BSS S=.bss G=DGROUP M=MaskUtils ACBP=A9
0002:00003E5C 00000004 C=BSS S=.bss G=DGROUP M=Mask ACBP=A9 0002:00003E5C 00000004 C=BSS S=.bss G=DGROUP M=Mask ACBP=A9
0002:00003E60 00000004 C=BSS S=.bss G=DGROUP M=Grids ACBP=A9 0002:00003E60 00000004 C=BSS S=.bss G=DGROUP M=Grids ACBP=A9
0002:00003E64 0000002C C=BSS S=.bss G=DGROUP M=UnitDebug ACBP=A9 0002:00003E64 00000010 C=BSS S=.bss G=DGROUP M=UnitPilote ACBP=A9
0002:00003E90 00000010 C=BSS S=.bss G=DGROUP M=UnitPilote ACBP=A9 0002:00003E74 00000010 C=BSS S=.bss G=DGROUP M=Importation ACBP=A9
0002:00003EA0 00000010 C=BSS S=.bss G=DGROUP M=Importation ACBP=A9 0002:00003E84 000148B0 C=BSS S=.bss G=DGROUP M=UnitAnalyseSegCDM ACBP=A9
0002:00003EB0 000148B0 C=BSS S=.bss G=DGROUP M=UnitAnalyseSegCDM ACBP=A9 0002:00018734 00000014 C=BSS S=.bss G=DGROUP M=UnitConfigTCO ACBP=A9
0002:00018760 00000014 C=BSS S=.bss G=DGROUP M=UnitConfigTCO ACBP=A9 0002:00018748 00000014 C=BSS S=.bss G=DGROUP M=Unit_Pilote_aig ACBP=A9
0002:00018774 00000014 C=BSS S=.bss G=DGROUP M=Unit_Pilote_aig ACBP=A9 0002:0001875C 00000014 C=BSS S=.bss G=DGROUP M=UnitConfigCellTCO ACBP=A9
0002:00018788 00000014 C=BSS S=.bss G=DGROUP M=UnitConfigCellTCO ACBP=A9 0002:00018770 00418704 C=BSS S=.bss G=DGROUP M=UnitTCO ACBP=A9
0002:0001879C 00418700 C=BSS S=.bss G=DGROUP M=UnitTCO ACBP=A9 0002:00430E74 00000010 C=BSS S=.bss G=DGROUP M=UnitSR ACBP=A9
0002:00430E9C 00000010 C=BSS S=.bss G=DGROUP M=UnitSR ACBP=A9 0002:00430E84 00000014 C=BSS S=.bss G=DGROUP M=UnitCDF ACBP=A9
0002:00430EAC 00000014 C=BSS S=.bss G=DGROUP M=UnitCDF ACBP=A9 0002:00430E98 00000020 C=BSS S=.bss G=DGROUP M=verif_version ACBP=A9
0002:00430EC0 00000560 C=BSS S=.bss G=DGROUP M=UnitConfig ACBP=A9 0002:00430EB8 00000004 C=BSS S=.bss G=DGROUP M=UnitPareFeu ACBP=A9
0002:00431420 00000020 C=BSS S=.bss G=DGROUP M=verif_version ACBP=A9 0002:00430EBC 00000560 C=BSS S=.bss G=DGROUP M=UnitConfig ACBP=A9
0002:00431440 00000004 C=BSS S=.bss G=DGROUP M=UnitPareFeu ACBP=A9 0002:0043141C 0000002C C=BSS S=.bss G=DGROUP M=UnitDebug ACBP=A9
0002:00431444 0000000C C=BSS S=.bss G=DGROUP M=UnitSimule ACBP=A9 0002:00431448 0000000C C=BSS S=.bss G=DGROUP M=UnitSimule ACBP=A9
0002:00431450 00000008 C=BSS S=.bss G=DGROUP M=Unitplace ACBP=A9 0002:00431454 00000008 C=BSS S=.bss G=DGROUP M=Unitplace ACBP=A9
0002:00431458 041B4FA0 C=BSS S=.bss G=DGROUP M=UnitPrinc ACBP=A9 0002:0043145C 041B4F9C C=BSS S=.bss G=DGROUP M=UnitPrinc ACBP=A9
Bound resource files Bound resource files
c:\program files (x86)\borland\delphi7\Lib\Buttons.res c:\program files (x86)\borland\delphi7\Lib\Buttons.res
c:\program files (x86)\borland\delphi7\Lib\ExtDlgs.res c:\program files (x86)\borland\delphi7\Lib\ExtDlgs.res
c:\program files (x86)\borland\delphi7\Lib\Controls.res c:\program files (x86)\borland\delphi7\Lib\Controls.res
UnitDebug.dfm
UnitPilote.dfm UnitPilote.dfm
Importation.dfm Importation.dfm
UnitAnalyseSegCDM.dfm UnitAnalyseSegCDM.dfm
@@ -239,8 +238,9 @@ UnitConfigCellTCO.dfm
UnitTCO.dfm UnitTCO.dfm
UnitSR.dfm UnitSR.dfm
UnitCDF.dfm UnitCDF.dfm
UnitConfig.dfm
verif_version.dfm verif_version.dfm
UnitConfig.dfm
UnitDebug.dfm
UnitSimule.dfm UnitSimule.dfm
Unitplace.dfm Unitplace.dfm
UnitPrinc.dfm UnitPrinc.dfm
@@ -248,4 +248,4 @@ Signaux_complexes_GL.res
Signaux_complexes_GL.drf Signaux_complexes_GL.drf
Program entry point at 0001:0017B52C Program entry point at 0001:0018307C
+3 -2
View File
@@ -4221,6 +4221,7 @@ procedure TFormAnalyseCDM.ButtonAffPortClick(Sender: TObject);
var i,j,numport,erreur : integer; var i,j,numport,erreur : integer;
begin begin
val(editPort.text,numport,erreur); val(editPort.text,numport,erreur);
if numport<1 then exit;
trouve_IndexPort(numport,i,j); trouve_IndexPort(numport,i,j);
if i<>-1 then if i<>-1 then
begin begin
@@ -4523,6 +4524,7 @@ begin
val(s,adresse2,erreur); val(s,adresse2,erreur);
erreur:=0; erreur:=0;
end; end;
if (adresse<1) or (adresse2<0) then exit;
if erreur=0 then if erreur=0 then
begin begin
@@ -4937,6 +4939,7 @@ procedure TFormAnalyseCDM.ButtonAffDetClick(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(EditDetecteur.text,i,erreur); val(EditDetecteur.text,i,erreur);
if i<1 then exit;
if erreur=0 then dessine_det(i); if erreur=0 then dessine_det(i);
end; end;
@@ -5021,8 +5024,6 @@ end;
end. end.
+88 -42
View File
@@ -128,13 +128,13 @@ begin
begin begin
caption:='Configuration du décodeur Digikeijs'; caption:='Configuration du décodeur Digikeijs';
label20.caption:='Tables d''aspects du signal en fonction du motif envoyé au décodeur Digikeijs'; label20.caption:='Tables d''aspects du signal en fonction du motif envoyé au décodeur Digikeijs';
label24.Caption:='1 à 5'; label24.Caption:='1 à 5 - Aspects de 0 à 255';
end; end;
if erreur=2 then if erreur=2 then
begin begin
caption:='Configuration du décodeur CDF'; caption:='Configuration du décodeur CDF';
label20.Caption:='Tables d''aspects du signal en fonction du motif envoyé au décodeur CDF'; label20.Caption:='Tables d''aspects du signal en fonction du motif envoyé au décodeur CDF';
label24.Caption:='1 à 4'; label24.Caption:='1 à 4 - Aspects de 0 à 255';
end; end;
Label1.caption:=etats[1]; Label1.caption:=etats[1];
@@ -229,11 +229,13 @@ begin
end; end;
procedure TFormCDF.Edit1Change(Sender: TObject); procedure TFormCDF.Edit1Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit1.Text,Signaux[index].SR[1].sortie1,erreur); val(Edit1.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[1].sortie1:=i;
Maj_DB; Maj_DB;
if label1.Caption=etats[1] then Maj_Etat_Signal(0,carre); if label1.Caption=etats[1] then Maj_Etat_Signal(0,carre);
dessine_signal_CDF; dessine_signal_CDF;
@@ -241,11 +243,13 @@ begin
end; end;
procedure TFormCDF.Edit2Change(Sender: TObject); procedure TFormCDF.Edit2Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit2.Text,Signaux[index].SR[2].sortie1,erreur); val(Edit2.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[2].sortie1:=i;
Maj_DB; Maj_DB;
if label2.Caption=etats[2] then Maj_Etat_Signal(0,semaphore); if label2.Caption=etats[2] then Maj_Etat_Signal(0,semaphore);
dessine_signal_CDF; dessine_signal_CDF;
@@ -253,11 +257,13 @@ begin
end; end;
procedure TFormCDF.Edit3Change(Sender: TObject); procedure TFormCDF.Edit3Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit3.Text,Signaux[index].SR[3].sortie1,erreur); val(Edit3.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[2].sortie1:=i;
Maj_DB; Maj_DB;
if label3.Caption=etats[3] then Maj_Etat_Signal(0,semaphore_cli); if label3.Caption=etats[3] then Maj_Etat_Signal(0,semaphore_cli);
dessine_signal_CDF; dessine_signal_CDF;
@@ -265,11 +271,13 @@ begin
end; end;
procedure TFormCDF.Edit4Change(Sender: TObject); procedure TFormCDF.Edit4Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit4.Text,Signaux[index].SR[4].sortie1,erreur); val(Edit4.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[4].sortie1:=i;
Maj_DB; Maj_DB;
if label4.Caption=etats[4] then Maj_Etat_Signal(0,vert); if label4.Caption=etats[4] then Maj_Etat_Signal(0,vert);
dessine_signal_CDF; dessine_signal_CDF;
@@ -277,11 +285,13 @@ begin
end; end;
procedure TFormCDF.Edit5Change(Sender: TObject); procedure TFormCDF.Edit5Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit5.Text,Signaux[index].SR[5].sortie1,erreur); val(Edit5.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[5].sortie1:=i;
Maj_DB; Maj_DB;
if label5.Caption=etats[5] then Maj_Etat_Signal(0,vert_cli); if label5.Caption=etats[5] then Maj_Etat_Signal(0,vert_cli);
dessine_signal_CDF; dessine_signal_CDF;
@@ -289,11 +299,13 @@ begin
end; end;
procedure TFormCDF.Edit6Change(Sender: TObject); procedure TFormCDF.Edit6Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit6.Text,Signaux[index].SR[6].sortie1,erreur); val(Edit6.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[6].sortie1:=i;
Maj_DB; Maj_DB;
if label6.Caption=etats[6] then Maj_Etat_Signal(0,violet); if label6.Caption=etats[6] then Maj_Etat_Signal(0,violet);
dessine_signal_CDF; dessine_signal_CDF;
@@ -301,11 +313,13 @@ begin
end; end;
procedure TFormCDF.Edit7Change(Sender: TObject); procedure TFormCDF.Edit7Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit7.Text,Signaux[index].SR[7].sortie1,erreur); val(Edit7.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[7].sortie1:=i;
Maj_DB; Maj_DB;
if label7.Caption=etats[7] then Maj_Etat_Signal(0,blanc); if label7.Caption=etats[7] then Maj_Etat_Signal(0,blanc);
dessine_signal_CDF; dessine_signal_CDF;
@@ -313,11 +327,13 @@ begin
end; end;
procedure TFormCDF.Edit8Change(Sender: TObject); procedure TFormCDF.Edit8Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit8.Text,Signaux[index].SR[8].sortie1,erreur); val(Edit8.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[8].sortie1:=i;
Maj_DB; Maj_DB;
if label8.Caption=etats[8] then Maj_Etat_Signal(0,blanc_cli); if label8.Caption=etats[8] then Maj_Etat_Signal(0,blanc_cli);
dessine_signal_CDF; dessine_signal_CDF;
@@ -325,23 +341,31 @@ begin
end; end;
procedure TFormCDF.Edit9Change(Sender: TObject); procedure TFormCDF.Edit9Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit9.Text,Signaux[index].SR[9].sortie1,erreur); val(Edit9.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[9].sortie1:=i;
Maj_DB; Maj_DB;
if label9.Caption=etats[9] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,jaune);end; if label9.Caption=etats[9] then
begin
Maj_Etat_Signal(0,semaphore);
Maj_Etat_Signal(0,jaune);
end;
dessine_signal_CDF; dessine_signal_CDF;
end; end;
end; end;
procedure TFormCDF.Edit10Change(Sender: TObject); procedure TFormCDF.Edit10Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit10.Text,Signaux[index].SR[10].sortie1,erreur); val(Edit10.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[10].sortie1:=i;
Maj_DB; Maj_DB;
if label10.Caption=etats[10] then if label10.Caption=etats[10] then
begin begin
@@ -353,11 +377,13 @@ begin
end; end;
procedure TFormCDF.Edit11Change(Sender: TObject); procedure TFormCDF.Edit11Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit11.Text,Signaux[index].SR[11].sortie1,erreur); val(Edit11.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[11].sortie1:=i;
Maj_DB; Maj_DB;
if label11.Caption=etats[11] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,ral_30);end; if label11.Caption=etats[11] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,ral_30);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -365,11 +391,13 @@ begin
end; end;
procedure TFormCDF.Edit12Change(Sender: TObject); procedure TFormCDF.Edit12Change(Sender: TObject);
var erreur : integer; var erreur,i: integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit12.Text,Signaux[index].SR[12].sortie1,erreur); val(Edit12.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[12].sortie1:=i;
Maj_DB; Maj_DB;
if label12.Caption=etats[12] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,ral_60);end; if label12.Caption=etats[12] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,ral_60);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -377,11 +405,13 @@ begin
end; end;
procedure TFormCDF.Edit13Change(Sender: TObject); procedure TFormCDF.Edit13Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit13.Text,Signaux[index].SR[13].sortie1,erreur); val(Edit13.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[13].sortie1:=i;
Maj_DB; Maj_DB;
if label13.Caption=etats[13] then begin Maj_Etat_Signal(0,ral_60);Maj_Etat_Signal(0,jaune_cli);end; if label13.Caption=etats[13] then begin Maj_Etat_Signal(0,ral_60);Maj_Etat_Signal(0,jaune_cli);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -389,11 +419,13 @@ begin
end; end;
procedure TFormCDF.Edit14Change(Sender: TObject); procedure TFormCDF.Edit14Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit14.Text,Signaux[index].SR[14].sortie1,erreur); val(Edit14.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[14].sortie1:=i;
Maj_DB; Maj_DB;
if label14.Caption=etats[14] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,rappel_30);end; if label14.Caption=etats[14] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,rappel_30);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -401,11 +433,13 @@ begin
end; end;
procedure TFormCDF.Edit15Change(Sender: TObject); procedure TFormCDF.Edit15Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit15.Text,Signaux[index].SR[15].sortie1,erreur); val(Edit15.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[15].sortie1:=i;
Maj_DB; Maj_DB;
if label15.Caption=etats[15] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,rappel_60);end; if label15.Caption=etats[15] then begin Maj_Etat_Signal(0,semaphore);Maj_Etat_Signal(0,rappel_60);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -413,11 +447,13 @@ begin
end; end;
procedure TFormCDF.Edit16Change(Sender: TObject); procedure TFormCDF.Edit16Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit16.Text,Signaux[index].SR[16].sortie1,erreur); val(Edit16.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[16].sortie1:=i;
Maj_DB; Maj_DB;
if label16.Caption=etats[16] then begin Maj_Etat_Signal(0,rappel_30); Maj_Etat_Signal(0,jaune);end; if label16.Caption=etats[16] then begin Maj_Etat_Signal(0,rappel_30); Maj_Etat_Signal(0,jaune);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -425,11 +461,13 @@ begin
end; end;
procedure TFormCDF.Edit17Change(Sender: TObject); procedure TFormCDF.Edit17Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit17.Text,Signaux[index].SR[17].sortie1,erreur); val(Edit17.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[17].sortie1:=i;
Maj_DB; Maj_DB;
if label17.Caption=etats[17] then begin Maj_Etat_Signal(0,rappel_30); Maj_Etat_Signal(0,jaune_cli);end; if label17.Caption=etats[17] then begin Maj_Etat_Signal(0,rappel_30); Maj_Etat_Signal(0,jaune_cli);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -437,11 +475,13 @@ begin
end; end;
procedure TFormCDF.Edit18Change(Sender: TObject); procedure TFormCDF.Edit18Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit18.Text,Signaux[index].SR[18].sortie1,erreur); val(Edit18.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[18].sortie1:=i;
Maj_DB; Maj_DB;
if label18.Caption=etats[18] then begin Maj_Etat_Signal(0,rappel_60); Maj_Etat_Signal(0,jaune);end; if label18.Caption=etats[18] then begin Maj_Etat_Signal(0,rappel_60); Maj_Etat_Signal(0,jaune);end;
dessine_signal_CDF; dessine_signal_CDF;
@@ -449,13 +489,19 @@ begin
end; end;
procedure TFormCDF.Edit19Change(Sender: TObject); procedure TFormCDF.Edit19Change(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if index<>0 then if index<>0 then
begin begin
val(Edit19.Text,Signaux[index].SR[19].sortie1,erreur); val(Edit19.Text,i,erreur);
if (i<0) or (i>255) or (erreur<>0) then exit;
Signaux[index].SR[19].sortie1:=i;
Maj_DB; Maj_DB;
if label19.Caption=etats[19] then begin Maj_Etat_Signal(0,rappel_60); Maj_Etat_Signal(0,jaune_cli);end; if label19.Caption=etats[19] then
begin
Maj_Etat_Signal(0,rappel_60);
Maj_Etat_Signal(0,jaune_cli);
end;
dessine_signal_CDF; dessine_signal_CDF;
end; end;
end; end;
+24 -24
View File
@@ -1,6 +1,6 @@
object FormConfig: TFormConfig object FormConfig: TFormConfig
Left = 347 Left = 246
Top = 101 Top = 114
Hint = 'Modifie la configuration selon les s'#233'lections choisies' Hint = 'Modifie la configuration selon les s'#233'lections choisies'
BorderStyle = bsDialog BorderStyle = bsDialog
Caption = 'Configuration g'#233'n'#233'rale' Caption = 'Configuration g'#233'n'#233'rale'
@@ -681,7 +681,7 @@ object FormConfig: TFormConfig
Top = 8 Top = 8
Width = 633 Width = 633
Height = 505 Height = 505
ActivePage = TabSheetTrains ActivePage = TabSheetCDM
Font.Charset = DEFAULT_CHARSET Font.Charset = DEFAULT_CHARSET
Font.Color = clBlack Font.Color = clBlack
Font.Height = -11 Font.Height = -11
@@ -1163,7 +1163,7 @@ object FormConfig: TFormConfig
ImageIndex = 1 ImageIndex = 1
object Label9: TLabel object Label9: TLabel
Left = 16 Left = 16
Top = 448 Top = 456
Width = 294 Width = 294
Height = 13 Height = 13
Caption = 'Ces param'#232'tres sont utilis'#233's en fonctionnement sans CDM Rail' Caption = 'Ces param'#232'tres sont utilis'#233's en fonctionnement sans CDM Rail'
@@ -1228,14 +1228,14 @@ object FormConfig: TFormConfig
end end
object GroupBox4: TGroupBox object GroupBox4: TGroupBox
Left = 8 Left = 8
Top = 128 Top = 208
Width = 297 Width = 297
Height = 65 Height = 65
Caption = '4. Ent'#234'te des trames XpressNet vers l'#39'interface' Caption = '4. Ent'#234'te des trames XpressNet vers l'#39'interface'
TabOrder = 1 TabOrder = 1
object RadioButton1: TRadioButton object RadioButton1: TRadioButton
Left = 8 Left = 8
Top = 24 Top = 20
Width = 225 Width = 225
Height = 17 Height = 17
Caption = '0 : Sans ent'#234'te (interfaces s'#233'rie, Genli...)' Caption = '0 : Sans ent'#234'te (interfaces s'#233'rie, Genli...)'
@@ -1252,7 +1252,7 @@ object FormConfig: TFormConfig
end end
object GroupBox3: TGroupBox object GroupBox3: TGroupBox
Left = 8 Left = 8
Top = 200 Top = 128
Width = 297 Width = 297
Height = 73 Height = 73
Caption = 'Acc'#232's r'#233'seau '#224' l'#39'interface vers la centrale' Caption = 'Acc'#232's r'#233'seau '#224' l'#39'interface vers la centrale'
@@ -1337,7 +1337,7 @@ object FormConfig: TFormConfig
end end
object GroupBox9: TGroupBox object GroupBox9: TGroupBox
Left = 8 Left = 8
Top = 280 Top = 282
Width = 297 Width = 297
Height = 161 Height = 161
Caption = 'Au d'#233'marrage de signaux complexes en mode autonome' Caption = 'Au d'#233'marrage de signaux complexes en mode autonome'
@@ -1429,7 +1429,7 @@ object FormConfig: TFormConfig
end end
object GroupBox22: TGroupBox object GroupBox22: TGroupBox
Left = 312 Left = 312
Top = 256 Top = 248
Width = 297 Width = 297
Height = 65 Height = 65
Caption = 'Protocole de connexion '#224' la centrale ou '#224' l'#39'interface' Caption = 'Protocole de connexion '#224' la centrale ou '#224' l'#39'interface'
@@ -3009,8 +3009,8 @@ object FormConfig: TFormConfig
end end
end end
object GroupBox19: TGroupBox object GroupBox19: TGroupBox
Left = 48 Left = 24
Top = 144 Top = 152
Width = 233 Width = 233
Height = 137 Height = 137
Caption = 'Destinataire de l'#39'action ' Caption = 'Destinataire de l'#39'action '
@@ -3150,7 +3150,7 @@ object FormConfig: TFormConfig
OnChange = EditTempoChange OnChange = EditTempoChange
end end
object CheckRAZ: TCheckBox object CheckRAZ: TCheckBox
Left = 32 Left = 40
Top = 48 Top = 48
Width = 145 Width = 145
Height = 17 Height = 17
@@ -3197,13 +3197,13 @@ object FormConfig: TFormConfig
OnChange = EditTrainDestChange OnChange = EditTrainDestChange
end end
object ComboBoxAccComUSB: TComboBox object ComboBoxAccComUSB: TComboBox
Left = 8 Left = 24
Top = 32 Top = 64
Width = 201 Width = 201
Height = 21 Height = 21
Hint = 'Nom de l'#39'accessoire d'#233'fini dans l'#39'onglet "p'#233'riph'#233'riques COM/USB"' Hint = 'Nom de l'#39'accessoire d'#233'fini dans l'#39'onglet "p'#233'riph'#233'riques COM/USB"'
Style = csDropDownList Style = csDropDownList
ItemHeight = 13 ItemHeight = 0
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 6 TabOrder = 6
@@ -3224,24 +3224,24 @@ object FormConfig: TFormConfig
end end
end end
object GroupBoxPNA: TGroupBox object GroupBoxPNA: TGroupBox
Left = 152 Left = 32
Top = 240 Top = 40
Width = 169 Width = 169
Height = 121 Height = 121
Caption = 'Actionneurs PN simples' Caption = 'Actionneurs PN simples'
TabOrder = 2 TabOrder = 2
end end
object GroupBoxPNZ: TGroupBox object GroupBoxPNZ: TGroupBox
Left = 88 Left = 72
Top = 320 Top = 368
Width = 169 Width = 169
Height = 65 Height = 65
Caption = 'Zones de d'#233'tection' Caption = 'Zones de d'#233'tection'
TabOrder = 3 TabOrder = 3
end end
object GroupBoxPN: TGroupBox object GroupBoxPN: TGroupBox
Left = 152 Left = 24
Top = 24 Top = 32
Width = 249 Width = 249
Height = 193 Height = 193
Caption = 'Action gestion passage '#224' niveau' Caption = 'Action gestion passage '#224' niveau'
@@ -3378,13 +3378,13 @@ object FormConfig: TFormConfig
OnClick = RadioGroupActPNClick OnClick = RadioGroupActPNClick
end end
object ComboBoxPNCom: TComboBox object ComboBoxPNCom: TComboBox
Left = 8 Left = 72
Top = 104 Top = 128
Width = 145 Width = 145
Height = 21 Height = 21
Hint = 'Nom de l'#39'accessoire d'#233'fini dans l'#39'onglet "p'#233'riph'#233'riques COM/USB"' Hint = 'Nom de l'#39'accessoire d'#233'fini dans l'#39'onglet "p'#233'riph'#233'riques COM/USB"'
Style = csDropDownList Style = csDropDownList
ItemHeight = 13 ItemHeight = 0
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 10 TabOrder = 10
+95 -74
View File
@@ -649,9 +649,9 @@ var
ligneDCC,decCourant,AffMemoFenetre,ligneClicAccPeriph,AncligneClicAccPeriph,ligneCherche, ligneDCC,decCourant,AffMemoFenetre,ligneClicAccPeriph,AncligneClicAccPeriph,ligneCherche,
compt_Ligne,Style_aff,Ancien_Style,Ecran_SC,Mode_reserve,Max_Signal_Sens,nCantonsRes : integer; compt_Ligne,Style_aff,Ancien_Style,Ecran_SC,Mode_reserve,Max_Signal_Sens,nCantonsRes : integer;
ack_cdm,clicliste,config_modifie,clicproprietes,confasauver,trouve_MaxPort, ack_cdm,clicliste,config_modifie,clicproprietes,confasauver,trouve_MaxPort,fermeSC,
modif_branches,ConfigPrete,trouve_section_dccpp,trouve_section_trains,trouve_section_acccomusb, modif_branches,ConfigPrete,trouve_section_dccpp,trouve_section_trains,trouve_section_acccomusb,
trouveAvecVerifIconesTCO,Affiche_avert,activ,trouve_section_dec_pers : boolean; trouveAvecVerifIconesTCO,Affiche_avert,activ,trouve_section_dec_pers,Z21 : boolean;
fichier : text; fichier : text;
@@ -693,7 +693,7 @@ var
function config_com(s : string) : boolean; function config_com(s : string) : boolean;
function envoi_CDM(s : string) : boolean; function envoi_CDM(s : string) : boolean;
procedure connecte_CDM; function connecte_CDM : boolean;
function place_id(s : string) : string; function place_id(s : string) : string;
procedure decodeAig(s : string;var adr : integer;var B : char); procedure decodeAig(s : string;var adr : integer;var B : char);
function sauve_config : boolean; function sauve_config : boolean;
@@ -729,7 +729,7 @@ begin
repeat repeat
inc(temps);Sleep(100); inc(temps);Sleep(100);
Application.processMessages; Application.processMessages;
until ferme or ackCDM or nackCDM or (temps>30); // CDM répond < 1s until fermeSC or ackCDM or nackCDM or (temps>30); // CDM répond < 1s
if not(ackCDM) or nack then if not(ackCDM) or nack then
begin begin
@@ -803,16 +803,17 @@ begin
ack_cdm:=false; ack_cdm:=false;
end; end;
procedure connecte_CDM; function connecte_CDM : boolean;
var s : string; var s : string;
i : integer; i : integer;
begin begin
result:=false;
// déconnexion de l'ancienne liaison éventuelle // déconnexion de l'ancienne liaison éventuelle
Formprinc.ClientSocketCDM.Close; Formprinc.ClientSocketCDM.Close;
if (AdresseIPCDM<>'0') then if (AdresseIPCDM<>'0') and IpOk(AdresseIPCDM) then
begin begin
if(ProcessRunning('CDR')) then if (ProcessRunning('CDR')) then
begin begin
// ouverture du socket CDM // ouverture du socket CDM
with Formprinc do with Formprinc do
@@ -854,13 +855,14 @@ begin
Application.ProcessMessages; Application.ProcessMessages;
SauvefiltrageDet0:=filtrageDet0; SauvefiltrageDet0:=filtrageDet0;
filtrageDet0:=0; filtrageDet0:=0;
result:=true;
end; end;
end; end;
//else Affiche('CDM Rail non lancé',clOrange);
end end
else else
begin begin
if adresseIPCDM='0' then Affiche('La connexion à CDM n''est pas demandée car l''adresse IP est nulle dans '+NomConfig,clcyan); if adresseIPCDM='0' then Affiche('La connexion à CDM n''est pas demandée car l''adresse IP est nulle dans '+NomConfig,clcyan);
if not(IpOk(AdresseIPCDM)) then Affiche('Adresse IP CDM incorrecte : '+AdresseIPCDM,clcyan);
end; end;
end; end;
@@ -1927,7 +1929,7 @@ begin
if k=1 then if k=1 then
for j:=1 to 19 do for j:=1 to 19 do
begin begin
s:=etats[j]+','+decodeur_pers[i].desc[j].Chcommande; s:=utf8encode(etats[j])+','+decodeur_pers[i].desc[j].Chcommande;
writeln(fichierN,s); writeln(fichierN,s);
end; end;
if k=2 then if k=2 then
@@ -2869,8 +2871,9 @@ var s,sa,SOrigine: string;
end; end;
if c=1 then if c=1 then
begin begin
k:=pos(',',sOrigine); k:=pos(',',sOrigine); // on ne tient compte que du 2ème champ
decodeur_pers[NbreDecPers].desc[adr].Chcommande:=copy(sOrigine,k+1,length(sOrigine)-k+1); s:=copy(sOrigine,k+1,length(sOrigine)-k+1); // on ne copie que le 2eme champ
decodeur_pers[NbreDecPers].desc[adr].Chcommande:=s;
s:=''; s:='';
inc(adr); inc(adr);
end; end;
@@ -3631,7 +3634,6 @@ var s,sa,SOrigine: string;
Ecran_SC:=i; Ecran_SC:=i;
end; end;
sa:=uppercase(Z21_ch)+'='; sa:=uppercase(Z21_ch)+'=';
i:=pos(sa,s); i:=pos(sa,s);
if i=1 then if i=1 then
@@ -4158,7 +4160,9 @@ begin
if (AdrBaseDetDccpp<0) or (AdrBaseDetDccpp>2048) then AdrBaseDetDccpp:=513; if (AdrBaseDetDccpp<0) or (AdrBaseDetDccpp>2048) then AdrBaseDetDccpp:=513;
mode_Reserve:=RadioReserve.ItemIndex; // 0 = par canton - 1=par détecteurs mode_Reserve:=RadioReserve.ItemIndex; // 0 = par canton - 1=par détecteurs
val(EditAlgo.Text,i,erreur); val(EditAlgo.Text,i,erreur);
if (i<1) or (i>1) then i:=1;
Algo_localisation:=i; Algo_localisation:=i;
val(EditMaxSignalSens.Text,i,erreur); val(EditMaxSignalSens.Text,i,erreur);
@@ -4454,8 +4458,8 @@ begin
with formconfig do with formconfig do
begin begin
ComboBoxDecCde.ItemIndex:=decodeur_pers[DecCourant].Peripherique-1; ComboBoxDecCde.ItemIndex:=decodeur_pers[DecCourant].Peripherique-1;
formconfig.labelDecal.caption:='Commande'+#13+'Ascii'; formconfig.labelDecal.caption:='Commandes'+#13+'Ascii';
LabelDecal.Left:=150; LabelDecal.Left:=160;
formconfig.LabelSorties.visible:=false; formconfig.LabelSorties.visible:=false;
end; end;
end; end;
@@ -4535,13 +4539,14 @@ begin
liste_portcom; liste_portcom;
end; end;
// cliqué sur les checkbox de l'onglet des périphériques
procedure TformConfig.cb_onclick(sender : TObject); procedure TformConfig.cb_onclick(sender : TObject);
var s : string; var s : string;
cb : TCheckBox; cb : TCheckBox;
begin begin
if clicliste or (ligneClicAccPeriph<0) then exit; if clicliste or (ligneClicAccPeriph<0) then exit;
cb:=(sender as Tcheckbox); cb:=(sender as Tcheckbox);
s := cb.Name; s:=cb.Name;
if pos('Aig',s)<>0 then Tablo_periph[ligneClicAccPeriph+1].ScvAig:=cb.Checked; if pos('Aig',s)<>0 then Tablo_periph[ligneClicAccPeriph+1].ScvAig:=cb.Checked;
if pos('Det',s)<>0 then Tablo_periph[ligneClicAccPeriph+1].ScvDet:=cb.Checked; if pos('Det',s)<>0 then Tablo_periph[ligneClicAccPeriph+1].ScvDet:=cb.Checked;
if pos('Act',s)<>0 then Tablo_periph[ligneClicAccPeriph+1].ScvAct:=cb.Checked; if pos('Act',s)<>0 then Tablo_periph[ligneClicAccPeriph+1].ScvAct:=cb.Checked;
@@ -4574,7 +4579,6 @@ procedure fabrique_combos_periph;
var i : integer; var i : integer;
s : string; s : string;
begin begin
with FormConfig.ListBoxPeriph,FormConfig do with FormConfig.ListBoxPeriph,FormConfig do
begin begin
ComboBoxAccComUSB.Clear; ComboBoxAccComUSB.Clear;
@@ -4608,7 +4612,6 @@ begin
// réaffiche le champ modifié dans le comboboxAccComUSB // réaffiche le champ modifié dans le comboboxAccComUSB
if Tablo_Actionneur[ligneclicAct+1].periph then if tablo_actionneur[ligneclicAct+1].fonction=i then ComboBoxAccComUSB.ItemIndex:=i-1; if Tablo_Actionneur[ligneclicAct+1].periph then if tablo_actionneur[ligneclicAct+1].fonction=i then ComboBoxAccComUSB.ItemIndex:=i-1;
ComboBoxPNCom.items[i-1]:=s; ComboBoxPNCom.items[i-1]:=s;
if tablo_PN[lignecliqueePN+1].TypeCde=1 then if tablo_PN[lignecliqueePN+1].AdresseFerme=i then ComboBoxPNCom.ItemIndex:=i-1; if tablo_PN[lignecliqueePN+1].TypeCde=1 then if tablo_PN[lignecliqueePN+1].AdresseFerme=i then ComboBoxPNCom.ItemIndex:=i-1;
@@ -4702,7 +4705,7 @@ var i : integer;
begin begin
if clicListe then exit; if clicListe then exit;
i:=ComboStyle.ItemIndex; i:=ComboStyle.ItemIndex;
// il faut changer le style dans la fenetre principale, sinon çà plante si on choisit windows. // il faut changer le style dans la fenetre principale (formPrinc), sinon çà plante si on choisit windows.
Style_Aff:=i; Style_Aff:=i;
end; end;
{$IFEND} {$IFEND}
@@ -4928,10 +4931,11 @@ begin
visible:=false; visible:=false;
end; end;
// décalage d'adresse
EditT[i]:=TEdit.create(FormConfig.TabSheetDecodeurs); EditT[i]:=TEdit.create(FormConfig.TabSheetDecodeurs);
with EditT[i] do with EditT[i] do
begin begin
Name:='EditT'+intToSTR(i); Name:='EditDecalT'+intToSTR(i);
left:=180;Top:=y+10;Width:=30;Height:=15; left:=180;Top:=y+10;Width:=30;Height:=15;
text:=''; text:='';
parent:=TabSheetDecodeurs; parent:=TabSheetDecodeurs;
@@ -5870,7 +5874,8 @@ begin
text:=''; text:='';
parent:=GroupBoxAvance; parent:=GroupBoxAvance;
hint:='Nombre de détecteurs considérés comme trop distants'+#13+ hint:='Nombre de détecteurs considérés comme trop distants'+#13+
'Cette valeur dépend de la taille du réseau'; 'Cette valeur dépend de la taille du réseau:'+#13+
'3 pour les petits réseaux jusque 5 ou 6 pour les grands';
ShowHint:=true; ShowHint:=true;
end; end;
@@ -6016,11 +6021,7 @@ begin
ShowHint:=true; ShowHint:=true;
end; end;
// oui
{if FileExists('Image_Signaux.jpg') then ImageSignaux.Picture.LoadFromFile('Image_Signaux.jpg')
else
Affiche('Manque fichier "Image_Signaux.jpg"',clOrange);
}
ImageSignaux.picture.Assign(formpilote.ImageSignaux.Picture); ImageSignaux.picture.Assign(formpilote.ImageSignaux.Picture);
EditComUSB.Hint:='COMX:vitesse,parité,nombre de bits,bits de stop,protocole'+#13+ EditComUSB.Hint:='COMX:vitesse,parité,nombre de bits,bits de stop,protocole'+#13+
@@ -6067,14 +6068,19 @@ begin
i:=pos(',',s); i:=pos(',',s);
if i<>0 then delete(s,i,length(s)-i+1); if i<>0 then delete(s,i,length(s)-i+1);
val(s,adr,erreur); val(s,adr,erreur);
if adr<0 then begin B:='?';adr:=0;exit;end; if (adr<0) then begin B:='?';adr:=0;exit;end;
if erreur<>0 then if (erreur<>0) and (erreur<=length(s)) then
begin begin
if s[erreur]='S' then begin B:='S';exit;end; if s[erreur]='S' then begin B:='S';exit;end;
if s[erreur]='P' then begin B:='P';exit;end; if s[erreur]='P' then begin B:='P';exit;end;
if s[erreur]='D' then begin B:='D';exit;end; if s[erreur]='D' then begin B:='D';exit;end;
end; end;
if erreur>length(s) then
begin
adr:=0;
B:='?';
exit;
end;
B:='Z'; B:='Z';
end; end;
@@ -7975,7 +7981,7 @@ begin
begin begin
s:=EditDet1.Text; s:=EditDet1.Text;
Val(s,i,erreur); Val(s,i,erreur);
if (s<>'') and (erreur<>0) then begin LabelInfo.caption:='Erreur détecteur1 ';exit;end; if (s='') or (erreur<>0) or (i<1) then begin LabelInfo.caption:='Erreur détecteur1 ';exit;end;
LabelInfo.caption:=' '; LabelInfo.caption:=' ';
Signaux[ligneClicSig+1].Adr_det1:=i; Signaux[ligneClicSig+1].Adr_det1:=i;
maj_hint_Signal(ligneClicSig+1); maj_hint_Signal(ligneClicSig+1);
@@ -7992,7 +7998,7 @@ var i,erreur : integer;
begin begin
s:=editTempoFeu.Text; s:=editTempoFeu.Text;
Val(s,i,erreur); Val(s,i,erreur);
if (s<>'') and (erreur<>0) then begin LabelInfo.caption:='Erreur temporisation décodeurs ';exit;end; if (s='') or (erreur<>0) or (i<0) then begin LabelInfo.caption:='Erreur temporisation décodeurs ';exit;end;
LabelInfo.caption:=' '; LabelInfo.caption:=' ';
Tempo_Signal:=i; Tempo_Signal:=i;
end; end;
@@ -8013,13 +8019,15 @@ begin
if s<>'' then if s<>'' then
begin begin
Val(s,i,erreur); Val(s,i,erreur);
if erreur<>0 then if (i<0) then begin LabelInfo.caption:='Erreur élément suivant 1';exit;end;
if (erreur<>0) and (erreur<=length(s)) then
begin begin
if (s[erreur]='A') and (erreur=1) then if (s[erreur]='A') and (erreur=1) then
begin begin
bt:=aig; bt:=aig;
delete(s,erreur,1); delete(s,erreur,1);
Val(s,i,erreur); Val(s,i,erreur);
if i<0 then begin LabelInfo.caption:='Erreur élément suivant 1';exit;end;
end end
else begin LabelInfo.caption:='Erreur élément suivant 1';exit;end; else begin LabelInfo.caption:='Erreur élément suivant 1';exit;end;
end end
@@ -8057,7 +8065,7 @@ begin
begin begin
s:=EditDet2.Text; s:=EditDet2.Text;
Val(s,i,erreur); Val(s,i,erreur);
if (s<>'') and (erreur<>0) then begin LabelInfo.caption:='Erreur détecteur2 ';exit;end; if (s='') or (erreur<>0) or (i<1) then begin LabelInfo.caption:='Erreur détecteur2 ';exit;end;
LabelInfo.caption:=' '; LabelInfo.caption:=' ';
Signaux[ligneClicSig+1].Adr_det2:=i; Signaux[ligneClicSig+1].Adr_det2:=i;
maj_hint_Signal(ligneClicSig+1); maj_hint_Signal(ligneClicSig+1);
@@ -8120,13 +8128,15 @@ begin
if s<>'' then if s<>'' then
begin begin
Val(s,i,erreur); Val(s,i,erreur);
if erreur<>0 then if (i<0) then begin LabelInfo.caption:='Erreur élément suivant 2';exit;end;
if (erreur<>0) and (erreur<=length(s)) then
begin begin
if (s[erreur]='A') and (erreur=1) then if (s[erreur]='A') and (erreur=1) then
begin begin
bt:=aig; bt:=aig;
delete(s,erreur,1); delete(s,erreur,1);
Val(s,i,erreur); Val(s,i,erreur);
if i<0 then begin LabelInfo.caption:='Erreur élément suivant 2';exit;end;
end end
else begin LabelInfo.caption:='Erreur élément suivant 2';exit;end; else begin LabelInfo.caption:='Erreur élément suivant 2';exit;end;
end end
@@ -8164,7 +8174,7 @@ begin
begin begin
s:=EditDet3.Text; s:=EditDet3.Text;
Val(s,i,erreur); Val(s,i,erreur);
if (s<>'') and (erreur<>0) then begin LabelInfo.caption:='Erreur détecteur3 ';exit;end; if (s='') or (erreur<>0) or (i<1) then begin LabelInfo.caption:='Erreur détecteur3 ';exit;end;
LabelInfo.caption:=' '; LabelInfo.caption:=' ';
Signaux[ligneClicSig+1].Adr_det3:=i; Signaux[ligneClicSig+1].Adr_det3:=i;
maj_hint_Signal(ligneClicSig+1); maj_hint_Signal(ligneClicSig+1);
@@ -8196,13 +8206,15 @@ begin
if s<>'' then if s<>'' then
begin begin
Val(s,i,erreur); Val(s,i,erreur);
if erreur<>0 then if (i<0) then begin LabelInfo.caption:='Erreur élément suivant 3';exit;end;
if (erreur<>0) and (erreur<=length(s)) then
begin begin
if (s[erreur]='A') and (erreur=1) then if (s[erreur]='A') and (erreur=1) then
begin begin
bt:=aig; bt:=aig;
delete(s,erreur,1); delete(s,erreur,1);
Val(s,i,erreur); Val(s,i,erreur);
if i<0 then begin LabelInfo.caption:='Erreur élément suivant 3';exit;end;
end end
else begin LabelInfo.caption:='Erreur élément suivant 3';exit;end; else begin LabelInfo.caption:='Erreur élément suivant 3';exit;end;
end end
@@ -8240,7 +8252,7 @@ begin
begin begin
s:=EditDet4.Text; s:=EditDet4.Text;
Val(s,i,erreur); Val(s,i,erreur);
if (s<>'') and (erreur<>0) then begin LabelInfo.caption:='Erreur détecteur4 ';exit;end; if (s='') or (erreur<>0) or (i<1) then begin LabelInfo.caption:='Erreur détecteur4 ';exit;end;
LabelInfo.caption:=' '; LabelInfo.caption:=' ';
Signaux[ligneClicSig+1].Adr_det4:=i; Signaux[ligneClicSig+1].Adr_det4:=i;
maj_hint_Signal(ligneClicSig+1); maj_hint_Signal(ligneClicSig+1);
@@ -8272,13 +8284,16 @@ begin
if s<>'' then if s<>'' then
begin begin
Val(s,i,erreur); Val(s,i,erreur);
if erreur<>0 then if (i<0) then begin LabelInfo.caption:='Erreur élément suivant 4';exit;end;
if (erreur<>0) and (erreur<=length(s)) then
begin begin
if (s[erreur]='A') and (erreur=1) then if (s[erreur]='A') and (erreur=1) then
begin begin
bt:=aig; bt:=aig;
delete(s,erreur,1); delete(s,erreur,1);
Val(s,i,erreur); Val(s,i,erreur);
if i<0 then begin LabelInfo.caption:='Erreur élément suivant 4';exit;end;
end end
else begin LabelInfo.caption:='Erreur élément suivant 4';exit;end; else begin LabelInfo.caption:='Erreur élément suivant 4';exit;end;
end end
@@ -8320,7 +8335,7 @@ begin
if radioButtonLoc.Checked or RadioButtonAccess.Checked or RadioButtonSon.Checked or radioButtonCde.checked then if radioButtonLoc.Checked or RadioButtonAccess.Checked or RadioButtonSon.Checked or radioButtonCde.checked then
begin begin
Val(s,act,erreur); Val(s,act,erreur);
if s='' then exit; if (s='') or (act<1) then exit;
// 0=actionneur/détecteur 2=evt aig 3=MemZone // 0=actionneur/détecteur 2=evt aig 3=MemZone
if (Tablo_Actionneur[ligneClicAct+1].typdeclenche=3) or (Tablo_Actionneur[ligneClicAct+1].typdeclenche=0) then if (Tablo_Actionneur[ligneClicAct+1].typdeclenche=3) or (Tablo_Actionneur[ligneClicAct+1].typdeclenche=0) then
@@ -8371,7 +8386,7 @@ begin
if radioButtonLoc.Checked or RadioButtonAccess.Checked or RadioButtonSon.Checked then if radioButtonLoc.Checked or RadioButtonAccess.Checked or RadioButtonSon.Checked then
begin begin
Val(s,det2,erreur); Val(s,det2,erreur);
if s='' then exit; if (s='') or (det2<1) then exit;
if erreur<>0 then if erreur<>0 then
begin begin
LabelInfo.caption:='Erreur adresse détecteur';exit LabelInfo.caption:='Erreur adresse détecteur';exit
@@ -8383,7 +8398,7 @@ begin
// vérifier si les détecteurs sont contigus // vérifier si les détecteurs sont contigus
Val(EditAct.Text,det1,erreur); Val(EditAct.Text,det1,erreur);
if erreur<>0 then exit; if (erreur<>0) or (det1<1) then exit;
det_contigu(det1,det2,suiv,elSuiv); det_contigu(det1,det2,suiv,elSuiv);
if (suiv=0) or (suiv>9995) then LabelInfo.Caption:='Les détecteurs '+intToSTR(det1)+' et '+intToSTR(det2)+' ne sont pas contigus' if (suiv=0) or (suiv>9995) then LabelInfo.Caption:='Les détecteurs '+intToSTR(det1)+' et '+intToSTR(det2)+' ne sont pas contigus'
else LabelInfo.Caption:=''; else LabelInfo.Caption:='';
@@ -8548,7 +8563,7 @@ begin
if radioButtonLoc.Checked or RadioButtonAccess.Checked or RadioButtonCde.Checked then if radioButtonLoc.Checked or RadioButtonAccess.Checked or RadioButtonCde.Checked then
begin begin
Val(s,fonction,erreur); Val(s,fonction,erreur);
if erreur<>0 then if (erreur<>0) or (fonction<1) then
begin begin
LabelInfo.caption:='Erreur fonction actionneur';exit LabelInfo.caption:='Erreur fonction actionneur';exit
end else LabelInfo.caption:=' '; end else LabelInfo.caption:=' ';
@@ -8603,7 +8618,7 @@ begin
if radioButtonLoc.Checked then if radioButtonLoc.Checked then
begin begin
Val(s,tempo,erreur); Val(s,tempo,erreur);
if erreur<>0 then if (erreur<>0) or (tempo<0) then
begin begin
LabelInfo.caption:='Erreur Tempo actionneur';exit LabelInfo.caption:='Erreur Tempo actionneur';exit
end else LabelInfo.caption:=' '; end else LabelInfo.caption:=' ';
@@ -8929,7 +8944,7 @@ begin
begin begin
s:=EditAdrFerme.Text; s:=EditAdrFerme.Text;
Val(s,act,erreur); Val(s,act,erreur);
if erreur<>0 then if (erreur<>0) or (act<1) then
begin begin
LabelInfo.caption:='Erreur adresse actionneur ferme';exit LabelInfo.caption:='Erreur adresse actionneur ferme';exit
end else LabelInfo.caption:=' '; end else LabelInfo.caption:=' ';
@@ -8978,7 +8993,7 @@ begin
begin begin
s:=EditAdrOuvre.Text; s:=EditAdrOuvre.Text;
Val(s,act,erreur); Val(s,act,erreur);
if erreur<>0 then if (erreur<>0) or (act<1) then
begin begin
LabelInfo.caption:='Erreur adresse actionneur ouvre';exit LabelInfo.caption:='Erreur adresse actionneur ouvre';exit
end else LabelInfo.caption:=' '; end else LabelInfo.caption:=' ';
@@ -9393,10 +9408,10 @@ begin
else else
with Signaux[j].Img do with Signaux[j].Img do
begin begin
Parent:=Formprinc.ScrollBox1; // dire que l'image est dans la scrollBox1 Parent:=Formprinc.ScrollBoxSig; // dire que l'image est dans la scrollBox1
Top:=(HtImg+espY+20)*((j-1) div NbreImagePLigne); // détermine les points d'origine Top:=(HtImg+espY+20)*((j-1) div NbreImagePLigne); // détermine les points d'origine
Left:=10+ (LargImg+5)*((j-1) mod (NbreImagePLigne)); Left:=10+ (LargImg+5)*((j-1) mod (NbreImagePLigne));
Name:='ImageFeu'+IntToSTR(Signaux[j].adresse); Name:='ImageSignal'+IntToSTR(Signaux[j].adresse);
Maj_Hint_Signal(j); Maj_Hint_Signal(j);
end; end;
@@ -11679,7 +11694,7 @@ begin
s:=encode_aig(ligneclicAig+1); s:=encode_aig(ligneclicAig+1);
ListBoxAig.items[ligneclicAig]:=s; ListBoxAig.items[ligneclicAig]:=s;
formconfig.ListBoxAig.selected[ligneclicAig]:=true; formconfig.ListBoxAig.selected[ligneclicAig]:=true;
end ; end;
end; end;
end; end;
@@ -11749,13 +11764,13 @@ begin
// créer les nouveau checkBox de feux blancs si de nouveaux ont été cochés // créer les nouveau checkBox de feux blancs si de nouveaux ont été cochés
if Signaux[index].FeuBlanc and (Signaux[index].checkFB=nil) then if Signaux[index].FeuBlanc and (Signaux[index].checkFB=nil) then
begin begin
Signaux[index].CheckFB:=TCheckBox.create(Formprinc.ScrollBox1); // crée le handle Signaux[index].CheckFB:=TCheckBox.create(Formprinc.ScrollBoxSig); // crée le handle
with Signaux[index].CheckFB do with Signaux[index].CheckFB do
begin begin
onClick:=formprinc.proc_checkBoxFB; // affecter l'adresse de la procédure de traitement quand on clique dessus onClick:=formprinc.proc_checkBoxFB; // affecter l'adresse de la procédure de traitement quand on clique dessus
Hint:=intToSTR(index); Hint:=intToSTR(index);
caption:='dem FB'; caption:='dem FB';
Parent:=Formprinc.ScrollBox1; Parent:=Formprinc.ScrollBoxSig;
width:=100;height:=15; width:=100;height:=15;
Top:=HtImg+15+((HtImg+EspY+20)*((index-1) div NbreImagePLigne)); Top:=HtImg+15+((HtImg+EspY+20)*((index-1) div NbreImagePLigne));
Left:=10+ (LargImg+5)*((index-1) mod (NbreImagePLigne)); Left:=10+ (LargImg+5)*((index-1) mod (NbreImagePLigne));
@@ -12318,29 +12333,33 @@ begin
end; end;
procedure TFormConfig.EditAdresseTrainChange(Sender: TObject); procedure TFormConfig.EditAdresseTrainChange(Sender: TObject);
var erreur :integer; var erreur,i :integer;
begin begin
if clicliste then exit; if clicliste then exit;
if affevt then affiche('Evt change adresse train',clyellow); if affevt then affiche('Evt change adresse train',clyellow);
if (ligneclicTrain<0) or (ligneclicTrain>=ntrains) or (ntrains<1) then exit; if (ligneclicTrain<0) or (ligneclicTrain>=ntrains) or (ntrains<1) then exit;
val(EditAdresseTrain.text,trains[ligneclicTrain+1].adresse,erreur); val(EditAdresseTrain.text,i,erreur);
if i<1 then exit;
trains[ligneclicTrain+1].adresse:=i;
formconfig.ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1); formconfig.ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1);
ListBoxTrains.selected[ligneclicTrain]:=true; ListBoxTrains.selected[ligneclicTrain]:=true;
end; end;
procedure TFormConfig.EditVitesseMaxiChange(Sender: TObject); procedure TFormConfig.EditVitesseMaxiChange(Sender: TObject);
var erreur :integer; var erreur,i :integer;
begin begin
if clicliste then exit; if clicliste then exit;
if affevt then affiche('Evt change vitesse maxi train',clyellow); if affevt then affiche('Evt change vitesse maxi train',clyellow);
if (ligneclicTrain<0) or (ligneclicTrain>=ntrains) or (ntrains<1) then exit; if (ligneclicTrain<0) or (ligneclicTrain>=ntrains) or (ntrains<1) then exit;
val(EditVitesseMaxi.text,trains[ligneclicTrain+1].vitmax,erreur); val(EditVitesseMaxi.text,i,erreur);
if i<1 then exit;
trains[ligneclicTrain+1].vitmax:=i;
formconfig.ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1); formconfig.ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1);
formconfig.ListBoxTrains.selected[ligneclicTrain]:=true; formconfig.ListBoxTrains.selected[ligneclicTrain]:=true;
end; end;
procedure TFormConfig.EditVitNomChange(Sender: TObject); procedure TFormConfig.EditVitNomChange(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if clicliste then exit; if clicliste then exit;
if affevt then affiche('Evt change vitesse nominale train',clyellow); if affevt then affiche('Evt change vitesse nominale train',clyellow);
@@ -12348,14 +12367,16 @@ begin
if FormConfig.PageControl.ActivePage=FormConfig.TabSheetTrains then if FormConfig.PageControl.ActivePage=FormConfig.TabSheetTrains then
with Formconfig do with Formconfig do
begin begin
val(EditVitNom.text,trains[ligneclicTrain+1].vitNominale,erreur); val(EditVitNom.text,i,erreur);
if i<1 then exit;
trains[ligneclicTrain+1].vitNominale:=i;
ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1); ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1);
ListBoxTrains.selected[ligneclicTrain]:=true; ListBoxTrains.selected[ligneclicTrain]:=true;
end; end;
end; end;
procedure TFormConfig.EditVitRalentiChange(Sender: TObject); procedure TFormConfig.EditVitRalentiChange(Sender: TObject);
var erreur : integer; var erreur,i : integer;
begin begin
if clicliste then exit; if clicliste then exit;
if affevt then affiche('Evt change vitesse ralenti train',clyellow); if affevt then affiche('Evt change vitesse ralenti train',clyellow);
@@ -12363,7 +12384,9 @@ end;
if FormConfig.PageControl.ActivePage=FormConfig.TabSheetTrains then if FormConfig.PageControl.ActivePage=FormConfig.TabSheetTrains then
with Formconfig do with Formconfig do
begin begin
val(EditVitRalenti.text,trains[ligneclicTrain+1].vitRalenti,erreur); val(EditVitRalenti.text,i,erreur);
if i<1 then exit;
trains[ligneclicTrain+1].vitRalenti:=i;
ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1); ListBoxTrains.items[ligneclicTrain]:=Train_tablo(ligneclicTrain+1);
ListBoxTrains.selected[ligneclicTrain]:=true; ListBoxTrains.selected[ligneclicTrain]:=true;
end; end;
@@ -12771,16 +12794,16 @@ procedure Tformconfig.modif_editT(Sender : TObject);
var te : tEdit; var te : tEdit;
adr,i,NbVoies,erreur,act,voie,det,numDet :integer; adr,i,NbVoies,erreur,act,voie,det,numDet :integer;
ouvre,ferme,v2Valide,v3valide,v4valide,v5valide : boolean; ouvre,ferme,v2Valide,v3valide,v4valide,v5valide : boolean;
s : string; s,sb : string;
begin begin
if deccourant=0 then exit; if deccourant=0 then exit;
te:=Sender as Tedit; te:=Sender as Tedit;
s:=lowercase(te.Name); s:=lowercase(te.Name);
sb:=te.Text;
if pos('EditOuvreEcran',s)<>0 then if pos('editouvreecran',s)<>0 then
begin begin
adr:=extract_int(s); val(sb,i,erreur);
val(s,i,erreur);
if (erreur<>0) or (i<1) then if (erreur<>0) or (i<1) then
begin begin
labelInfo.caption:='Erreur écran'; labelInfo.caption:='Erreur écran';
@@ -12791,11 +12814,11 @@ begin
exit; exit;
end; end;
if pos('tditt',s)<>0 then if pos('editdecalt',s)<>0 then
begin begin
adr:=extract_int(s); adr:=extract_int(s);
val(s,i,erreur); val(sb,i,erreur);
if erreur<>0 then if (erreur<>0) or (i<0) then
begin begin
labelInfo.caption:='Erreur adresse'; labelInfo.caption:='Erreur adresse';
exit; exit;
@@ -12809,17 +12832,16 @@ begin
if pos('editv',s)<>0 then if pos('editv',s)<>0 then
begin begin
i:=lignecliqueePN+1; i:=lignecliqueePN+1;
voie:=extract_int(s); voie:=extract_int(s); // numéro de voie modifiée
ouvre:=pos('o',s)<>0; ouvre:=pos('o',s)<>0; // champ ouvre
ferme:=pos('f',s)<>0; ferme:=pos('f',s)<>0; // champ ferme
if clicliste or (lignecliqueePN<0) then exit; if clicliste or (lignecliqueePN<0) then exit;
if affevt then affiche('Evt EditVXX Change',clyellow); if affevt then affiche('Evt EditVXX Change',clyellow);
if FormConfig.PageControl.ActivePage=FormConfig.TabSheetAct then if FormConfig.PageControl.ActivePage=FormConfig.TabSheetAct then
with Formconfig do with Formconfig do
begin begin
s:=te.Text; Val(sb,act,erreur);
Val(s,act,erreur); if (erreur<>0) or (act<=0) then
if (erreur<>0) then
begin begin
LabelInfo.caption:='Erreur adresse actionneur'; LabelInfo.caption:='Erreur adresse actionneur';
if ferme then tablo_PN[i].voie[voie].ActFerme:=0; if ferme then tablo_PN[i].voie[voie].ActFerme:=0;
@@ -12882,7 +12904,7 @@ begin
s:=te.Text; s:=te.Text;
Val(s,det,erreur); Val(s,det,erreur);
if (erreur<>0) then if (erreur<>0) or (det<=0) then
begin begin
LabelInfo.caption:='Erreur adresse détecteur';exit LabelInfo.caption:='Erreur adresse détecteur';exit
end else LabelInfo.caption:=' '; end else LabelInfo.caption:=' ';
@@ -13092,7 +13114,6 @@ begin
k:=comBoBoxDec.ItemIndex; k:=comBoBoxDec.ItemIndex;
ComboBoxDec.Items[NbDecodeurdeBase+DecCourant-1]:=s; // combobox du décodeur, onglet signaux - change son itemindex ComboBoxDec.Items[NbDecodeurdeBase+DecCourant-1]:=s; // combobox du décodeur, onglet signaux - change son itemindex
ComboBoxDec.ItemIndex:=k; ComboBoxDec.ItemIndex:=k;
//vérifier si le décodeur est utilisé dans les signaux pour changer son hint //vérifier si le décodeur est utilisé dans les signaux pour changer son hint
for i:=1 to NbreSignaux do for i:=1 to NbreSignaux do
begin begin
@@ -13102,7 +13123,7 @@ begin
EditNbreAdr.Text:=intToSTR(decodeur_pers[decCourant].NbreAdr); EditNbreAdr.Text:=intToSTR(decodeur_pers[decCourant].NbreAdr);
//Affiche('Décodeur courant = '+intToSTR(decCourant),clyellow); //Affiche('Décodeur courant = '+intToSTR(decCourant),clyellow);
if it=-1 then maj_decodeurs; maj_decodeurs;
end; end;
@@ -14273,7 +14294,7 @@ begin
if (modele=aig) or (modele=triple) or (modele=crois) then if (modele=aig) or (modele=triple) or (modele=crois) then
begin begin
EditAdrAig.Color:=clWindow; if sombre then editAdrAig.Color:=couleurfond else EditAdrAig.Color:=clWindow;
LabelInfo.caption:=' '; LabelInfo.caption:=' ';
aiguillage[index].adresse:=i; aiguillage[index].adresse:=i;
aiguillage[index].modifie:=true; aiguillage[index].modifie:=true;
+19 -7
View File
@@ -301,7 +301,7 @@ object FormConfCellTCO: TFormConfCellTCO
end end
object GroupBoxAction: TGroupBox object GroupBoxAction: TGroupBox
Left = 16 Left = 16
Top = 240 Top = 144
Width = 249 Width = 249
Height = 129 Height = 129
Caption = 'Action' Caption = 'Action'
@@ -314,14 +314,14 @@ object FormConfCellTCO: TFormConfCellTCO
TabOrder = 6 TabOrder = 6
object Label3: TLabel object Label3: TLabel
Left = 104 Left = 104
Top = 74 Top = 73
Width = 38 Width = 38
Height = 13 Height = 13
Caption = 'Adresse' Caption = 'Adresse'
end end
object Labela: TLabel object Labela: TLabel
Left = 184 Left = 192
Top = 74 Top = 73
Width = 6 Width = 6
Height = 13 Height = 13
Caption = #224 Caption = #224
@@ -371,7 +371,7 @@ object FormConfCellTCO: TFormConfCellTCO
OnClick = RadioButtonActionClick OnClick = RadioButtonActionClick
end end
object EditAdrSortie: TEdit object EditAdrSortie: TEdit
Left = 144 Left = 152
Top = 70 Top = 70
Width = 33 Width = 33
Height = 21 Height = 21
@@ -379,9 +379,9 @@ object FormConfCellTCO: TFormConfCellTCO
OnChange = EditAdrSortieChange OnChange = EditAdrSortieChange
end end
object EditEtat: TEdit object EditEtat: TEdit
Left = 200 Left = 208
Top = 70 Top = 70
Width = 25 Width = 17
Height = 21 Height = 21
Hint = '1 ou 2' Hint = '1 ou 2'
ParentShowHint = False ParentShowHint = False
@@ -389,6 +389,18 @@ object FormConfCellTCO: TFormConfCellTCO
TabOrder = 6 TabOrder = 6
OnChange = EditEtatChange OnChange = EditEtatChange
end end
object RadioButtonStop: TRadioButton
Left = 8
Top = 88
Width = 177
Height = 17
Hint = 'Arr'#234'te tous les trains (mode autonome et CDM)'
Caption = 'Arr'#234'ter toutes les trains'
ParentShowHint = False
ShowHint = True
TabOrder = 7
OnClick = RadioButtonStopClick
end
end end
end end
object CheckPinv: TCheckBox object CheckPinv: TCheckBox
+46 -29
View File
@@ -42,6 +42,7 @@ type
EditEtat: TEdit; EditEtat: TEdit;
Labela: TLabel; Labela: TLabel;
RadioButtonV180: TRadioButton; RadioButtonV180: TRadioButton;
RadioButtonStop: TRadioButton;
procedure EditAdrElementChange(Sender: TObject); procedure EditAdrElementChange(Sender: TObject);
procedure EditTexteCCTCOChange(Sender: TObject); procedure EditTexteCCTCOChange(Sender: TObject);
procedure ButtonFonteClick(Sender: TObject); procedure ButtonFonteClick(Sender: TObject);
@@ -69,6 +70,7 @@ type
procedure EditEtatChange(Sender: TObject); procedure EditEtatChange(Sender: TObject);
procedure RadioButtonActionClick(Sender: TObject); procedure RadioButtonActionClick(Sender: TObject);
procedure RadioButtonV180Click(Sender: TObject); procedure RadioButtonV180Click(Sender: TObject);
procedure RadioButtonStopClick(Sender: TObject);
private private
{ Déclarations privées } { Déclarations privées }
public public
@@ -140,6 +142,8 @@ begin
RadioButtonSC.Checked:=tco[indexTCO,Xclic,Yclic].PiedFeu=2; RadioButtonSC.Checked:=tco[indexTCO,Xclic,Yclic].PiedFeu=2;
RadioButtonCDM.Checked:=tco[indexTCO,Xclic,Yclic].PiedFeu=3; RadioButtonCDM.Checked:=tco[indexTCO,Xclic,Yclic].PiedFeu=3;
RadioButtonAction.Checked:=tco[indexTCO,Xclic,Yclic].PiedFeu=4; RadioButtonAction.Checked:=tco[indexTCO,Xclic,Yclic].PiedFeu=4;
RadioButtonStop.Checked:=tco[indexTCO,Xclic,Yclic].PiedFeu=5;
editNumTCO.Text:=intToSTR(tco[indexTCO,Xclic,Yclic].FeuOriente); editNumTCO.Text:=intToSTR(tco[indexTCO,Xclic,Yclic].FeuOriente);
if RadioButtonAction.Checked then if RadioButtonAction.Checked then
begin begin
@@ -212,36 +216,36 @@ begin
end; end;
end; end;
// si voie ou rien ou signal ou quai // si voie ou rien ou signal ou quai
if (Bimage=1) or (Bimage=0) or (Bimage=Id_signal) or (Bimage=Id_Quai) then if (Bimage=1) or (Bimage=0) or (Bimage=Id_signal) or (Bimage=Id_Quai) then
begin
s:=Tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].Texte;
with formTCO[indexTCO] do
begin begin
s:=Tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].Texte; EditTexte.Text:=s;
with formTCO[indexTCO] do EditTexte.Visible:=true;
begin ComboRepr.Enabled:=true;
EditTexte.Text:=s;
EditTexte.Visible:=true;
ComboRepr.Enabled:=true;
end;
end
else
begin
formTCO[indexTCO].EditTexte.Visible:=false;
formTCO[indexTCO].comboRepr.Enabled:=false;
end; end;
end
else
begin
formTCO[indexTCO].EditTexte.Visible:=false;
formTCO[indexTCO].comboRepr.Enabled:=false;
end;
s:=IntToSTR(Xclic)+','+intToSTR(yClic); s:=IntToSTR(Xclic)+','+intToSTR(yClic);
FormTCO[indexTCO].GroupBox1.Caption:='Configuration cellule '+s; FormTCO[indexTCO].GroupBox1.Caption:='Configuration cellule '+s;
XclicCellInserer:=XclicCell[indexTCO]; XclicCellInserer:=XclicCell[indexTCO];
YclicCellInserer:=YclicCell[indexTCO]; YclicCellInserer:=YclicCell[indexTCO];
FormTCO[indexTCO].EditAdrElement.Text:=IntToSTR(tco[indexTCO,XclicCellInserer,YclicCellInserer].Adresse); FormTCO[indexTCO].EditAdrElement.Text:=IntToSTR(tco[indexTCO,XclicCellInserer,YclicCellInserer].Adresse);
FormTCO[indexTCO].EdittypeImage.Text:=IntToSTR(BImage); FormTCO[indexTCO].EdittypeImage.Text:=IntToSTR(BImage);
FormTCO[indexTCO].ComboRepr.ItemIndex:=tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].repr; FormTCO[indexTCO].ComboRepr.ItemIndex:=tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].repr;
FormTCO[indexTCO].ShapeCoulFond.Brush.Color:=tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].CouleurFond; FormTCO[indexTCO].ShapeCoulFond.Brush.Color:=tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].CouleurFond;
FormTCO[indexTCO].CheckPinv.Checked:=tco[indextco,XclicCell[indexTCO],YclicCell[indexTCO]].inverse; FormTCO[indexTCO].CheckPinv.Checked:=tco[indextco,XclicCell[indexTCO],YclicCell[indexTCO]].inverse;
s:='El='+intToSTR(tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].BImage); s:='El='+intToSTR(tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].BImage);
if tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].adresse<>0 then s:=s+' Adr='+intToSTR(tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].adresse); if tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].adresse<>0 then s:=s+' Adr='+intToSTR(tco[indexTCO,XclicCell[indexTCO],YclicCell[indexTCO]].adresse);
//hint:=s; //hint:=s;
if not(ConfCellTCO) then exit; if not(ConfCellTCO) then exit;
@@ -682,11 +686,9 @@ begin
Xclic:=XclicCell[indexTCOCourant]; Xclic:=XclicCell[indexTCOCourant];
Yclic:=YclicCell[indexTCOCourant]; Yclic:=YclicCell[indexTCOCourant];
//Affiche(IntToSTR(x)+' '+IntToSTR(y),clyellow); //Affiche(IntToSTR(x)+' '+IntToSTR(y),clyellow);
val(editTypeImage.text,element,erreur); val(editTypeImage.text,element,erreur);
if erreur<>0 then exit; if erreur<>0 then exit;
extrait_connect(element,c1,c2,c3,c4); extrait_connect(element,c1,c2,c3,c4);
@@ -875,6 +877,8 @@ begin
end; end;
end; end;
procedure TFormConfCellTCO.EditAdrSortieChange(Sender: TObject); procedure TFormConfCellTCO.EditAdrSortieChange(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
@@ -915,9 +919,22 @@ begin
end; end;
end; end;
procedure TFormConfCellTCO.RadioButtonStopClick(Sender: TObject);
var x,y : integer;
begin begin
if clicTCO or actualize then exit;
if RadioButtonStop.Checked then
begin
x:=XClicCell[IndexTCOCourant];
y:=yClicCell[IndexTCOCourant];
tco[IndexTCOCourant,x,y].PiedFeu:=5;
efface_cellule(indexTCOCourant,PCanvasTCO[indexTCOcourant],x,y,pmcopy);
affiche_cellule(IndexTCOCourant,x,y);
actualise(indexTCOCourant);
end;
end;
begin
end. end.
+23 -3
View File
@@ -13,12 +13,13 @@ object FormConfigTCO: TFormConfigTCO
Font.Style = [] Font.Style = []
OldCreateOrder = False OldCreateOrder = False
OnActivate = FormActivate OnActivate = FormActivate
OnClose = FormClose
OnCreate = FormCreate OnCreate = FormCreate
PixelsPerInch = 96 PixelsPerInch = 96
TextHeight = 13 TextHeight = 13
object LabelErreur: TLabel object LabelErreur: TLabel
Left = 16 Left = 104
Top = 216 Top = 384
Width = 3 Width = 3
Height = 13 Height = 13
end end
@@ -202,9 +203,28 @@ object FormConfigTCO: TFormConfigTCO
Top = 384 Top = 384
Width = 75 Width = 75
Height = 25 Height = 25
Caption = 'OK'
Default = True
TabOrder = 3 TabOrder = 3
OnClick = BitBtnOkClick OnClick = BitBtnOkClick
Kind = bkOK Glyph.Data = {
DE010000424DDE01000000000000760000002800000024000000120000000100
0400000000006801000000000000000000001000000000000000000000000000
80000080000000808000800000008000800080800000C0C0C000808080000000
FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
3333333333333333333333330000333333333333333333333333F33333333333
00003333344333333333333333388F3333333333000033334224333333333333
338338F3333333330000333422224333333333333833338F3333333300003342
222224333333333383333338F3333333000034222A22224333333338F338F333
8F33333300003222A3A2224333333338F3838F338F33333300003A2A333A2224
33333338F83338F338F33333000033A33333A222433333338333338F338F3333
0000333333333A222433333333333338F338F33300003333333333A222433333
333333338F338F33000033333333333A222433333333333338F338F300003333
33333333A222433333333333338F338F00003333333333333A22433333333333
3338F38F000033333333333333A223333333333333338F830000333333333333
333A333333333333333338330000333333333333333333333333333333333333
0000}
NumGlyphs = 2
end end
object RadioGroup1: TRadioGroup object RadioGroup1: TRadioGroup
Left = 304 Left = 304
+68 -59
View File
@@ -80,6 +80,7 @@ type
procedure RadioButtonCourbesClick(Sender: TObject); procedure RadioButtonCourbesClick(Sender: TObject);
procedure FormCreate(Sender: TObject); procedure FormCreate(Sender: TObject);
procedure TrackBarEpaisseurChange(Sender: TObject); procedure TrackBarEpaisseurChange(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private private
{ Déclarations privées } { Déclarations privées }
public public
@@ -262,12 +263,18 @@ begin
end; end;
val(EditRatio.text,RatioC,erreur); val(EditRatio.text,RatioC,erreur);
if (ratioC<5) or (ratioC>15) then
begin
LabelErreur.caption:='Erreur: ratio';
ok:=false;
end;
AvecGrille[IndexTCO]:=checkDessineGrille.Checked; AvecGrille[IndexTCO]:=checkDessineGrille.Checked;
if checkCouleur.checked then ModeCouleurCanton:=1 else ModeCouleurCanton:=0; if checkCouleur.checked then ModeCouleurCanton:=1 else ModeCouleurCanton:=0;
end; end;
verif_config_TCO:=ok; verif_config_TCO:=ok;
if ok then formConfigTCO.LabelErreur.caption:='';
NbCellulesTCO[indexTCO]:=NbreCellX[indexTCO]*NbreCellY[indexTCO]; NbCellulesTCO[indexTCO]:=NbreCellX[indexTCO]*NbreCellY[indexTCO];
end; end;
@@ -444,66 +451,8 @@ begin
end; end;
procedure TFormConfigTCO.BitBtnOkClick(Sender: TObject); procedure TFormConfigTCO.BitBtnOkClick(Sender: TObject);
var ok : boolean;
i,x,y,erreur : integer;
s : string;
begin begin
ok:=true; close;
if verif_config_TCO(indexTCOCourant) then
begin
with FormTCO[indexTCOCourant].ImageTCO do
begin
Width:=LargeurCell[indexTCOCourant]*NbreCellX[indexTCOCourant];
Height:=HauteurCell[indexTCOCourant]*NbreCellY[indexTCOCourant];
end;
for y:=1 to NbreCellY[indexTCOCourant] do
for x:=1 to NbreCellX[indexTCOCourant] do
begin
if tco[indexTCOCourant,x,y].CouleurFond=0 then tco[indexTCOCourant,x,y].CouleurFond:=clfond[indexTCOCourant];
end;
if RadioButtonLignes.Checked then
begin
if graphisme=2 then TCO_modifie:=true;
graphisme:=1 ;
end;
if RadioButtonCourbes.Checked then
begin
if graphisme=1 then TCO_modifie:=true;
graphisme:=2;
end;
epaisseur_voies:=trackBarEpaisseur.Position;
val(editEcran.Text,i,erreur);
if i<1 then i:=1;
if i<>EcranTCO[indexTCOcourant] then tco_modifie:=true;
EcranTCO[indexTCOcourant]:=i;
AvecGrille[IndexTCOCourant]:=checkDessineGrille.Checked;
if ok then
begin
for i:=1 to 10 do
begin
if NomFichierTCO[i]<>stringGridTCO.Cells[1,i] then
begin
config_modifie:=true;
s:=stringGridTCO.Cells[1,i];
// on peut vérifier le .cfg mais bon
Affiche('Le nom du fichier '+NomFichierTCO[i]+' sera sauvegardé en '+s,clyellow);
NomFichierTCO[i]:=s;
end
else
NomFichierTCO[i]:=stringGridTCO.Cells[1,i];
end;
calcul_cellules(IndexTCOcourant);
affiche_TCO(indexTCOcourant);
dessine_icones(indexTCOCourant);
LabelErreur.caption:='';
close;
end;
end;
end; end;
procedure TFormConfigTCO.CheckBoxCreerEvtClick(Sender: TObject); procedure TFormConfigTCO.CheckBoxCreerEvtClick(Sender: TObject);
@@ -593,8 +542,68 @@ begin
TrackBarEpaisseur.Hint:='Epaisseur = '+IntToSTR(i); TrackBarEpaisseur.Hint:='Epaisseur = '+IntToSTR(i);
end; end;
procedure TFormConfigTCO.FormClose(Sender: TObject;var Action: TCloseAction);
var ok : boolean;
i,x,y,erreur : integer;
s : string;
begin
ok:=true;
if verif_config_TCO(indexTCOCourant) then
begin
with FormTCO[indexTCOCourant].ImageTCO do
begin
Width:=LargeurCell[indexTCOCourant]*NbreCellX[indexTCOCourant];
Height:=HauteurCell[indexTCOCourant]*NbreCellY[indexTCOCourant];
end;
for y:=1 to NbreCellY[indexTCOCourant] do
for x:=1 to NbreCellX[indexTCOCourant] do
begin
if tco[indexTCOCourant,x,y].CouleurFond=0 then tco[indexTCOCourant,x,y].CouleurFond:=clfond[indexTCOCourant];
end;
if RadioButtonLignes.Checked then
begin
if graphisme=2 then TCO_modifie:=true;
graphisme:=1 ;
end;
if RadioButtonCourbes.Checked then
begin
if graphisme=1 then TCO_modifie:=true;
graphisme:=2;
end;
epaisseur_voies:=trackBarEpaisseur.Position;
val(editEcran.Text,i,erreur);
if i<1 then i:=1;
if i<>EcranTCO[indexTCOcourant] then tco_modifie:=true;
EcranTCO[indexTCOcourant]:=i;
AvecGrille[IndexTCOCourant]:=checkDessineGrille.Checked;
if ok then
begin
for i:=1 to 10 do
begin
if NomFichierTCO[i]<>stringGridTCO.Cells[1,i] then
begin
config_modifie:=true;
s:=stringGridTCO.Cells[1,i];
// on peut vérifier le .cfg mais bon
Affiche('Le nom du fichier '+NomFichierTCO[i]+' sera sauvegardé en '+s,clyellow);
NomFichierTCO[i]:=s;
end
else
NomFichierTCO[i]:=stringGridTCO.Cells[1,i];
end;
menu_tco(nbreTCO);
calcul_cellules(IndexTCOcourant);
affiche_TCO(indexTCOcourant);
dessine_icones(indexTCOCourant);
LabelErreur.caption:='';
end;
end
else action:=tCloseAction(caNone); // si la config est nok, on ferme pas la fenetre
end;
begin
end. end.
+19 -18
View File
@@ -4,6 +4,7 @@ object FormDebug: TFormDebug
Width = 884 Width = 884
Height = 732 Height = 732
VertScrollBar.Increment = 67 VertScrollBar.Increment = 67
VertScrollBar.Position = 17
VertScrollBar.Tracking = True VertScrollBar.Tracking = True
Caption = 'Fen'#234'tre de d'#233'bug' Caption = 'Fen'#234'tre de d'#233'bug'
Color = clWindow Color = clWindow
@@ -20,13 +21,13 @@ object FormDebug: TFormDebug
OnCreate = FormCreate OnCreate = FormCreate
OnKeyPress = FormKeyPress OnKeyPress = FormKeyPress
DesignSize = ( DesignSize = (
851 859
693) 701)
PixelsPerInch = 96 PixelsPerInch = 96
TextHeight = 13 TextHeight = 13
object Label1: TLabel object Label1: TLabel
Left = 615 Left = 615
Top = 4 Top = -13
Width = 108 Width = 108
Height = 13 Height = 13
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -42,7 +43,7 @@ object FormDebug: TFormDebug
end end
object LabelTitreDebug: TLabel object LabelTitreDebug: TLabel
Left = 463 Left = 463
Top = 2 Top = -15
Width = 131 Width = 131
Height = 18 Height = 18
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -56,7 +57,7 @@ object FormDebug: TFormDebug
end end
object EditNivDebug: TEdit object EditNivDebug: TEdit
Left = 774 Left = 774
Top = 2 Top = -15
Width = 49 Width = 49
Height = 21 Height = 21
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -72,7 +73,7 @@ object FormDebug: TFormDebug
end end
object ButtonEcrLog: TButton object ButtonEcrLog: TButton
Left = 462 Left = 462
Top = 328 Top = 311
Width = 97 Width = 97
Height = 29 Height = 29
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -82,7 +83,7 @@ object FormDebug: TFormDebug
end end
object ButtonRazTampon: TButton object ButtonRazTampon: TButton
Left = 462 Left = 462
Top = 360 Top = 343
Width = 97 Width = 97
Height = 33 Height = 33
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -93,7 +94,7 @@ object FormDebug: TFormDebug
end end
object ButtonCherche: TButton object ButtonCherche: TButton
Left = 462 Left = 462
Top = 296 Top = 279
Width = 97 Width = 97
Height = 25 Height = 25
Hint = 'Cherche la cha'#238'ne "erreur"' Hint = 'Cherche la cha'#238'ne "erreur"'
@@ -106,7 +107,7 @@ object FormDebug: TFormDebug
end end
object ButtonAffEvtChrono: TButton object ButtonAffEvtChrono: TButton
Left = 462 Left = 462
Top = 256 Top = 239
Width = 97 Width = 97
Height = 33 Height = 33
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -117,7 +118,7 @@ object FormDebug: TFormDebug
end end
object ButtonCop: TButton object ButtonCop: TButton
Left = 462 Left = 462
Top = 208 Top = 191
Width = 97 Width = 97
Height = 41 Height = 41
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -134,7 +135,7 @@ object FormDebug: TFormDebug
end end
object ButtonRazLog: TButton object ButtonRazLog: TButton
Left = 462 Left = 462
Top = 400 Top = 383
Width = 97 Width = 97
Height = 33 Height = 33
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -145,7 +146,7 @@ object FormDebug: TFormDebug
end end
object GroupBox1: TGroupBox object GroupBox1: TGroupBox
Left = 468 Left = 468
Top = 600 Top = 583
Width = 369 Width = 369
Height = 185 Height = 185
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -295,7 +296,7 @@ object FormDebug: TFormDebug
end end
object GroupBox2: TGroupBox object GroupBox2: TGroupBox
Left = 460 Left = 460
Top = 20 Top = 3
Width = 384 Width = 384
Height = 149 Height = 149
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -508,7 +509,7 @@ object FormDebug: TFormDebug
end end
object RichDebug: TRichEdit object RichDebug: TRichEdit
Left = 8 Left = 8
Top = 8 Top = -9
Width = 445 Width = 445
Height = 685 Height = 685
Anchors = [akLeft, akTop, akRight, akBottom] Anchors = [akLeft, akTop, akRight, akBottom]
@@ -521,7 +522,7 @@ object FormDebug: TFormDebug
end end
object GroupBox5: TGroupBox object GroupBox5: TGroupBox
Left = 468 Left = 468
Top = 488 Top = 471
Width = 372 Width = 372
Height = 57 Height = 57
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -588,7 +589,7 @@ object FormDebug: TFormDebug
end end
object ButtonRazTout: TButton object ButtonRazTout: TButton
Left = 463 Left = 463
Top = 176 Top = 159
Width = 97 Width = 97
Height = 25 Height = 25
Hint = Hint =
@@ -603,7 +604,7 @@ object FormDebug: TFormDebug
end end
object GroupBox6: TGroupBox object GroupBox6: TGroupBox
Left = 468 Left = 468
Top = 552 Top = 535
Width = 372 Width = 372
Height = 41 Height = 41
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -680,7 +681,7 @@ object FormDebug: TFormDebug
end end
object MemoEvtDet: TRichEdit object MemoEvtDet: TRichEdit
Left = 565 Left = 565
Top = 174 Top = 157
Width = 280 Width = 280
Height = 307 Height = 307
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
+23 -14
View File
@@ -206,7 +206,10 @@ begin
compt_erreur:=0; compt_erreur:=0;
LigneErreur:=0; LigneErreur:=0;
if debug=1 then Affiche('Fin création fenêtre debug',clLime); if debug=1 then Affiche('Fin création fenêtre debug',clLime);
// && débug=====================
//CheckBoxEvtDetAig.Checked:=true;
//CheckTrame.checked:=true;
// fin debug====================
couleurs_debug; couleurs_debug;
end; end;
@@ -377,8 +380,7 @@ begin
ancdebug:=NivDebug; ancdebug:=NivDebug;
NivDebug:=3; NivDebug:=3;
Val(EditSigSuiv.Text,adr,erreur); Val(EditSigSuiv.Text,adr,erreur);
if erreur<>0 then exit; if (erreur<>0) and (adr>0) then etat_signal_suivant(Adr,1,AdrSigSuivant) ;
etat_signal_suivant(Adr,1,AdrSigSuivant) ;
NivDebug:=AncDebug; NivDebug:=AncDebug;
end; end;
@@ -394,8 +396,10 @@ begin
if (s1='') or (s2='') then exit; if (s1='') or (s2='') then exit;
if s1[1]='A' then begin type1:=aig;delete(s1,1,1);end else type1:=det; if s1[1]='A' then begin type1:=aig;delete(s1,1,1);end else type1:=det;
if s2[1]='A' then begin type2:=aig;delete(s2,1,1);end else type2:=det; if s2[1]='A' then begin type2:=aig;delete(s2,1,1);end else type2:=det;
Val(s1,prec,erreur); if erreur<>0 then exit; Val(s1,prec,erreur);
Val(s2,Actuel,erreur); if erreur<>0 then exit; if (erreur<>0) or (prec<1) then exit;
Val(s2,Actuel,erreur);
if (erreur<>0) or (actuel<1) then exit;
Adr:=detecteur_suivant_El(prec,type1,actuel,type2,1); Adr:=detecteur_suivant_El(prec,type1,actuel,type2,1);
if Adr<9996 then AfficheDebug('Le détecteur suivant aux éléments '+IntToSTR(prec)+'/'+IntToSTR(actuel)+' est '+IntToSTR(Adr),clyellow) if Adr<9996 then AfficheDebug('Le détecteur suivant aux éléments '+IntToSTR(prec)+'/'+IntToSTR(actuel)+' est '+IntToSTR(Adr),clyellow)
else AfficheDebug('Pas trouvé de détecteur suvant aux éléments '+IntToSTR(prec)+'/'+IntToSTR(actuel),clyellow); else AfficheDebug('Pas trouvé de détecteur suvant aux éléments '+IntToSTR(prec)+'/'+IntToSTR(actuel),clyellow);
@@ -407,7 +411,8 @@ var Adr,erreur,ancdebug : integer ;
begin begin
ancdebug:=NivDebug; ancdebug:=NivDebug;
NivDebug:=3; NivDebug:=3;
Val(EditSigSuiv.Text,Adr,erreur); if erreur<>0 then exit; Val(EditSigSuiv.Text,Adr,erreur);
if (erreur=0) or (adr<1) then exit;
if test_memoire_zones(Adr) then AfficheDebug('Présence train',clYellow) else if test_memoire_zones(Adr) then AfficheDebug('Présence train',clYellow) else
AfficheDebug('Absence train',clyellow); AfficheDebug('Absence train',clyellow);
NivDebug:=AncDebug; NivDebug:=AncDebug;
@@ -417,7 +422,8 @@ end;
procedure TFormDebug.ButtonCPClick(Sender: TObject); procedure TFormDebug.ButtonCPClick(Sender: TObject);
var Adr,erreur,ancdebug,adrtrain,voie : integer ; var Adr,erreur,ancdebug,adrtrain,voie : integer ;
begin begin
Val(EditSigSuiv.Text,Adr,erreur); if erreur<>0 then exit; Val(EditSigSuiv.Text,Adr,erreur);
if (erreur<>0) or (adr<1) then exit;
ancdebug:=NivDebug; ancdebug:=NivDebug;
NivDebug:=3; NivDebug:=3;
if PresTrainPrec(Adr,Nb_cantons_Sig,false,voie,adrtrain) then AfficheDebug('Présence train '+intToSTR(AdrTrain),clYellow) else if PresTrainPrec(Adr,Nb_cantons_Sig,false,voie,adrtrain) then AfficheDebug('Présence train '+intToSTR(AdrTrain),clYellow) else
@@ -429,7 +435,8 @@ procedure TFormDebug.Button2Click(Sender: TObject);
var Adr,erreur,ancdebug,train : integer ; var Adr,erreur,ancdebug,train : integer ;
reservetraintiers : boolean; reservetraintiers : boolean;
begin begin
Val(EditSigSuiv.Text,Adr,erreur); if erreur<>0 then exit; Val(EditSigSuiv.Text,Adr,erreur);
if (erreur<>0) or (Adr<1) then exit;
ancdebug:=NivDebug; ancdebug:=NivDebug;
NivDebug:=3; NivDebug:=3;
Cond_Carre(Adr); Cond_Carre(Adr);
@@ -454,28 +461,28 @@ procedure TFormDebug.ButtonSimuDet0Click(Sender: TObject);
var det,erreur : integer; var det,erreur : integer;
begin begin
val(EditSimuDet.Text,det,erreur); val(EditSimuDet.Text,det,erreur);
if erreur=0 then Event_Detecteur(det,false,''); if (erreur=0) and (det>0) then Event_Detecteur(det,false,'');
end; end;
procedure TFormDebug.ButtonSimuDet1Click(Sender: TObject); procedure TFormDebug.ButtonSimuDet1Click(Sender: TObject);
var det,erreur : integer; var det,erreur : integer;
begin begin
val(EditSimuDet.Text,det,erreur); val(EditSimuDet.Text,det,erreur);
if erreur=0 then Event_Detecteur(det,true,''); if (erreur=0) and (det>0) then Event_Detecteur(det,true,'');
end; end;
procedure TFormDebug.ButtonSimuAct1Click(Sender: TObject); procedure TFormDebug.ButtonSimuAct1Click(Sender: TObject);
var det,erreur : integer; var det,erreur : integer;
begin begin
val(EditSimuDet.Text,det,erreur); val(EditSimuDet.Text,det,erreur);
if erreur=0 then Event_Act(det,0,1,''); if (erreur=0) and (det>0) then Event_Act(det,0,1,'');
end; end;
procedure TFormDebug.ButtonSimuAct0Click(Sender: TObject); procedure TFormDebug.ButtonSimuAct0Click(Sender: TObject);
var det,erreur : integer; var det,erreur : integer;
begin begin
val(EditSimuDet.Text,det,erreur); val(EditSimuDet.Text,det,erreur);
if erreur=0 then Event_Act(det,0,0,''); if (erreur=0) and (det>0) then Event_Act(det,0,0,'');
end; end;
procedure TFormDebug.ButtonRazToutClick(Sender: TObject); procedure TFormDebug.ButtonRazToutClick(Sender: TObject);
@@ -512,8 +519,10 @@ begin
if (s1='') or (s2='') then exit; if (s1='') or (s2='') then exit;
if s1[1]='A' then begin type1:=aig;delete(s1,1,1);end else type1:=det; if s1[1]='A' then begin type1:=aig;delete(s1,1,1);end else type1:=det;
if s2[1]='A' then begin type2:=aig;delete(s2,1,1);end else type2:=det; if s2[1]='A' then begin type2:=aig;delete(s2,1,1);end else type2:=det;
Val(s1,prec,erreur); if erreur<>0 then exit; Val(s1,prec,erreur);
Val(s2,Actuel,erreur); if erreur<>0 then exit; if (erreur<>0) or (prec<1) then exit;
Val(s2,Actuel,erreur);
if (erreur<>0) or (actuel<1) then exit;
Adr:=suivant_Alg3(prec,type1,actuel,type2,1); Adr:=suivant_Alg3(prec,type1,actuel,type2,1);
if Adr<9995 then if Adr<9995 then
begin begin
+34 -31
View File
@@ -1,10 +1,11 @@
object FormPrinc: TFormPrinc object FormPrinc: TFormPrinc
Left = 114 Left = 27
Top = 237 Top = 202
Width = 1149
Height = 699
Anchors = [akLeft, akTop, akRight] Anchors = [akLeft, akTop, akRight]
BorderStyle = bsSingle
Caption = 'Signaux complexes' Caption = 'Signaux complexes'
ClientHeight = 648
ClientWidth = 1133
Color = clBtnFace Color = clBtnFace
Font.Charset = DEFAULT_CHARSET Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText Font.Color = clWindowText
@@ -13,18 +14,20 @@ object FormPrinc: TFormPrinc
Font.Style = [] Font.Style = []
Menu = MainMenu1 Menu = MainMenu1
OldCreateOrder = False OldCreateOrder = False
Position = poDefault
Scaled = False Scaled = False
Visible = True
OnClose = FormClose OnClose = FormClose
OnCreate = FormCreate OnCreate = FormCreate
OnResize = FormResize OnResize = FormResize
DesignSize = ( DesignSize = (
1141 1133
648) 648)
PixelsPerInch = 96 PixelsPerInch = 96
TextHeight = 13 TextHeight = 13
object LabelTitre: TLabel object LabelTitre: TLabel
Left = 8 Left = 8
Top = 2 Top = 10
Width = 173 Width = 173
Height = 18 Height = 18
Caption = 'Signaux complexes GL' Caption = 'Signaux complexes GL'
@@ -37,7 +40,7 @@ object FormPrinc: TFormPrinc
end end
object Image9feux: TImage object Image9feux: TImage
Left = 1064 Left = 1064
Top = 0 Top = 8
Width = 57 Width = 57
Height = 105 Height = 105
Picture.Data = { Picture.Data = {
@@ -227,7 +230,7 @@ object FormPrinc: TFormPrinc
end end
object Image7feux: TImage object Image7feux: TImage
Left = 440 Left = 440
Top = 0 Top = 8
Width = 57 Width = 57
Height = 105 Height = 105
Picture.Data = { Picture.Data = {
@@ -395,7 +398,7 @@ object FormPrinc: TFormPrinc
end end
object Image5feux: TImage object Image5feux: TImage
Left = 728 Left = 728
Top = -8 Top = 0
Width = 41 Width = 41
Height = 89 Height = 89
Picture.Data = { Picture.Data = {
@@ -495,7 +498,7 @@ object FormPrinc: TFormPrinc
end end
object Image4feux: TImage object Image4feux: TImage
Left = 704 Left = 704
Top = 0 Top = 8
Width = 41 Width = 41
Height = 97 Height = 97
Picture.Data = { Picture.Data = {
@@ -587,7 +590,7 @@ object FormPrinc: TFormPrinc
end end
object Image3feux: TImage object Image3feux: TImage
Left = 600 Left = 600
Top = 8 Top = 16
Width = 33 Width = 33
Height = 57 Height = 57
Picture.Data = { Picture.Data = {
@@ -668,7 +671,7 @@ object FormPrinc: TFormPrinc
end end
object Image2feux: TImage object Image2feux: TImage
Left = 1064 Left = 1064
Top = 104 Top = 112
Width = 33 Width = 33
Height = 57 Height = 57
Picture.Data = { Picture.Data = {
@@ -742,7 +745,7 @@ object FormPrinc: TFormPrinc
end end
object Image2Dir: TImage object Image2Dir: TImage
Left = 656 Left = 656
Top = 0 Top = 8
Width = 41 Width = 41
Height = 25 Height = 25
Picture.Data = { Picture.Data = {
@@ -817,7 +820,7 @@ object FormPrinc: TFormPrinc
end end
object Image3Dir: TImage object Image3Dir: TImage
Left = 848 Left = 848
Top = 0 Top = 8
Width = 49 Width = 49
Height = 25 Height = 25
Picture.Data = { Picture.Data = {
@@ -895,7 +898,7 @@ object FormPrinc: TFormPrinc
end end
object Image4Dir: TImage object Image4Dir: TImage
Left = 792 Left = 792
Top = 0 Top = 8
Width = 57 Width = 57
Height = 25 Height = 25
Picture.Data = { Picture.Data = {
@@ -983,7 +986,7 @@ object FormPrinc: TFormPrinc
end end
object Image5Dir: TImage object Image5Dir: TImage
Left = 880 Left = 880
Top = 0 Top = 8
Width = 65 Width = 65
Height = 25 Height = 25
Picture.Data = { Picture.Data = {
@@ -1081,7 +1084,7 @@ object FormPrinc: TFormPrinc
end end
object Image6Dir: TImage object Image6Dir: TImage
Left = 960 Left = 960
Top = 0 Top = 8
Width = 81 Width = 81
Height = 25 Height = 25
Picture.Data = { Picture.Data = {
@@ -1189,7 +1192,7 @@ object FormPrinc: TFormPrinc
end end
object ImageSignal20: TImage object ImageSignal20: TImage
Left = 1048 Left = 1048
Top = 416 Top = 424
Width = 57 Width = 57
Height = 105 Height = 105
Picture.Data = { Picture.Data = {
@@ -1429,7 +1432,7 @@ object FormPrinc: TFormPrinc
object StatusBar1: TStatusBar object StatusBar1: TStatusBar
Left = 0 Left = 0
Top = 626 Top = 626
Width = 1141 Width = 1133
Height = 22 Height = 22
Panels = < Panels = <
item item
@@ -1457,7 +1460,7 @@ object FormPrinc: TFormPrinc
end end
object MSCommUSBInterface: TMSComm object MSCommUSBInterface: TMSComm
Left = 1064 Left = 1064
Top = 192 Top = 200
Width = 32 Width = 32
Height = 32 Height = 32
OnComm = MSCommUSBInterfaceComm OnComm = MSCommUSBInterfaceComm
@@ -1467,7 +1470,7 @@ object FormPrinc: TFormPrinc
end end
object Button1: TButton object Button1: TButton
Left = 744 Left = 744
Top = 8 Top = 16
Width = 75 Width = 75
Height = 25 Height = 25
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -1478,7 +1481,7 @@ object FormPrinc: TFormPrinc
end end
object GrandPanel: TPanel object GrandPanel: TPanel
Left = 8 Left = 8
Top = 48 Top = 56
Width = 1057 Width = 1057
Height = 476 Height = 476
TabOrder = 3 TabOrder = 3
@@ -1518,7 +1521,7 @@ object FormPrinc: TFormPrinc
OnChange = FenRichChange OnChange = FenRichChange
OnMouseDown = FenRichMouseDown OnMouseDown = FenRichMouseDown
end end
object ScrollBox1: TScrollBox object ScrollBoxSig: TScrollBox
Left = 536 Left = 536
Top = 176 Top = 176
Width = 465 Width = 465
@@ -1532,7 +1535,7 @@ object FormPrinc: TFormPrinc
ParentColor = False ParentColor = False
TabOrder = 1 TabOrder = 1
end end
object GroupBox1: TGroupBox object GroupBoxAcc: TGroupBox
Left = 497 Left = 497
Top = 21 Top = 21
Width = 265 Width = 265
@@ -1589,7 +1592,7 @@ object FormPrinc: TFormPrinc
OnClick = ButtonDevieClick OnClick = ButtonDevieClick
end end
end end
object GroupBox3: TGroupBox object GroupBoxTrains: TGroupBox
Left = 497 Left = 497
Top = 64 Top = 64
Width = 265 Width = 265
@@ -1967,7 +1970,7 @@ object FormPrinc: TFormPrinc
Text = '<1>' Text = '<1>'
end end
object ButtonEnv: TButton object ButtonEnv: TButton
Left = 0 Left = 8
Top = 88 Top = 88
Width = 88 Width = 88
Height = 33 Height = 33
@@ -1978,9 +1981,9 @@ object FormPrinc: TFormPrinc
OnClick = ButtonEnvClick OnClick = ButtonEnvClick
end end
end end
object GroupBox2: TGroupBox object GroupBoxCV: TGroupBox
Left = 721 Left = 481
Top = 56 Top = -8
Width = 265 Width = 265
Height = 129 Height = 129
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -2043,7 +2046,7 @@ object FormPrinc: TFormPrinc
end end
object MSCommCde1: TMSComm object MSCommCde1: TMSComm
Left = 1064 Left = 1064
Top = 272 Top = 280
Width = 32 Width = 32
Height = 32 Height = 32
OnComm = MSCommCde1Comm OnComm = MSCommCde1Comm
@@ -2053,7 +2056,7 @@ object FormPrinc: TFormPrinc
end end
object MSCommCde2: TMSComm object MSCommCde2: TMSComm
Left = 1064 Left = 1064
Top = 304 Top = 312
Width = 32 Width = 32
Height = 32 Height = 32
OnComm = MSCommCde2Comm OnComm = MSCommCde2Comm
+859 -514
View File
File diff suppressed because it is too large. Load diff
+33 -33
View File
@@ -3,7 +3,7 @@ object FormSR: TFormSR
Top = 73 Top = 73
BorderStyle = bsDialog BorderStyle = bsDialog
Caption = 'Configuration du d'#233'codeur du signal St'#233'phane Ravaut' Caption = 'Configuration du d'#233'codeur du signal St'#233'phane Ravaut'
ClientHeight = 562 ClientHeight = 540
ClientWidth = 475 ClientWidth = 475
Color = clBtnFace Color = clBtnFace
Font.Charset = DEFAULT_CHARSET Font.Charset = DEFAULT_CHARSET
@@ -18,21 +18,21 @@ object FormSR: TFormSR
TextHeight = 13 TextHeight = 13
object LabelAdrSR1: TLabel object LabelAdrSR1: TLabel
Left = 24 Left = 24
Top = 64 Top = 72
Width = 63 Width = 63
Height = 13 Height = 13
Caption = 'LabelAdrSR1' Caption = 'LabelAdrSR1'
end end
object Label1: TLabel object Label1: TLabel
Left = 120 Left = 120
Top = 48 Top = 56
Width = 15 Width = 15
Height = 13 Height = 13
Caption = '+ 2' Caption = '+ 2'
end end
object Label2: TLabel object Label2: TLabel
Left = 120 Left = 120
Top = 72 Top = 80
Width = 12 Width = 12
Height = 13 Height = 13
Caption = '- 1' Caption = '- 1'
@@ -78,33 +78,33 @@ object FormSR: TFormSR
end end
object Shape1: TShape object Shape1: TShape
Left = 16 Left = 16
Top = 96 Top = 104
Width = 409 Width = 409
Height = 1 Height = 1
end end
object LabelAdrSR2: TLabel object LabelAdrSR2: TLabel
Left = 24 Left = 24
Top = 120 Top = 128
Width = 63 Width = 63
Height = 13 Height = 13
Caption = 'LabelAdrSR2' Caption = 'LabelAdrSR2'
end end
object Label7: TLabel object Label7: TLabel
Left = 120 Left = 120
Top = 104 Top = 112
Width = 15 Width = 15
Height = 13 Height = 13
Caption = '+ 2' Caption = '+ 2'
end end
object Label8: TLabel object Label8: TLabel
Left = 120 Left = 120
Top = 128 Top = 136
Width = 12 Width = 12
Height = 13 Height = 13
Caption = '- 1' Caption = '- 1'
end end
object Label6: TLabel object Label6: TLabel
Left = 336 Left = 344
Top = 24 Top = 24
Width = 21 Width = 21
Height = 16 Height = 16
@@ -118,56 +118,56 @@ object FormSR: TFormSR
end end
object LabelCV1: TLabel object LabelCV1: TLabel
Left = 320 Left = 320
Top = 48 Top = 56
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV2: TLabel object LabelCV2: TLabel
Left = 384 Left = 384
Top = 48 Top = 56
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV3: TLabel object LabelCV3: TLabel
Left = 320 Left = 320
Top = 72 Top = 80
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV4: TLabel object LabelCV4: TLabel
Left = 384 Left = 384
Top = 72 Top = 80
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV5: TLabel object LabelCV5: TLabel
Left = 320 Left = 320
Top = 110 Top = 118
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV6: TLabel object LabelCV6: TLabel
Left = 384 Left = 384
Top = 110 Top = 118
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV7: TLabel object LabelCV7: TLabel
Left = 320 Left = 320
Top = 134 Top = 142
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV8: TLabel object LabelCV8: TLabel
Left = 384 Left = 384
Top = 134 Top = 142
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
@@ -449,55 +449,55 @@ object FormSR: TFormSR
end end
object Shape7: TShape object Shape7: TShape
Left = 16 Left = 16
Top = 448 Top = 440
Width = 409 Width = 409
Height = 1 Height = 1
end end
object LabelAdrSR8: TLabel object LabelAdrSR8: TLabel
Left = 24 Left = 24
Top = 472 Top = 464
Width = 63 Width = 63
Height = 13 Height = 13
Caption = 'LabelAdrSR2' Caption = 'LabelAdrSR2'
end end
object Label20: TLabel object Label20: TLabel
Left = 120 Left = 120
Top = 456 Top = 448
Width = 15 Width = 15
Height = 13 Height = 13
Caption = '+ 2' Caption = '+ 2'
end end
object Label21: TLabel object Label21: TLabel
Left = 120 Left = 120
Top = 480 Top = 472
Width = 12 Width = 12
Height = 13 Height = 13
Caption = '- 1' Caption = '- 1'
end end
object LabelCV29: TLabel object LabelCV29: TLabel
Left = 320 Left = 320
Top = 460 Top = 452
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV30: TLabel object LabelCV30: TLabel
Left = 384 Left = 384
Top = 460 Top = 452
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV31: TLabel object LabelCV31: TLabel
Left = 320 Left = 320
Top = 484 Top = 476
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
end end
object LabelCV32: TLabel object LabelCV32: TLabel
Left = 384 Left = 384
Top = 484 Top = 476
Width = 20 Width = 20
Height = 13 Height = 13
Caption = 'CV=' Caption = 'CV='
@@ -511,7 +511,7 @@ object FormSR: TFormSR
end end
object ComboBoxAdr1: TComboBox object ComboBoxAdr1: TComboBox
Left = 160 Left = 160
Top = 48 Top = 56
Width = 145 Width = 145
Height = 21 Height = 21
Style = csDropDownList Style = csDropDownList
@@ -521,7 +521,7 @@ object FormSR: TFormSR
end end
object ComboBoxAdr2: TComboBox object ComboBoxAdr2: TComboBox
Left = 160 Left = 160
Top = 72 Top = 80
Width = 145 Width = 145
Height = 21 Height = 21
Style = csDropDownList Style = csDropDownList
@@ -531,7 +531,7 @@ object FormSR: TFormSR
end end
object ComboBoxAdr3: TComboBox object ComboBoxAdr3: TComboBox
Left = 160 Left = 160
Top = 104 Top = 112
Width = 145 Width = 145
Height = 21 Height = 21
Style = csDropDownList Style = csDropDownList
@@ -541,7 +541,7 @@ object FormSR: TFormSR
end end
object ComboBoxAdr4: TComboBox object ComboBoxAdr4: TComboBox
Left = 160 Left = 160
Top = 128 Top = 136
Width = 145 Width = 145
Height = 21 Height = 21
Style = csDropDownList Style = csDropDownList
@@ -651,7 +651,7 @@ object FormSR: TFormSR
end end
object ComboBoxAdr15: TComboBox object ComboBoxAdr15: TComboBox
Left = 160 Left = 160
Top = 456 Top = 448
Width = 145 Width = 145
Height = 21 Height = 21
Style = csDropDownList Style = csDropDownList
@@ -661,7 +661,7 @@ object FormSR: TFormSR
end end
object ComboBoxAdr16: TComboBox object ComboBoxAdr16: TComboBox
Left = 160 Left = 160
Top = 480 Top = 472
Width = 145 Width = 145
Height = 21 Height = 21
Style = csDropDownList Style = csDropDownList
@@ -670,8 +670,8 @@ object FormSR: TFormSR
OnChange = ComboBoxAdr16Change OnChange = ComboBoxAdr16Change
end end
object BitBtnok: TBitBtn object BitBtnok: TBitBtn
Left = 16 Left = 24
Top = 520 Top = 504
Width = 75 Width = 75
Height = 25 Height = 25
TabOrder = 16 TabOrder = 16
+40 -52
View File
@@ -1,8 +1,8 @@
object FormTCO: TFormTCO object FormTCO: TFormTCO
Left = 73 Left = 114
Top = 79 Top = 116
Width = 1212 Width = 1218
Height = 661 Height = 594
VertScrollBar.Visible = False VertScrollBar.Visible = False
Caption = 'c' Caption = 'c'
Color = clBtnFace Color = clBtnFace
@@ -24,13 +24,13 @@ object FormTCO: TFormTCO
OnKeyPress = FormKeyPress OnKeyPress = FormKeyPress
OnMouseWheel = FormMouseWheel OnMouseWheel = FormMouseWheel
DesignSize = ( DesignSize = (
1196 1210
602) 543)
PixelsPerInch = 96 PixelsPerInch = 96
TextHeight = 13 TextHeight = 13
object LabelZoom: TLabel object LabelZoom: TLabel
Left = 1167 Left = 1168
Top = 3 Top = 0
Width = 32 Width = 32
Height = 13 Height = 13
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -43,24 +43,24 @@ object FormTCO: TFormTCO
ParentFont = False ParentFont = False
end end
object ImageTemp: TImage object ImageTemp: TImage
Left = 1020 Left = 1021
Top = 3 Top = 0
Width = 121 Width = 121
Height = 121 Height = 121
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
end end
object ImageTemp2: TImage object ImageTemp2: TImage
Left = 1019 Left = 1020
Top = 132 Top = 129
Width = 121 Width = 121
Height = 121 Height = 121
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
end end
object ScrollBox: TScrollBox object ScrollBox: TScrollBox
Left = 10 Left = 8
Top = 15 Top = 12
Width = 687 Width = 690
Height = 410 Height = 347
HorzScrollBar.Smooth = True HorzScrollBar.Smooth = True
HorzScrollBar.Tracking = True HorzScrollBar.Tracking = True
VertScrollBar.Smooth = True VertScrollBar.Smooth = True
@@ -71,13 +71,13 @@ object FormTCO: TFormTCO
ParentColor = False ParentColor = False
TabOrder = 1 TabOrder = 1
DesignSize = ( DesignSize = (
683 686
406) 343)
object ImageTCO: TImage object ImageTCO: TImage
Left = 120 Left = 120
Top = 41 Top = 41
Width = 486 Width = 489
Height = 320 Height = 257
Anchors = [akLeft, akTop, akRight, akBottom] Anchors = [akLeft, akTop, akRight, akBottom]
AutoSize = True AutoSize = True
ParentShowHint = False ParentShowHint = False
@@ -91,8 +91,8 @@ object FormTCO: TFormTCO
end end
end end
object TrackBarZoom: TTrackBar object TrackBarZoom: TTrackBar
Left = 1157 Left = 1166
Top = 18 Top = 15
Width = 41 Width = 41
Height = 311 Height = 311
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
@@ -108,9 +108,9 @@ object FormTCO: TFormTCO
OnChange = TrackBarZoomChange OnChange = TrackBarZoomChange
end end
object PanelBas: TPanel object PanelBas: TPanel
Left = 2 Left = 0
Top = 461 Top = 395
Width = 1199 Width = 1202
Height = 140 Height = 140
Anchors = [akLeft, akRight, akBottom] Anchors = [akLeft, akRight, akBottom]
Color = clActiveBorder Color = clActiveBorder
@@ -123,7 +123,7 @@ object FormTCO: TFormTCO
TabOrder = 2 TabOrder = 2
OnDragOver = PanelBasDragOver OnDragOver = PanelBasDragOver
DesignSize = ( DesignSize = (
1199 1202
140) 140)
object Label1: TLabel object Label1: TLabel
Left = 240 Left = 240
@@ -906,7 +906,7 @@ object FormTCO: TFormTCO
ParentFont = False ParentFont = False
end end
object ButtonSauveTCO: TButton object ButtonSauveTCO: TButton
Left = 1090 Left = 1093
Top = 8 Top = 8
Width = 96 Width = 96
Height = 33 Height = 33
@@ -918,7 +918,7 @@ object FormTCO: TFormTCO
OnClick = ButtonSauveTCOClick OnClick = ButtonSauveTCOClick
end end
object ButtonConfigTCO: TButton object ButtonConfigTCO: TButton
Left = 1090 Left = 1093
Top = 48 Top = 48
Width = 96 Width = 96
Height = 33 Height = 33
@@ -929,7 +929,7 @@ object FormTCO: TFormTCO
OnClick = ButtonConfigTCOClick OnClick = ButtonConfigTCOClick
end end
object ButtonSimu: TButton object ButtonSimu: TButton
Left = 878 Left = 881
Top = 80 Top = 80
Width = 113 Width = 113
Height = 25 Height = 25
@@ -939,18 +939,6 @@ object FormTCO: TFormTCO
TabStop = False TabStop = False
OnClick = ButtonSimuClick OnClick = ButtonSimuClick
end end
object ButtonMasquer: TButton
Left = 1090
Top = 88
Width = 96
Height = 33
Anchors = [akTop, akRight]
Caption = 'Masquer bandeau'
TabOrder = 3
TabStop = False
WordWrap = True
OnClick = ButtonMasquerClick
end
object GroupBox1: TGroupBox object GroupBox1: TGroupBox
Left = 8 Left = 8
Top = 3 Top = 3
@@ -963,7 +951,7 @@ object FormTCO: TFormTCO
Font.Name = 'Arial Narrow' Font.Name = 'Arial Narrow'
Font.Style = [] Font.Style = []
ParentFont = False ParentFont = False
TabOrder = 4 TabOrder = 3
object Label41: TLabel object Label41: TLabel
Left = 72 Left = 72
Top = 18 Top = 18
@@ -1134,30 +1122,30 @@ object FormTCO: TFormTCO
end end
end end
object buttonRaz: TButton object buttonRaz: TButton
Left = 987 Left = 1094
Top = 88 Top = 88
Width = 97 Width = 97
Height = 33 Height = 33
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
Caption = 'Raz des occupations' Caption = 'Raz des occupations'
TabOrder = 5 TabOrder = 4
TabStop = False TabStop = False
WordWrap = True WordWrap = True
OnClick = buttonRazClick OnClick = buttonRazClick
end end
object ButtonCalibrage: TButton object ButtonCalibrage: TButton
Left = 918 Left = 921
Top = 56 Top = 56
Width = 75 Width = 75
Height = 25 Height = 25
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
Caption = 'Calibrage' Caption = 'Calibrage'
TabOrder = 6 TabOrder = 5
TabStop = False TabStop = False
OnClick = ButtonCalibrageClick OnClick = ButtonCalibrageClick
end end
object ButtonDessiner: TButton object ButtonDessiner: TButton
Left = 987 Left = 990
Top = 48 Top = 48
Width = 97 Width = 97
Height = 33 Height = 33
@@ -1168,24 +1156,24 @@ object FormTCO: TFormTCO
Caption = 'Dessiner le TCO' Caption = 'Dessiner le TCO'
ParentShowHint = False ParentShowHint = False
ShowHint = True ShowHint = True
TabOrder = 7 TabOrder = 6
TabStop = False TabStop = False
OnClick = ButtonDessinerClick OnClick = ButtonDessinerClick
end end
object ButtonAffSC: TButton object ButtonAffSC: TButton
Left = 987 Left = 990
Top = 8 Top = 8
Width = 97 Width = 97
Height = 33 Height = 33
Anchors = [akTop, akRight] Anchors = [akTop, akRight]
Caption = 'Afficher Signaux Complexes' Caption = 'Afficher Signaux Complexes'
TabOrder = 8 TabOrder = 7
TabStop = False TabStop = False
WordWrap = True WordWrap = True
OnClick = ButtonAffSCClick OnClick = ButtonAffSCClick
end end
object RadioGroupSel: TRadioGroup object RadioGroupSel: TRadioGroup
Left = 839 Left = 842
Top = 8 Top = 8
Width = 138 Width = 138
Height = 49 Height = 49
@@ -1200,7 +1188,7 @@ object FormTCO: TFormTCO
'Cellules s'#233'lectionn'#233'es' 'Cellules s'#233'lectionn'#233'es'
'fen'#234'tre d'#233'pla'#231'able') 'fen'#234'tre d'#233'pla'#231'able')
ParentFont = False ParentFont = False
TabOrder = 9 TabOrder = 8
OnClick = RadioGroupSelClick OnClick = RadioGroupSelClick
end end
end end
+400 -959
View File
File diff suppressed because it is too large. Load diff
+36 -14
View File
@@ -239,7 +239,11 @@ procedure TFormPlace.Edit1Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(edit1.Text,i,erreur); val(edit1.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then
begin
LabelTexte.caption:='Erreur détecteur 1';
exit;
end;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -254,7 +258,11 @@ procedure TFormPlace.Edit2Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(edit2.Text,i,erreur); val(edit2.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then
begin
LabelTexte.caption:='Erreur détecteur 2';
exit;
end;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -269,7 +277,11 @@ procedure TFormPlace.Edit3Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(edit3.Text,i,erreur); val(edit3.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then
begin
LabelTexte.caption:='Erreur détecteur 3';
exit;
end;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -284,7 +296,11 @@ procedure TFormPlace.Edit4Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(edit4.Text,i,erreur); val(edit4.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then
begin
LabelTexte.caption:='Erreur détecteur 4';
exit;
end;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -299,7 +315,11 @@ procedure TFormPlace.Edit5Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(edit5.Text,i,erreur); val(edit5.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then
begin
LabelTexte.caption:='Erreur détecteur 5';
exit;
end;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -314,7 +334,11 @@ procedure TFormPlace.Edit6Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(edit6.Text,i,erreur); val(edit6.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then
begin
LabelTexte.caption:='Erreur détecteur 6';
exit;
end;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -449,7 +473,7 @@ procedure TFormPlace.EditDir1Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(editDir1.Text,i,erreur); val(editDir1.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then exit;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -463,7 +487,7 @@ procedure TFormPlace.EditDir2Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(editDir2.Text,i,erreur); val(editDir2.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then exit;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -477,7 +501,7 @@ procedure TFormPlace.EditDir3Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(editDir3.Text,i,erreur); val(editDir3.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then exit;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -487,13 +511,11 @@ begin
placement[3].detdir:=i; placement[3].detdir:=i;
end; end;
procedure TFormPlace.EditDir4Change(Sender: TObject); procedure TFormPlace.EditDir4Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(editDir4.Text,i,erreur); val(editDir4.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then exit;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -507,7 +529,7 @@ procedure TFormPlace.EditDir5Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(editDir5.Text,i,erreur); val(editDir5.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then exit;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
@@ -521,7 +543,7 @@ procedure TFormPlace.EditDir6Change(Sender: TObject);
var i,erreur : integer; var i,erreur : integer;
begin begin
val(editDir6.Text,i,erreur); val(editDir6.Text,i,erreur);
if erreur<>0 then exit; if (erreur<>0) or (i<0) then exit;
if index_adresse_detecteur(i)=0 then if index_adresse_detecteur(i)=0 then
begin begin
LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant'; LabelTexte.caption:='Détecteur '+intToSTR(i)+' inexistant';
+1 -1
View File
@@ -25,7 +25,7 @@ var
verifVersion,notificationVersion,essai : boolean; verifVersion,notificationVersion,essai : boolean;
chemin_Dest,chemin_src,date_creation,nombre_tel : string; chemin_Dest,chemin_src,date_creation,nombre_tel : string;
Const Version='8.43'; // sert à la comparaison de la version publiée Const Version='8.5'; // sert à la comparaison de la version publiée
SousVersion=' '; // A B C ... en cas d'absence de sous version mettre un espace SousVersion=' '; // A B C ... en cas d'absence de sous version mettre un espace
// pour unzip // pour unzip
SHCONTCH_NOPROGRESSBOX = 4; SHCONTCH_NOPROGRESSBOX = 4;
+10
View File
@@ -233,5 +233,15 @@ version 8.41 : Am
version 8.42 : Création d'un onglet de paramètres avancés. version 8.42 : Création d'un onglet de paramètres avancés.
Fichier d'aide affichable depuis le menu. Fichier d'aide affichable depuis le menu.
version 8.43 : Correction d'un bug sur l'importation des détecteurs depuis CDM rail. version 8.43 : Correction d'un bug sur l'importation des détecteurs depuis CDM rail.
version 8.44 : Gestion de la centrale Z21 en mode autonome en Xpressnet.
Amélioration des réservations des aiguillages.
Amélioration affichages des trajets dans les TCOs.
Amélioration des réceptions des trames XpressNet.
Ajout d'une action "arrêt des trains" pour les TCOs