Changeset 115 for trunk/Packages
- Timestamp:
- Oct 13, 2020, 8:05:14 PM (4 years ago)
- Location:
- trunk/Packages
- Files:
-
- 6 added
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Common.lpk
r102 r115 40 40 <License Value="GNU/GPL"/> 41 41 <Version Minor="7"/> 42 <Files Count="2 2">42 <Files Count="26"> 43 43 <Item1> 44 44 <Filename Value="StopWatch.pas"/> … … 139 139 <UnitName Value="UStringTable"/> 140 140 </Item22> 141 <Item23> 142 <Filename Value="UTranslator.pas"/> 143 <HasRegisterProc Value="True"/> 144 <UnitName Value="UTranslator"/> 145 </Item23> 146 <Item24> 147 <Filename Value="ULanguages.pas"/> 148 <UnitName Value="ULanguages"/> 149 </Item24> 150 <Item25> 151 <Filename Value="UFormAbout.pas"/> 152 <UnitName Value="UFormAbout"/> 153 </Item25> 154 <Item26> 155 <Filename Value="UAboutDialog.pas"/> 156 <HasRegisterProc Value="True"/> 157 <UnitName Value="UAboutDialog"/> 158 </Item26> 141 159 </Files> 142 160 <i18n> -
trunk/Packages/Common/Common.pas
r102 r115 12 12 UMemory, UResetableThread, UPool, ULastOpenedList, URegistry, 13 13 UJobProgressView, UXMLUtils, UApplicationInfo, USyncCounter, UListViewSort, 14 UPersistentForm, UFindFile, UScaleDPI, UTheme, UStringTable, 15 LazarusPackageIntf;14 UPersistentForm, UFindFile, UScaleDPI, UTheme, UStringTable, UAboutDialog, 15 UTranslator, ULanguages, UFormAbout, LazarusPackageIntf; 16 16 17 17 implementation … … 29 29 RegisterUnit('UScaleDPI', @UScaleDPI.Register); 30 30 RegisterUnit('UTheme', @UTheme.Register); 31 RegisterUnit('UAboutDialog', @UAboutDialog.Register); 32 RegisterUnit('UTranslator', @UTranslator.Register); 31 33 end; 32 34 -
trunk/Packages/Common/UApplicationInfo.pas
r93 r115 6 6 7 7 uses 8 SysUtils, Classes, Forms, URegistry, Controls ;8 SysUtils, Classes, Forms, URegistry, Controls, Graphics; 9 9 10 10 type … … 15 15 private 16 16 FDescription: TCaption; 17 FIcon: TBitmap; 17 18 FIdentification: Byte; 18 19 FLicense: string; … … 33 34 public 34 35 constructor Create(AOwner: TComponent); override; 36 destructor Destroy; override; 35 37 property Version: string read GetVersion; 36 38 function GetRegistryContext: TRegistryContext; … … 52 54 property RegistryRoot: TRegistryRoot read FRegistryRoot write FRegistryRoot; 53 55 property License: string read FLicense write FLicense; 56 property Icon: TBitmap read FIcon write FIcon; 54 57 end; 55 58 … … 80 83 FRegistryKey := '\Software\' + FAppName; 81 84 FRegistryRoot := rrKeyCurrentUser; 85 FIcon := TBitmap.Create; 86 end; 87 88 destructor TApplicationInfo.Destroy; 89 begin 90 FreeAndNil(FIcon); 91 inherited Destroy; 82 92 end; 83 93 -
trunk/Packages/Common/URegistry.pas
r102 r115 1 1 unit URegistry; 2 2 3 {$MODE Delphi}3 {$MODE delphi} 4 4 5 5 interface … … 17 17 RootKey: HKEY; 18 18 Key: string; 19 class function Create(RootKey: TRegistryRoot; Key: string): TRegistryContext; static; overload; 20 class function Create(RootKey: HKEY; Key: string): TRegistryContext; static; overload; 19 21 class operator Equal(A, B: TRegistryContext): Boolean; 20 function Create(RootKey: TRegistryRoot; Key: string): TRegistryContext; overload;21 function Create(RootKey: HKEY; Key: string): TRegistryContext; overload;22 22 end; 23 23 … … 58 58 end; 59 59 60 function TRegistryContext.Create(RootKey: TRegistryRoot; Key: string): TRegistryContext;60 class function TRegistryContext.Create(RootKey: TRegistryRoot; Key: string): TRegistryContext; 61 61 begin 62 62 Result.RootKey := RegistryRootHKEY[RootKey]; … … 64 64 end; 65 65 66 function TRegistryContext.Create(RootKey: HKEY; Key: string): TRegistryContext;66 class function TRegistryContext.Create(RootKey: HKEY; Key: string): TRegistryContext; 67 67 begin 68 68 Result.RootKey := RootKey; … … 133 133 begin 134 134 {$IFDEF Linux} 135 CloseKey;135 //CloseKey; 136 136 {$ENDIF} 137 137 Result := inherited OpenKey(Key, CanCreate);
Note:
See TracChangeset
for help on using the changeset viewer.