Ignore:
Timestamp:
Jun 5, 2023, 8:45:38 PM (18 months ago)
Author:
chronos
Message:
  • Modified: Remove U prefix from unit names.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Forms/FormImage.pas

    r148 r149  
    1 unit UFormImage;
     1unit FormImage;
    22
    33interface
     
    3737  end;
    3838
    39 var
    40   FormImage: TFormImage;
    41 
    4239
    4340implementation
     
    4643
    4744uses
    48   UCore;
     45  Core;
    4946
    5047{ TFormImage }
     
    5249procedure TFormImage.FormClose(Sender: TObject; var CloseAction: TCloseAction);
    5350begin
    54   Core.PersistentForm1.Save(Self);
     51  Core.Core.PersistentForm1.Save(Self);
    5552end;
    5653
    5754procedure TFormImage.FormCreate(Sender: TObject);
    5855begin
    59   Core.Translator.TranslateComponentRecursive(Self);
    60   Core.ThemeManager1.UseTheme(Self);
     56  Core.Core.Translator.TranslateComponentRecursive(Self);
     57  Core.Core.ThemeManager1.UseTheme(Self);
    6158
    6259  Image := TContactImage.Create(nil);
     
    7168procedure TFormImage.ButtonLoadClick(Sender: TObject);
    7269begin
    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);
    7572  if OpenPictureDialog1.Execute then begin
    7673    Image.LoadFromFile(OpenPictureDialog1.FileName);
    77     Core.LastPhotoFileName := OpenPictureDialog1.FileName;
     74    Core.Core.LastPhotoFileName := OpenPictureDialog1.FileName;
    7875  end;
    7976end;
     
    8683procedure TFormImage.ButtonSaveClick(Sender: TObject);
    8784begin
    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);
    9087  if SavePictureDialog1.Execute then begin
    9188    Image.SaveToFile(SavePictureDialog1.FileName);
    92     Core.LastPhotoFileName := SavePictureDialog1.FileName;
     89    Core.Core.LastPhotoFileName := SavePictureDialog1.FileName;
    9390  end;
    9491end;
     
    10198procedure TFormImage.FormShow(Sender: TObject);
    10299begin
    103   Core.PersistentForm1.Load(Self);
     100  Core.Core.PersistentForm1.Load(Self);
    104101
    105102  ImageChange(nil);
     
    109106begin
    110107  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);
    112109  EditUrl.Text := Image.Url;
    113110  UpdateInterface;
Note: See TracChangeset for help on using the changeset viewer.