Repo for the search and displace ingest module that takes odf, docx and pdf and transforms it into .md to be used with search and displace operations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.4 KiB

3 years ago
  1. unit AboutForm;
  2. interface
  3. uses
  4. Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
  5. StdCtrls;
  6. type
  7. { TFormAbout }
  8. TFormAbout = class(TForm)
  9. BtnClose: TButton;
  10. ImageIcon: TImage;
  11. Label1: TLabel;
  12. LabWeb: TLabel;
  13. LabTitle: TLabel;
  14. LabVersion: TLabel;
  15. procedure BtnCloseClick(Sender: TObject);
  16. procedure FormCreate(Sender: TObject);
  17. procedure LabWebClick(Sender: TObject);
  18. end;
  19. var
  20. FormAbout: TFormAbout;
  21. implementation
  22. uses
  23. LCLIntf, DataModule, Config;
  24. {$R *.lfm}
  25. { TFormAbout }
  26. procedure TFormAbout.BtnCloseClick(Sender: TObject);
  27. begin
  28. Close;
  29. end;
  30. procedure TFormAbout.FormCreate(Sender: TObject);
  31. var
  32. Icon: TIcon;
  33. begin
  34. LabTitle.Caption := Application.Title;
  35. LabVersion.Caption := 'v' + Module.VersionString;
  36. LabWeb.Caption := Config.WebLink;
  37. if Config.LogoImageResName = '' then
  38. begin
  39. Icon := TIcon.Create;
  40. try
  41. Icon.LoadFromResourceName(HInstance, 'MAINICON');
  42. ImageIcon.Picture.Assign(Icon);
  43. {$IF Defined(DARWIN)}
  44. ImageIcon.Stretch := False; // Currently broken in Cocoa WS
  45. {$ENDIF}
  46. finally
  47. Icon.Free;
  48. end;
  49. end
  50. else
  51. begin
  52. ImageIcon.Stretch := False;
  53. ImageIcon.Picture.LoadFromResourceName(HInstance, Config.LogoImageResName);
  54. end;
  55. end;
  56. procedure TFormAbout.LabWebClick(Sender: TObject);
  57. begin
  58. OpenURL(LabWeb.Caption);
  59. end;
  60. end.