forked from oulan/Asuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ASuite.dpr
98 lines (90 loc) · 3.78 KB
/
ASuite.dpr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
program ASuite;
uses
Forms,
SysUtils,
Windows,
ulCommonUtils in 'library\ulCommonUtils.pas',
ulCommonClasses in 'library\ulCommonClasses.pas',
AppConfig in 'AppConfig.pas',
ulAppConfig in 'library\ulAppConfig.pas',
Main in 'Main.pas' {frmMain},
About in 'About.pas' {frmAbout},
CheckPrevious in '3p\CheckPrevious.pas',
ulNodeDataTypes in 'library\ulNodeDataTypes.pas',
ulEnumerations in 'library\ulEnumerations.pas',
ulSysUtils in 'library\ulSysUtils.pas',
ulStringUtils in 'library\ulStringUtils.pas',
udImages in 'udImages.pas' {ImagesDM: TDataModule},
ulDatabase in 'library\ulDatabase.pas',
udClassicMenu in 'udClassicMenu.pas' {ClassicMenu: TDataModule},
ulExeUtils in 'library\ulExeUtils.pas',
ImportList in 'ImportList.pas' {frmImportList},
Sensor in 'Sensor.pas' {frmSensor},
ASuiteForm in 'library\ASuiteForm.pas',
ulTreeView in 'library\ulTreeView.pas',
SynSQLite3Static,
GraphicMenu in 'GraphicMenu.pas' {frmGraphicMenu},
notifications in '3p\notifications.pas' {frmNotification},
ulFileFolder in 'library\ulFileFolder.pas',
Options in 'Options.pas' {frmOptions},
BaseEntityPage in 'frame\BaseEntityPage.pas' {frmBaseEntityPage: TFrame},
GeneralOptionsPage in 'frame\GeneralOptionsPage.pas' {frmGeneralOptionsPage: TFrame},
AdvancedOptionsPage in 'frame\AdvancedOptionsPage.pas' {frmAdvancedOptionsPage: TFrame},
TrayIconOptionsPage in 'frame\TrayIconOptionsPage.pas' {frmTrayiconOptionsPage: TFrame},
HotkeyOptionsPage in 'frame\HotkeyOptionsPage.pas' {frmHotkeyOptionsPage: TFrame},
StatsOptionsPage in 'frame\StatsOptionsPage.pas' {frmStatsOptionsPage: TFrame},
ItemsOptionsPage in 'frame\ItemsOptionsPage.pas' {frmItemsOptionsPage: TFrame},
SensorsOptionsPage in 'frame\SensorsOptionsPage.pas' {frmSensorsOptionsPage: TFrame},
PropertyItem in 'PropertyItem.pas' {frmPropertyItem},
ulFrameUtils in 'library\ulFrameUtils.pas',
AdvancedPropertyPage in 'frame\AdvancedPropertyPage.pas' {frmAdvancedPropertyPage: TFrame},
BehaviorPropertyPage in 'frame\BehaviorPropertyPage.pas' {frmBehaviorPropertyPage: TFrame},
BaseGeneralPropertyPage in 'frame\BaseGeneralPropertyPage.pas' {frmBaseGeneralPropertyPage: TFrame},
SWGeneralPropertyPage in 'frame\SWGeneralPropertyPage.pas' {frmSWGeneralPropertyPage: TFrame},
CatGeneralPropertyPage in 'frame\CatGeneralPropertyPage.pas' {frmCatGeneralPropertyPage: TFrame},
PropertySeparator in 'PropertySeparator.pas' {frmPropertySeparator},
BasePropertyPage in 'frame\BasePropertyPage.pas' {frmBasePropertyPage: TFrame},
ScanFolder in 'ScanFolder.pas' {frmScanFolder},
ulXMLUtils in 'library\ulXMLUtils.pas';
//SQLite3 static library
{$IFDEF DEBUG}
var
cTempo1,cTempo2 : Cardinal;
myTextFile : TextFile;
{$ENDIF}
{$R *.res}
{$R *.dkl_const.res}
begin
{$IFDEF DEBUG}
ReportMemoryLeaksOnShutdown := True;
{$ENDIF}
if not CheckPrevious.RestoreIfRunning(Application.Handle, 1) then
begin
{$IFDEF DEBUG}
cTempo1 := GetTickCount;
{$ENDIF}
Application.Initialize;
SetCurrentDir(SUITE_WORKING_PATH);
Config := TConfiguration.Create;
Application.Title := APP_TITLE;
Application.CreateForm(TfrmMain, frmMain);
Application.CreateForm(TfrmGraphicMenu, frmGraphicMenu);
//Show MainForm and/or TrayMenu
Application.ShowMainForm := Config.ShowPanelAtStartUp;
if (Config.ShowMenuAtStartUp) then
ClassicMenu.ShowTrayiconMenu;
TfrmNotification.Execute(Format('%s %s', [APP_NAME, VERSION_COMPLETE]),'');
Application.Run;
{$IFDEF DEBUG}
//Timing startup
cTempo2 := GetTickCount;
AssignFile(myTextFile, DEBUG_FILE);
if Not(FileExists(DEBUG_FILE)) then
ReWrite(myTextFile)
else
Append(myTextFile);
WriteLn(myTextFile, DateTimeToStr(now) + ' = ' + IntToStr(cTempo2 - cTempo1));
CloseFile(myTextFile);
{$ENDIF}
end;
end.