| 1 | program chronis;
|
|---|
| 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, UPersistentForm, UTreeState, SysUtils, UFormItemView, UFormItemEdit,
|
|---|
| 11 | UFormLogin, UFormMain, UFormItemAdd, TemplateGenerics, CoolTranslator, Common,
|
|---|
| 12 | CoolWeb, USystem, UCore, UApplicationInfo, UFormSetting, UFormImportStructure,
|
|---|
| 13 | UFormItemSelect, UFormLoginProfile, UFormAbout, UChronisModule, UDataTypes,
|
|---|
| 14 | UModuleSystem, UFormItemList, LDockTree, URemote, UModuleUser, UFormMenu
|
|---|
| 15 | { you can add units after this };
|
|---|
| 16 |
|
|---|
| 17 | {$R *.res}
|
|---|
| 18 |
|
|---|
| 19 | {$IFDEF DEBUG}
|
|---|
| 20 | const
|
|---|
| 21 | HeapTraceLog = 'heaptrclog.trc';
|
|---|
| 22 | {$ENDIF}
|
|---|
| 23 |
|
|---|
| 24 | begin
|
|---|
| 25 | Application.Title := 'ChronIS';
|
|---|
| 26 | {$IFDEF DEBUG}
|
|---|
| 27 | // Heap trace
|
|---|
| 28 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 29 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 30 | {$ENDIF}
|
|---|
| 31 |
|
|---|
| 32 | Application.Initialize;
|
|---|
| 33 | Application.CreateForm(TCore, Core);
|
|---|
| 34 | Application.CreateForm(TMainForm, MainForm);
|
|---|
| 35 | Application.CreateForm(TFormMenu, FormMenu);
|
|---|
| 36 | Application.Run;
|
|---|
| 37 | end.
|
|---|
| 38 |
|
|---|