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/FormContact.pas

    r148 r149  
    1 unit UFormContact;
     1unit FormContact;
    22
    33interface
     
    66  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    77  ComCtrls, ActnList, Menus, ExtCtrls, ExtDlgs, Buttons, VCard, LCLIntf,
    8   UFormProperties, DateUtils, {$IFDEF LCLGTK2}Gtk2Globals, {$ENDIF}ContactImage,
     8  FormProperties, DateUtils, {$IFDEF LCLGTK2}Gtk2Globals, {$ENDIF}ContactImage,
    99  ubarcodes;
    1010
     
    248248  end;
    249249
    250 var
    251   FormContact: TFormContact;
    252 
    253250
    254251implementation
     
    257254
    258255uses
    259   UCore, Common, UFormImage, UFormNameDetails, DataFile;
     256  Core, Common, FormImage, FormNameDetails, DataFile;
    260257
    261258resourcestring
     
    328325  if Visible then LastMouse.WinControl := PageControlContact.ActivePage;
    329326  {$ENDIF}
    330   Core.PersistentForm1.Load(Self);
     327  Core.Core.PersistentForm1.Load(Self);
    331328  PhotoChange(nil);
    332329
     
    363360  SavePictureDialog1.FilterIndex := 2;
    364361  SavePictureDialog1.DefaultExt := '.png';
    365   if Core.LastQrCodeFileName = '' then
    366     Core.LastQrCodeFileName := 'QR code.png';
    367   SavePictureDialog1.InitialDir := ExtractFileDir(Core.LastQrCodeFileName);
    368   SavePictureDialog1.FileName := ExtractFileName(Core.LastQrCodeFileName);
     362  if Core.Core.LastQrCodeFileName = '' then
     363    Core.Core.LastQrCodeFileName := 'QR code.png';
     364  SavePictureDialog1.InitialDir := ExtractFileDir(Core.Core.LastQrCodeFileName);
     365  SavePictureDialog1.FileName := ExtractFileName(Core.Core.LastQrCodeFileName);
    369366  if SavePictureDialog1.Execute then begin
    370367    F := LowerCase(ExtractFileExt(SavePictureDialog1.FileName));
     
    377374    else if (F = '.eps') or (F = '.ps') then BarcodeQR1.SaveToEpsFile(SavePictureDialog1.FileName)
    378375    else raise Exception.Create(SImageTypeNotSupported);
    379     Core.LastQrCodeFileName := SavePictureDialog1.FileName;
     376    Core.Core.LastQrCodeFileName := SavePictureDialog1.FileName;
    380377  end;
    381378end;
     
    674671  if FPhoto.Used and (FPhoto.Url = '') then
    675672    ImagePhoto.Picture.Bitmap.Assign(FPhoto.Bitmap)
    676     else ImagePhoto.Picture.Assign(Core.GetProfileImage.Picture);
     673    else ImagePhoto.Picture.Assign(Core.Core.GetProfileImage.Picture);
    677674  UpdateInterface;
    678675end;
     
    697694  PageControlContact.ActivePage.Hide;
    698695
    699   Core.LastContactTabIndex := PageControlContact.TabIndex;
    700   Core.PersistentForm1.Save(Self);
     696  Core.Core.LastContactTabIndex := PageControlContact.TabIndex;
     697  Core.Core.PersistentForm1.Save(Self);
    701698end;
    702699
     
    709706procedure TFormContact.APhotoLoadExecute(Sender: TObject);
    710707begin
    711   OpenPictureDialog1.InitialDir := ExtractFileDir(Core.LastPhotoFileName);
    712   OpenPictureDialog1.FileName := ExtractFileName(Core.LastPhotoFileName);
     708  OpenPictureDialog1.InitialDir := ExtractFileDir(Core.Core.LastPhotoFileName);
     709  OpenPictureDialog1.FileName := ExtractFileName(Core.Core.LastPhotoFileName);
    713710  if OpenPictureDialog1.Execute then begin
    714711    FPhoto.LoadFromFile(OpenPictureDialog1.FileName);
    715     Core.LastPhotoFileName := OpenPictureDialog1.FileName;
     712    Core.Core.LastPhotoFileName := OpenPictureDialog1.FileName;
    716713  end;
    717714end;
     
    724721procedure TFormContact.APhotoSaveExecute(Sender: TObject);
    725722begin
    726   SavePictureDialog1.InitialDir := ExtractFileDir(Core.LastPhotoFileName);
    727   SavePictureDialog1.FileName := ExtractFileName(Core.LastPhotoFileName);
     723  SavePictureDialog1.InitialDir := ExtractFileDir(Core.Core.LastPhotoFileName);
     724  SavePictureDialog1.FileName := ExtractFileName(Core.Core.LastPhotoFileName);
    728725  if SavePictureDialog1.Execute then begin
    729726    ImagePhoto.Picture.SaveToFile(SavePictureDialog1.FileName);
    730     Core.LastPhotoFileName := SavePictureDialog1.FileName;
     727    Core.Core.LastPhotoFileName := SavePictureDialog1.FileName;
    731728  end;
    732729end;
     
    762759  if EditHomeAddressCountry.Text <> '' then Address := Address + ' ' + EditHomeAddressCountry.Text;
    763760  if Trim(Address) <> '' then
    764     OpenURL(Core.MapUrl + URLEncode(Trim(Address)));
     761    OpenURL(Core.Core.MapUrl + URLEncode(Trim(Address)));
    765762end;
    766763
     
    814811  if EditWorkAddressCountry.Text <> '' then Address := Address + ' ' + EditWorkAddressCountry.Text;
    815812  if Trim(Address) <> '' then
    816     OpenURL(Core.MapUrl + URLEncode(Trim(Address)));
     813    OpenURL(Core.Core.MapUrl + URLEncode(Trim(Address)));
    817814end;
    818815
     
    840837procedure TFormContact.FormCreate(Sender: TObject);
    841838begin
    842   Core.Translator.TranslateComponentRecursive(Self);
    843   Core.ThemeManager1.UseTheme(Self);
     839  Core.Core.Translator.TranslateComponentRecursive(Self);
     840  Core.Core.ThemeManager1.UseTheme(Self);
    844841  FContact := nil;
    845842  FormProperties := TFormProperties.Create(nil);
     
    852849  BarcodeQR1.PopupMenu := PopupMenuQrCode;
    853850
    854   PageControlContact.TabIndex := Core.LastContactTabIndex;
     851  PageControlContact.TabIndex := Core.Core.LastContactTabIndex;
    855852end;
    856853
Note: See TracChangeset for help on using the changeset viewer.