source: tags/1.0.0/vCardStudio.lpr

Last change on this file was 23, checked in by chronos, 3 years ago
  • Added: Snap package definition file.
  • Fixed: Selected theme in settings also changed language.
  • Modified: Load correctly language files if installed on Linux.
File size: 807 bytes
Line 
1program vCardStudio;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}
7 cthreads, clocale,
8 {$ENDIF}
9 Interfaces, // this includes the LCL widgetset
10 Forms, UFormMain, UCore, Common, UDataFile,
11 SysUtils, UFormContacts, UFormContact, UFormFindDuplicity, UFormGenerate
12 { you can add units after this };
13
14{$R *.res}
15
16{$if declared(UseHeapTrace)}
17const
18 HeapTraceLog = 'heaptrclog.trc';
19{$ENDIF}
20
21begin
22 Application.Scaled:=True;
23 Application.Title:='vCard Studio';
24 {$if declared(UseHeapTrace)}
25 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
26 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
27 {$ENDIF}
28 RequireDerivedFormResource:=True;
29 Application.Initialize;
30 Application.CreateForm(TFormMain, FormMain);
31 Application.CreateForm(TCore, Core);
32 Application.Run;
33end.
34
Note: See TracBrowser for help on using the repository browser.