root / EvaPig2020.dpr @ 11
Historique | Voir | Annoter | Télécharger (2,72 ko)
1 | 1 | avalancogn | program EvaPig2020;
|
---|---|---|---|
2 | |||
3 | {$STRINGCHECKS OFF}
|
||
4 | {$WARN SYMBOL_PLATFORM OFF}
|
||
5 | |||
6 | uses
|
||
7 | gnugettext in '..\gnugettext.pas', |
||
8 | gginit in '..\gginit.pas', |
||
9 | SQLite3 in '..\SQLite3.pas', |
||
10 | SQLiteTable3 in '..\SQLiteTable3.pas', |
||
11 | Windows, |
||
12 | Forms, |
||
13 | Graphics, |
||
14 | SysUtils, |
||
15 | HTMLHelpViewer, |
||
16 | UnitDeclaration in 'UnitDeclaration.pas' {DataModuleDeclaration: TDataModule}, |
||
17 | UnitMain in 'UnitMain.pas' {FormMain: TForm}, |
||
18 | UnitOptions in 'UnitOptions.pas' {FormOptions: TForm}, |
||
19 | UnitIngredientsList in 'UnitIngredientsList.pas' {FormIngredientsList: TForm}, |
||
20 | UnitIngredientDetail in 'UnitIngredientDetail.pas' {FormIngredientDetail: TForm}, |
||
21 | UnitIngredientEditionCopy in 'UnitIngredientEditionCopy.pas' {FormIngredientEditionCopy: TForm}, |
||
22 | UnitIngredientEditionOriginal in 'UnitIngredientEditionOriginal.pas' {FormIngredientEditionOriginal: TForm}, |
||
23 | UnitIngredientCreation in 'UnitIngredientCreation.pas' {FormIngredientCreation: TForm}, |
||
24 | UnitFeedsList in 'UnitFeedsList.pas' {FormFeedsList: TForm}, |
||
25 | UnitFeedDetail in 'UnitFeedDetail.pas' {FormFeedDetail: TForm}, |
||
26 | UnitFeedEdition in 'UnitFeedEdition.pas' {FormFeedEdition: TForm}, |
||
27 | UnitFeedCreation in 'UnitFeedCreation.pas' {FormFeedCreation: TForm}, |
||
28 | UnitFeedCharts in 'UnitFeedCharts.pas' {FormFeedCharts: TForm}, |
||
29 | UnitFeedsCharts in 'UnitFeedsCharts.pas' {FormFeedsCharts: TForm}, |
||
30 | UnitRename in 'UnitRename.pas' {FormRename: TForm}, |
||
31 | UnitComment in 'UnitComment.pas' {FormComment: TForm}, |
||
32 | UnitPredictionCreate in 'UnitPredictionCreate.pas' {FormPredictionCreate: TForm}, |
||
33 | UnitPredictionDetail in 'UnitPredictionDetail.pas' {FormPredictionDetail: TForm}, |
||
34 | UnitChartVReport in 'UnitChartVReport.pas' {FormChartVReport: TFrame}, |
||
35 | UnitChartHReport in 'UnitChartHReport.pas' {FormChartHReport: TForm}; |
||
36 | |||
37 | {$R *.res}
|
||
38 | |||
39 | begin
|
||
40 | Application.Title := 'EvaPig2020';
|
||
41 | CreateMutex(nil, False, PChar(Application.Title));
|
||
42 | if GetLastError = ERROR_ALREADY_EXISTS
|
||
43 | then // L'application est d?j? lanc?e : mise au premier plan |
||
44 | begin
|
||
45 | SendMessage(HWND_BROADCAST, RegisterWindowMessage(PChar(Application.Title)), 0, 0); |
||
46 | Application.Terminate; |
||
47 | Application.ProcessMessages; |
||
48 | Exit; |
||
49 | end;
|
||
50 | ReportMemoryLeaksOnShutdown := DebugHook <> 0;
|
||
51 | if Screen.Fonts.IndexOf('Arial Unicode MS') <> -1 |
||
52 | then
|
||
53 | begin
|
||
54 | DefFontData.Name := 'Arial Unicode MS';
|
||
55 | Screen.HintFont.Name := 'Arial Unicode MS';
|
||
56 | end;
|
||
57 | Application.Initialize; |
||
58 | DataModuleDeclaration := TDataModuleDeclaration.Create(nil);
|
||
59 | Application.ProcessMessages; |
||
60 | if Application.Terminated then Exit; |
||
61 | try
|
||
62 | Application.CreateForm(TFormMain, FormMain); |
||
63 | Application.HelpFile := ChangeFileExt(Application.ExeName, '.chm');
|
||
64 | Application.Run; |
||
65 | finally
|
||
66 | DataModuleDeclaration.Free; |
||
67 | end;
|
||
68 | end. |