- Timestamp:
- Jan 22, 2018, 11:00:53 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AcronymDecoder.lpr
r95 r169 8 8 {$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UAcronym, Common, SysUtils, TemplateGenerics, UFormImport, 11 CoolTranslator, UFormCategorySelect, UFormMain, UFormAcronym, UFormSettings, 12 UFormCategories, UFormAcronyms, UFormImportSource, UFormImportSources, 13 UFormAbout, UFormImportFormat, UFormImportFormats, UFormImportPattern, UCore, 14 UFormExport 10 Forms, UAcronym, Common, SysUtils, TemplateGenerics, 11 CoolTranslator, UFormMain, UCore 15 12 { you can add units after this }; 16 13 -
trunk/Forms/UFormAbout.lfm
r142 r169 1 1 object FormAbout: TFormAbout 2 2 Left = 562 3 Height = 3 974 Top = 2775 Width = 4 733 Height = 314 4 Top = 306 5 Width = 485 6 6 Caption = 'About' 7 ClientHeight = 397 8 ClientWidth = 473 7 ClientHeight = 314 8 ClientWidth = 485 9 DesignTimePPI = 120 9 10 OnCreate = FormCreate 10 11 OnShow = FormShow 11 12 Position = poScreenCenter 12 LCLVersion = '1. 6.0.4'13 LCLVersion = '1.8.0.6' 13 14 object LabelDescription: TLabel 14 15 Left = 20 15 Height = 4816 Height = 32 16 17 Top = 108 17 Width = 4 3318 Width = 445 18 19 Align = alTop 20 AutoSize = False 19 21 BorderSpacing.Around = 20 20 Caption = 'Simple tool for quick searching of meaning for various acronyms and abbreviations.'21 22 ParentColor = False 22 23 WordWrap = True 23 24 end 24 25 object ButtonClose: TButton 25 Left = 3 6026 Left = 372 26 27 Height = 25 27 Top = 35728 Top = 274 28 29 Width = 93 29 30 Anchors = [akRight, akBottom] … … 34 35 object LabelContent: TLabel 35 36 Left = 20 36 Height = 2 437 Top = 1 7638 Width = 4 3337 Height = 20 38 Top = 160 39 Width = 445 39 40 Align = alTop 40 41 BorderSpacing.Around = 20 … … 45 46 Left = 16 46 47 Height = 25 47 Top = 35748 Top = 274 48 49 Width = 176 49 50 Anchors = [akLeft, akBottom] … … 56 57 Height = 88 57 58 Top = 0 58 Width = 4 7359 Width = 485 59 60 Align = alTop 60 61 BevelOuter = bvNone 61 62 ClientHeight = 88 62 ClientWidth = 4 7363 ClientWidth = 485 63 64 TabOrder = 2 64 65 object Image1: TImage … … 67 68 Top = 16 68 69 Width = 69 69 Picture.Data = {70 1754506F727461626C654E6574776F726B477261706869632301000089504E4771 0D0A1A0A0000000D49484452000000400000004008030000009DB781EC00000072 0C504C544500000000000000003AFFC90EE9675ABE0000000174524E530040E673 D866000000C549444154789CEDD64B0EC3200C04D04C73FF3B77D1AAB2C1DF4E74 48BB60364990FC440C121CC7CECEDF054968202580334881888137C1002F830375 664137C99A74228480334803A802EE68B589FEBC6A4030310E18DBE801516F6E76 043E8F3E00098CCD2903EAA50740035807385B597E4E82AC5805445F5703661377 61A6B10A2C60D7CB5FBA0710EB36353506C65F9E866AC0A982070B346660D5AB78 D171FB90C0BC501980EC64A2812C9DC3D5AEF7AF185F5D309A4058BFFA9285B479 FE8A8B2655BEB3F3C33C01B6231002CAEF0D050000000049454E44AE42608280 }81 70 end 82 71 object LabelAppName: TLabel 83 72 Left = 104 84 Height = 5 573 Height = 54 85 74 Top = 16 86 Width = 3 3875 Width = 317 87 76 Align = alCustom 88 77 BorderSpacing.Around = 20 -
trunk/Forms/UFormAbout.pas
r142 r169 51 51 if Assigned(ApplicationInfo) then begin 52 52 LabelAppName.Caption := ApplicationInfo.AppName; 53 LabelDescription.Caption := ApplicationInfo.Description; 54 LabelDescription.AutoSize := True; 53 55 LabelContent.Caption := SVersion + ': ' + ApplicationInfo.Version + LineEnding + 54 56 SReleaseDate + ': ' + DateToStr(ApplicationInfo.ReleaseDate) + LineEnding + 55 57 SLicense + ': ' + ApplicationInfo.License; 58 Image1.Picture.Bitmap.Assign(Application.Icon); 56 59 end; 57 60 end; -
trunk/Forms/UFormMain.lfm
r166 r169 3 3 Height = 602 4 4 Top = 261 5 Width = 9985 Width = 847 6 6 Caption = 'Acronym Decoder' 7 7 ClientHeight = 577 8 ClientWidth = 9988 ClientWidth = 847 9 9 DesignTimePPI = 120 10 10 Menu = MainMenu1 … … 20 20 Height = 479 21 21 Top = 70 22 Width = 99822 Width = 847 23 23 Align = alClient 24 24 BevelOuter = bvNone 25 25 ClientHeight = 479 26 ClientWidth = 99826 ClientWidth = 847 27 27 TabOrder = 0 28 28 object ListViewFilter1: TListViewFilter … … 30 30 Height = 38 31 31 Top = 6 32 Width = 97932 Width = 828 33 33 OnChange = ListViewFilter1Change 34 34 Anchors = [akTop, akLeft, akRight] … … 38 38 Height = 427 39 39 Top = 44 40 Width = 98040 Width = 829 41 41 Anchors = [akTop, akLeft, akRight, akBottom] 42 42 Columns = < … … 68 68 Height = 32 69 69 Top = 38 70 Width = 99870 Width = 847 71 71 Align = alTop 72 72 BevelOuter = bvNone 73 73 ClientHeight = 32 74 ClientWidth = 99874 ClientWidth = 847 75 75 TabOrder = 1 76 76 object CheckBoxExactLength: TCheckBox … … 103 103 Height = 38 104 104 Top = 0 105 Width = 998 106 AutoSize = True 105 Width = 847 107 106 Bands = < 108 107 item … … 141 140 Height = 28 142 141 Top = 5 143 Width = 13 5142 Width = 132 144 143 Align = alNone 145 144 AutoSize = True … … 183 182 Height = 28 184 183 Top = 5 185 Width = 1 20184 Width = 117 186 185 Align = alNone 187 186 AutoSize = True … … 223 222 Height = 28 224 223 Top = 5 225 Width = 62224 Width = 59 226 225 Align = alNone 227 226 AutoSize = True … … 253 252 Height = 28 254 253 Top = 5 255 Width = 91254 Width = 88 256 255 Align = alNone 257 256 AutoSize = True … … 290 289 Height = 28 291 290 Top = 549 292 Width = 998291 Width = 847 293 292 Panels = < 294 293 item -
trunk/Forms/UFormMain.pas
r166 r169 700 700 procedure TFormMain.LoadConfig; 701 701 begin 702 RegistryContext := RegContext(HKEY_CURRENT_USER, DefaultRegKey);702 RegistryContext := TRegistryContext.Create(HKEY_CURRENT_USER, DefaultRegKey); 703 703 Core.PersistentForm1.RegistryContext := RegistryContext; 704 RegistryContext := RegContext(HKEY_CURRENT_USER, DefaultRegKey + '\RecentFiles');704 RegistryContext := TRegistryContext.Create(HKEY_CURRENT_USER, DefaultRegKey + '\RecentFiles'); 705 705 LastOpenedList1.LoadFromRegistry(RegistryContext); 706 706 … … 737 737 procedure TFormMain.SaveConfig; 738 738 begin 739 RegistryContext := RegContext(HKEY_CURRENT_USER, DefaultRegKey + '\RecentFiles');739 RegistryContext := TRegistryContext.Create(HKEY_CURRENT_USER, DefaultRegKey + '\RecentFiles'); 740 740 LastOpenedList1.SaveToRegistry(RegistryContext); 741 741 -
trunk/Install/win/build.bat
r168 r169 1 @echo off 2 1 3 if not defined LAZDIR ( 2 4 set LAZDIR=C:\lazarus … … 4 6 SET PROJECTNAME=AcronymDecoder 5 7 8 SET MAIN_EXE=..\..\%PROJECTNAME%.exe 9 SET WIN32_EXE=..\..\lib\i386-win32-Release\%PROJECTNAME%.exe 10 SET WIN64_EXE=..\..\lib\x86_64-win64-Release\%PROJECTNAME%.exe 11 IF EXIST %MAIN_EXE% del %MAIN_EXE% 12 IF EXIST %WIN32_EXE% del %WIN32_EXE% 13 IF EXIST %WIN64_EXE% del %WIN64_EXE% 14 6 15 %LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=i386 --operating-system=Win32 ..\..\%PROJECTNAME%.lpi 7 copy ..\..\%PROJECTNAME%.exe ..\..\lib\i386-win32-Release16 copy %MAIN_EXE% %WIN32_EXE% 8 17 %LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=x86_64 --operating-system=Win64 ..\..\%PROJECTNAME%.lpi 9 copy ..\..\%PROJECTNAME%.exe ..\..\lib\x86_64-win64-Release18 copy %MAIN_EXE% %WIN64_EXE% 10 19 11 20 "c:\Program Files (x86)\Inno Setup 5\ISCC.exe" "%PROJECTNAME%.iss" -
trunk/Languages/AcronymDecoder.cs.po
r165 r169 36 36 msgstr " " 37 37 38 #: tformabout.labeldescription.caption39 msgctxt "tformabout.labeldescription.caption"40 msgid "Simple tool for quick searching of meaning for various acronyms and abbreviations."41 msgstr "Jednoduchý nástroj pro hledání významu různých zkratek a zkrácení."42 43 38 #: tformacronym.acategoryadd.caption 44 39 msgctxt "tformacronym.acategoryadd.caption" -
trunk/Languages/AcronymDecoder.po
r165 r169 26 26 msgstr "" 27 27 28 #: tformabout.labeldescription.caption29 msgctxt "TFORMABOUT.LABELDESCRIPTION.CAPTION"30 msgid "Simple tool for quick searching of meaning for various acronyms and abbreviations."31 msgstr ""32 33 28 #: tformacronym.acategoryadd.caption 34 29 msgctxt "TFORMACRONYM.ACATEGORYADD.CAPTION" -
trunk/Packages/Common/UApplicationInfo.pas
r3 r169 14 14 TApplicationInfo = class(TComponent) 15 15 private 16 FDescription: string; 16 17 FIdentification: Byte; 17 18 FLicense: string; … … 33 34 constructor Create(AOwner: TComponent); override; 34 35 property Version: string read GetVersion; 36 function GetRegistryContext: TRegistryContext; 35 37 published 36 38 property Identification: Byte read FIdentification write FIdentification; … … 45 47 property EmailContact: string read FEmailContact write FEmailContact; 46 48 property AppName: string read FAppName write FAppName; 49 property Description: string read FDescription write FDescription; 47 50 property ReleaseDate: TDateTime read FReleaseDate write FReleaseDate; 48 51 property RegistryKey: string read FRegistryKey write FRegistryKey; … … 79 82 end; 80 83 84 function TApplicationInfo.GetRegistryContext: TRegistryContext; 85 begin 86 Result := TRegistryContext.Create(RegistryRoot, RegistryKey); 87 end; 88 81 89 end. -
trunk/Packages/Common/UCommon.pas
r141 r169 63 63 procedure OpenWebPage(URL: string); 64 64 procedure OpenFileInShell(FileName: string); 65 procedure ExecuteProgram( CommandLine:string);65 procedure ExecuteProgram(Executable: string; Parameters: array of string); 66 66 procedure FreeThenNil(var Obj); 67 67 function RemoveQuotes(Text: string): string; … … 70 70 function GetDirCount(Dir: string): Integer; 71 71 function MergeArray(A, B: array of string): TArrayOfString; 72 function LoadFileToStr(const FileName: TFileName): AnsiString; 72 73 73 74 … … 111 112 Path := IncludeTrailingPathDelimiter(APath); 112 113 113 Find := FindFirst( UTF8Decode(Path + AFileSpec), faAnyFile xor faDirectory, SearchRec);114 Find := FindFirst(Path + AFileSpec, faAnyFile xor faDirectory, SearchRec); 114 115 while Find = 0 do begin 115 DeleteFile(Path + UTF8Encode(SearchRec.Name));116 DeleteFile(Path + SearchRec.Name); 116 117 117 118 Find := SysUtils.FindNext(SearchRec); … … 428 429 end; 429 430 430 procedure ExecuteProgram( CommandLine:string);431 procedure ExecuteProgram(Executable: string; Parameters: array of string); 431 432 var 432 433 Process: TProcess; 434 I: Integer; 433 435 begin 434 436 try 435 437 Process := TProcess.Create(nil); 436 Process.CommandLine := CommandLine; 438 Process.Executable := Executable; 439 for I := 0 to Length(Parameters) - 1 do 440 Process.Parameters.Add(Parameters[I]); 437 441 Process.Options := [poNoConsole]; 438 442 Process.Execute; … … 455 459 procedure OpenFileInShell(FileName: string); 456 460 begin 457 ExecuteProgram('cmd.exe /c start "' + FileName + '"');461 ExecuteProgram('cmd.exe', ['/c', 'start', FileName]); 458 462 end; 459 463 … … 492 496 end; 493 497 498 function LoadFileToStr(const FileName: TFileName): AnsiString; 499 var 500 FileStream: TFileStream; 501 Read: Integer; 502 begin 503 Result := ''; 504 FileStream := TFileStream.Create(FileName, fmOpenRead); 505 try 506 if FileStream.Size > 0 then begin 507 SetLength(Result, FileStream.Size); 508 Read := FileStream.Read(Pointer(Result)^, FileStream.Size); 509 SetLength(Result, Read); 510 end; 511 finally 512 FileStream.Free; 513 end; 514 end; 515 494 516 495 517 -
trunk/Packages/Common/URegistry.pas
r3 r169 9 9 10 10 type 11 TRegistryRoot = (rrKeyClassesRoot = HKEY($80000000), 12 rrKeyCurrentUser = HKEY($80000001), 13 rrKeyLocalMachine = HKEY($80000002), 14 rrKeyUsers = HKEY($80000003), 15 rrKeyPerformanceData = HKEY($80000004), 16 rrKeyCurrentConfig = HKEY($80000005), 17 rrKeyDynData = HKEY($80000006)); 11 TRegistryRoot = (rrKeyClassesRoot, rrKeyCurrentUser, rrKeyLocalMachine, 12 rrKeyUsers, rrKeyPerformanceData, rrKeyCurrentConfig, rrKeyDynData); 18 13 19 14 { TRegistryContext } … … 23 18 Key: string; 24 19 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; 25 22 end; 26 23 … … 43 40 end; 44 41 45 function RegContext(RootKey: HKEY; Key: string): TRegistryContext; 46 42 const 43 RegistryRootHKEY: array[TRegistryRoot] of HKEY = (HKEY_CLASSES_ROOT, 44 HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_PERFORMANCE_DATA, 45 HKEY_CURRENT_CONFIG, HKEY_DYN_DATA); 47 46 48 47 implementation 49 48 50 function RegContext(RootKey: HKEY; Key: string): TRegistryContext;51 begin52 Result.RootKey := RootKey;53 Result.Key := Key;54 end;55 49 56 50 { TRegistryContext } … … 59 53 begin 60 54 Result := (A.Key = B.Key) and (A.RootKey = B.RootKey); 55 end; 56 57 function TRegistryContext.Create(RootKey: TRegistryRoot; Key: string): TRegistryContext; 58 begin 59 Result.RootKey := RegistryRootHKEY[RootKey]; 60 Result.Key := Key; 61 end; 62 63 function TRegistryContext.Create(RootKey: HKEY; Key: string): TRegistryContext; 64 begin 65 Result.RootKey := RootKey; 66 Result.Key := Key; 61 67 end; 62 68 -
trunk/Packages/Common/UScaleDPI.pas
r166 r169 325 325 AutoSize := False; 326 326 Height := ScaleY(Height, FromDPI.Y); 327 AutoSize := True; 327 328 end; 328 329 EndUpdate; -
trunk/UCore.lfm
r163 r169 3 3 OnDestroy = DataModuleDestroy 4 4 OldCreateOrder = False 5 Height = 518 6 HorizontalOffset = 477 7 VerticalOffset = 302 8 Width = 557 5 Height = 648 6 HorizontalOffset = 596 7 VerticalOffset = 378 8 Width = 696 9 PPI = 120 9 10 object CoolTranslator1: TCoolTranslator 10 11 POFilesFolder = 'Languages' 11 12 OnTranslate = CoolTranslator1Translate 12 left = 1 5213 top = 1 5213 left = 190 14 top = 190 14 15 end 15 16 object PersistentForm1: TPersistentForm 16 17 MinVisiblePart = 50 17 18 EntireVisible = False 18 left = 29219 top = 1 5619 left = 365 20 top = 195 20 21 end 21 22 object JobProgressView1: TJobProgressView … … 23 24 ShowDelay = 0 24 25 AutoClose = False 25 left = 29226 top = 27226 left = 365 27 top = 340 27 28 end 28 29 object ScaleDPI1: TScaleDPI 29 30 AutoDetect = False 30 left = 1 5631 top = 27231 left = 195 32 top = 340 32 33 end 33 34 object ImageList1: TImageList 34 left = 29235 top = 33635 left = 365 36 top = 420 36 37 Bitmap = { 37 38 4C69140000001000000010000000000000000000000000000000000000000000 … … 1216 1217 Visible = True 1217 1218 OnClick = TrayIcon1Click 1218 left = 1 521219 top = 3361219 left = 190 1220 top = 420 1220 1221 end 1221 1222 object PopupMenuTrayIcon: TPopupMenu 1222 1223 Images = ImageList1 1223 left = 1 521224 top = 4001224 left = 190 1225 top = 500 1225 1226 object MenuItem2: TMenuItem 1226 1227 Action = FormMain.AShow … … 1249 1250 Height = 32 1250 1251 Width = 32 1251 left = 4241252 top = 3361252 left = 530 1253 top = 420 1253 1254 Bitmap = { 1254 1255 4C69110000002000000020000000000000000000000000000000000000000000 … … 3442 3443 EmailContact = 'robie@centrum.cz' 3443 3444 AppName = 'Acronym Decoder' 3445 Description = 'Simple tool for quick searching of meaning for various acronyms and abbreviations.' 3444 3446 ReleaseDate = 43046 3445 3447 RegistryKey = '\Software\' 3446 3448 RegistryRoot = rrKeyCurrentUser 3447 3449 License = 'CC0' 3448 left = 803449 top = 243450 left = 100 3451 top = 30 3450 3452 end 3451 3453 end
Note:
See TracChangeset
for help on using the changeset viewer.