root / InraPorc.dpr
Historique | Voir | Annoter | Télécharger (4,965 ko)
1 | 1 | avalancogn | program InraPorc;
|
---|---|---|---|
2 | |||
3 | {$STRINGCHECKS OFF}
|
||
4 | {$WARN SYMBOL_PLATFORM OFF}
|
||
5 | |||
6 | uses
|
||
7 | gnugettext in '..\gnugettext.pas', |
||
8 | gginit in '..\gginit.pas', |
||
9 | Windows, |
||
10 | Forms, |
||
11 | Graphics, |
||
12 | Registry, |
||
13 | HTMLHelpViewer, |
||
14 | UVariables in 'UVariables.pas', |
||
15 | UInit in 'UInit.pas', |
||
16 | UUtil in 'UUtil.pas', |
||
17 | UCalcul in 'UCalcul.pas', |
||
18 | UStrings in 'UStrings.pas', |
||
19 | UFindRec in 'UFindRec.pas', |
||
20 | UEchelle in 'UEchelle.pas', |
||
21 | UFLoader in 'UFLoader.pas' {FLoader}, |
||
22 | UFIntro in 'UFIntro.pas' {FIntro}, |
||
23 | UFPrevGraph in 'UFPrevGraph.pas' {FPrevGraph}, |
||
24 | UFPrevRap in 'UFPrevRap.pas' {FPrevRap}, |
||
25 | UFWarning in 'UFWarning.pas' {FWarning}, |
||
26 | UFMenu in 'UFMenu.pas' {FMenu}, |
||
27 | UFLicense in 'UFLicense.pas' {FLicense}, |
||
28 | UFConfig in 'UFConfig.pas' {FConfig}, |
||
29 | UFUserEquation in 'UFUserEquation.pas' {FUserEquation: TTntForm}, |
||
30 | UFComment in 'UFComment.pas' {FComment}, |
||
31 | UFCommentMat in 'UFCommentMat.pas' {FCommentMat}, |
||
32 | UFCommentAli in 'UFCommentAli.pas' {FCommentAli}, |
||
33 | UFMatiere in 'UFMatiere.pas' {FMatiere}, |
||
34 | UFRapportMat in 'UFRapportMat.pas' {FRapportMat}, |
||
35 | UFRapMatElem in 'UFRapMatElem.pas' {FRapMatElem}, |
||
36 | UFRapMatAA in 'UFRapMatAA.pas' {FRapMatAA}, |
||
37 | UFRapMatAG in 'UFRapMatAG.pas' {FRapMatAG}, |
||
38 | UFRapMatMin in 'UFRapMatMin.pas' {FRapMatMin}, |
||
39 | UFAliment in 'UFAliment.pas' {FAliment}, |
||
40 | UFRapportAli in 'UFRapportAli.pas' {FRapportAli}, |
||
41 | UFRapAliElem in 'UFRapAliElem.pas' {FRapAliElem}, |
||
42 | UFRapAliAA in 'UFRapAliAA.pas' {FRapAliAA}, |
||
43 | UFRapAliAG in 'UFRapAliAG.pas' {FRapAliAG}, |
||
44 | UFRapAliMin in 'UFRapAliMin.pas' {FRapAliMin}, |
||
45 | UFRapAliMat in 'UFRapAliMat.pas' {FRapAliMat}, |
||
46 | UFGraphAli in 'UFGraphAli.pas' {FGraphAli}, |
||
47 | UFTarif in 'UFTarif.pas' {FTarif}, |
||
48 | UFImpExp in 'UFImpExp.pas' {FImpExp}, |
||
49 | UFSeqAliT in 'UFSeqAliT.pas' {FSeqAliT}, |
||
50 | UFRapSeqAliT in 'UFRapSeqAliT.pas' {FRapSeqAliT}, |
||
51 | UFRationT in 'UFRationT.pas' {FRationT}, |
||
52 | UFRapRationT in 'UFRapRationT.pas' {FRapRationT}, |
||
53 | UFLogeT in 'UFLogeT.pas' {FLogeT}, |
||
54 | UFRapLogeT in 'UFRapLogeT.pas' {FRapLogeT}, |
||
55 | UFProfilT in 'UFProfilT.pas' {FProfilT}, |
||
56 | UFRapProfilT in 'UFRapProfilT.pas' {FRapProfilT}, |
||
57 | UFCalibrage in 'UFCalibrage.pas' {FCalibrage}, |
||
58 | UFSimulT in 'UFSimulT.pas' {FSimulT}, |
||
59 | UCalcSimulT in 'UCalcSimulT.pas', |
||
60 | UFResSimulT in 'UFResSimulT.pas' {FResSimulT}, |
||
61 | UFRapSimulT in 'UFRapSimulT.pas' {FRapSimulT}, |
||
62 | UFCompSimulT in 'UFCompSimulT.pas' {FCompSimulT}, |
||
63 | UFBesGestT in 'UFBesGestT.pas' {FBesGestT}, |
||
64 | UFResBesGestT in 'UFResBesGestT.pas' {FResBesGestT}, |
||
65 | UFRapBesGestT in 'UFRapBesGestT.pas' {FRapBesGestT}, |
||
66 | UFBesGestE in 'UFBesGestE.pas' {FBesGestE}, |
||
67 | UFResBesGestE in 'UFResBesGestE.pas' {FResBesGestE}, |
||
68 | UFRapBesGestE in 'UFRapBesGestE.pas' {FRapBesGestE}, |
||
69 | UFBesLactT in 'UFBesLactT.pas' {FBesLactT}, |
||
70 | UFResBesLactT in 'UFResBesLactT.pas' {FResBesLactT}, |
||
71 | UFRapBesLactT in 'UFRapBesLactT.pas' {FRapBesLactT}, |
||
72 | UFBesLactE in 'UFBesLactE.pas' {FBesLactE}, |
||
73 | UFResBesLactE in 'UFResBesLactE.pas' {FResBesLactE}, |
||
74 | UFRapBesLactE in 'UFRapBesLactE.pas' {FRapBesLactE}, |
||
75 | UFSeqAliP in 'UFSeqAliP.pas' {FSeqAliP}, |
||
76 | UFRapSeqAliP in 'UFRapSeqAliP.pas' {FRapSeqAliP}, |
||
77 | UFRationP in 'UFRationP.pas' {FRationP}, |
||
78 | UFRapRationP in 'UFRapRationP.pas' {FRapRationP}, |
||
79 | UFProfilP in 'UFProfilP.pas' {FProfilP}, |
||
80 | UFRapProfilP in 'UFRapProfilP.pas' {FRapProfilP}, |
||
81 | UFGraph3D in 'UFGraph3D.pas' {FGraph3D}, |
||
82 | UFCalibrProfilP in 'UFCalibrProfilP.pas' {FCalibrProfilP: TTntForm}, |
||
83 | UFObservProfilP in 'UFObservProfilP.pas' {FObservProfilP: TTntForm}, |
||
84 | UFSimulP in 'UFSimulP.pas' {FSimulP}, |
||
85 | UCalcSimulP in 'UCalcSimulP.pas', |
||
86 | UFResSimulP in 'UFResSimulP.pas' {FResSimulP}, |
||
87 | UFRapSimulP in 'UFRapSimulP.pas' {FRapSimulP}, |
||
88 | UFCompSimulP in 'UFCompSimulP.pas' {FCompSimulP}, |
||
89 | UFRapCompSimulP in 'UFRapCompSimulP.pas' {FRapCompSimulP}, |
||
90 | UFRapSensSimulP in 'UFRapSensSimulP.pas' {FRapSensSimulP}, |
||
91 | UFAbout in 'UFAbout.pas' {FAbout}, |
||
92 | UFError in 'UFError.pas' {FError}; |
||
93 | |||
94 | {$R *.RES}
|
||
95 | {$R 'Resources\Resources.res' 'Resources\Resources.rc'}
|
||
96 | |||
97 | begin
|
||
98 | CreateMutex(nil, False, 'InraPorc'); |
||
99 | if GetLastError = ERROR_ALREADY_EXISTS
|
||
100 | then // L'application est d?j? lanc?e : mise au premier plan |
||
101 | begin
|
||
102 | SendMessage(HWND_BROADCAST, RegisterWindowMessage('InraPorc'), 0, 0); |
||
103 | Application.Terminate; |
||
104 | Application.ProcessMessages; |
||
105 | Exit; |
||
106 | end;
|
||
107 | ReportMemoryLeaksOnShutdown := DebugHook <> 0;
|
||
108 | if Screen.Fonts.IndexOf('Arial Unicode MS') <> -1 |
||
109 | then
|
||
110 | begin
|
||
111 | DefFontData.Name := 'Arial Unicode MS';
|
||
112 | Screen.HintFont.Name := 'Arial Unicode MS';
|
||
113 | end;
|
||
114 | Application.Initialize; |
||
115 | Reg := TRegistry.Create; |
||
116 | Reg.RootKey := HKEY_CURRENT_USER; |
||
117 | LanguageCode := BdRReadString('\Software\InraPorc\Config\International', 'LanguageCode', DefaultInstance.GetCurrentLanguage); |
||
118 | // Loader
|
||
119 | with TFLoader.Create(nil) do |
||
120 | try
|
||
121 | Show; |
||
122 | Update; |
||
123 | Init; |
||
124 | finally
|
||
125 | Free; |
||
126 | end;
|
||
127 | Application.ProcessMessages; |
||
128 | if not Application.Terminated |
||
129 | then
|
||
130 | begin
|
||
131 | Application.CreateForm(TFMenu, FMenu); |
||
132 | Application.Run; |
||
133 | end;
|
||
134 | Reg.Free; |
||
135 | end. |