Changeset 149 for trunk/Forms/FormImage.pas
- Timestamp:
- Jun 5, 2023, 8:45:38 PM (18 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormImage.pas
r148 r149 1 unit UFormImage;1 unit FormImage; 2 2 3 3 interface … … 37 37 end; 38 38 39 var40 FormImage: TFormImage;41 42 39 43 40 implementation … … 46 43 47 44 uses 48 UCore;45 Core; 49 46 50 47 { TFormImage } … … 52 49 procedure TFormImage.FormClose(Sender: TObject; var CloseAction: TCloseAction); 53 50 begin 54 Core. PersistentForm1.Save(Self);51 Core.Core.PersistentForm1.Save(Self); 55 52 end; 56 53 57 54 procedure TFormImage.FormCreate(Sender: TObject); 58 55 begin 59 Core. Translator.TranslateComponentRecursive(Self);60 Core. ThemeManager1.UseTheme(Self);56 Core.Core.Translator.TranslateComponentRecursive(Self); 57 Core.Core.ThemeManager1.UseTheme(Self); 61 58 62 59 Image := TContactImage.Create(nil); … … 71 68 procedure TFormImage.ButtonLoadClick(Sender: TObject); 72 69 begin 73 OpenPictureDialog1.InitialDir := ExtractFileDir(Core. LastPhotoFileName);74 OpenPictureDialog1.FileName := ExtractFileName(Core. LastPhotoFileName);70 OpenPictureDialog1.InitialDir := ExtractFileDir(Core.Core.LastPhotoFileName); 71 OpenPictureDialog1.FileName := ExtractFileName(Core.Core.LastPhotoFileName); 75 72 if OpenPictureDialog1.Execute then begin 76 73 Image.LoadFromFile(OpenPictureDialog1.FileName); 77 Core. LastPhotoFileName := OpenPictureDialog1.FileName;74 Core.Core.LastPhotoFileName := OpenPictureDialog1.FileName; 78 75 end; 79 76 end; … … 86 83 procedure TFormImage.ButtonSaveClick(Sender: TObject); 87 84 begin 88 SavePictureDialog1.InitialDir := ExtractFileDir(Core. LastPhotoFileName);89 SavePictureDialog1.FileName := ExtractFileName(Core. LastPhotoFileName);85 SavePictureDialog1.InitialDir := ExtractFileDir(Core.Core.LastPhotoFileName); 86 SavePictureDialog1.FileName := ExtractFileName(Core.Core.LastPhotoFileName); 90 87 if SavePictureDialog1.Execute then begin 91 88 Image.SaveToFile(SavePictureDialog1.FileName); 92 Core. LastPhotoFileName := SavePictureDialog1.FileName;89 Core.Core.LastPhotoFileName := SavePictureDialog1.FileName; 93 90 end; 94 91 end; … … 101 98 procedure TFormImage.FormShow(Sender: TObject); 102 99 begin 103 Core. PersistentForm1.Load(Self);100 Core.Core.PersistentForm1.Load(Self); 104 101 105 102 ImageChange(nil); … … 109 106 begin 110 107 if Image.Used and (Image.Url = '') then ImagePhoto.Picture.Bitmap.Assign(Image.Bitmap) 111 else ImagePhoto.Picture.Assign(Core. GetProfileImage.Picture);108 else ImagePhoto.Picture.Assign(Core.Core.GetProfileImage.Picture); 112 109 EditUrl.Text := Image.Url; 113 110 UpdateInterface;
Note:
See TracChangeset
for help on using the changeset viewer.