Changeset 219 for trunk/Core.pas
- Timestamp:
- Jan 17, 2025, 9:05:54 PM (4 days ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r218 r219 1 unit UCore; 2 3 {$mode delphi} 1 unit Core; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, FileUtil, UAcronym, UTranslator, UPersistentForm,9 UJobProgressView, UScaleDPI, Forms, Controls, ExtCtrls, Menus, LazFileUtils,10 URegistry, UApplicationInfo, Registry, UTheme;6 Classes, SysUtils, FileUtil, Acronym, Translator, PersistentForm, 7 JobProgressView, ScaleDPI, Forms, Controls, ExtCtrls, Menus, LazFileUtils, 8 RegistryEx, ApplicationInfo, Registry, Theme, FormMain; 11 9 12 10 type … … 43 41 procedure WriteLnConsole(Text: string); 44 42 public 43 FormMain: TFormMain; 45 44 AcronymDb: TAcronymDb; 46 45 StartOnLogon: Boolean; … … 54 53 procedure SaveConfig; 55 54 procedure ScaleDPI; 55 function CompareStrings(Strings1, Strings2: TStrings): Boolean; 56 56 property AlwaysOnTop: Boolean read FAlwaysOnTop write SetAlwaysOnTop; 57 57 end; … … 62 62 63 63 implementation 64 65 uses66 UFormMain;67 64 68 65 const … … 87 84 InitializeFinished := False; 88 85 StoredDimension := TControlDimension.Create; 86 Application.CreateForm(TFormMain, FormMain); 89 87 end; 90 88 … … 95 93 end; 96 94 95 function TCore.CompareStrings(Strings1, Strings2: TStrings): Boolean; 96 var 97 I: Integer; 98 begin 99 Result := Strings1.Count = Strings2.Count; 100 if not Result then Exit; 101 for I := 0 to Strings1.Count - 1 do 102 if (Strings1[I] <> Strings2[I]) or (Strings1.Objects[I] <> Strings2.Objects[I]) then begin 103 Result := False; 104 Exit; 105 end; 106 end; 107 97 108 procedure TCore.TrayIcon1Click(Sender: TObject); 98 109 begin … … 103 114 procedure TCore.TranslatorTranslate(Sender: TObject); 104 115 begin 105 UAcronym.Translate;116 Acronym.Translate; 106 117 end; 107 118 … … 276 287 end; 277 288 278 279 280 289 end. 281 290
Note:
See TracChangeset
for help on using the changeset viewer.