Last change
on this file was 192, checked in by chronos, 6 years ago |
- Modified: Apply interface language to all forms.
|
File size:
885 bytes
|
Line | |
---|
1 | program generator;
|
---|
2 |
|
---|
3 | {$mode objfpc}{$H+}
|
---|
4 |
|
---|
5 | uses
|
---|
6 | {$IFDEF UNIX}{$IFDEF UseCThreads}
|
---|
7 | cthreads,
|
---|
8 | {$ENDIF}{$ENDIF}
|
---|
9 | Interfaces, // this includes the LCL widgetset
|
---|
10 | Forms, UCore, Common, UFormMain, SysUtils, UBuilder, CoolTranslator,
|
---|
11 | UFormRules, UFormLookupTables, UFormLookupTable, UFormSettings
|
---|
12 | { you can add units after this };
|
---|
13 |
|
---|
14 | {$R *.res}
|
---|
15 |
|
---|
16 | {$IFDEF DEBUG}
|
---|
17 | const
|
---|
18 | HeapTraceLog = 'heaptrclog.trc';
|
---|
19 | {$ENDIF}
|
---|
20 |
|
---|
21 | begin
|
---|
22 | {$IFDEF DEBUG}
|
---|
23 | // Heap trace
|
---|
24 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
---|
25 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
---|
26 | {$ENDIF}
|
---|
27 |
|
---|
28 | Application.Scaled:=True;
|
---|
29 | Application.Title:='Language generator';
|
---|
30 | RequireDerivedFormResource := True;
|
---|
31 | Application.Initialize;
|
---|
32 | Application.CreateForm(TCore, Core);
|
---|
33 | Application.CreateForm(TFormMain, FormMain);
|
---|
34 | Application.CreateForm(TFormRules, FormRules);
|
---|
35 | Application.Run;
|
---|
36 | end.
|
---|
37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.