Changeset 74


Ignore:
Timestamp:
Dec 13, 2021, 11:45:47 PM (2 years ago)
Author:
chronos
Message:
  • Added: Logo contact field.
  • Fixed: Copy and paste were incorrectly copying duplicate contacts.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContacts.lfm

    r73 r74  
    1414  object ListView1: TListView
    1515    Left = 0
    16     Height = 801
     16    Height = 810
    1717    Top = 0
    1818    Width = 1210
     
    6666    Left = 0
    6767    Height = 39
    68     Top = 833
     68    Top = 842
    6969    Width = 1210
    7070    Align = alBottom
     
    114114    Left = 0
    115115    Height = 32
    116     Top = 801
     116    Top = 810
    117117    Width = 1210
    118118    OnChange = ListViewFilter1Change
     
    121121  object StatusBar1: TStatusBar
    122122    Left = 0
    123     Height = 36
    124     Top = 872
     123    Height = 27
     124    Top = 881
    125125    Width = 1210
    126126    Panels = <   
  • trunk/Forms/UFormContacts.pas

    r73 r74  
    355355  for I := 0 to ListView1.Items.Count - 1 do
    356356    if ListView1.Items[I].Selected then begin
     357      Strings.Clear;
    357358      TContact(ListView1.Items[I].Data).SaveToStrings(Strings);
    358359      Text := Text + Strings.Text;
     
    375376    for I := 0 to ListView1.Items.Count - 1 do
    376377      if ListView1.Items[I].Selected then begin
     378        Strings.Clear;
    377379        TContact(ListView1.Items[I].Data).SaveToStrings(Strings);
    378380        Text := Text + Strings.Text;
     
    562564  ALoadFromFile.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
    563565  ASaveToFile.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     566  ACopy.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     567  ACut.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     568  APaste.Enabled := Assigned(Contacts) and (Clipboard.AsText <> '');
    564569end;
    565570
  • trunk/Languages/vCardStudio.cs.po

    r73 r74  
    915915msgstr "LinkedIn"
    916916
     917#: ucontact.slogo
     918msgid "Logo"
     919msgstr "Logo"
     920
    917921#: ucontact.smainphone
    918922msgid "Main phone"
  • trunk/Languages/vCardStudio.po

    r73 r74  
    903903msgstr ""
    904904
     905#: ucontact.slogo
     906msgid "Logo"
     907msgstr ""
     908
    905909#: ucontact.smainphone
    906910msgid "Main phone"
  • trunk/UContact.pas

    r73 r74  
    2828    cfWorkAddressPostalCode, cfWorkAddressRegion, cfWorkAddressPostOfficeBox,
    2929    cfXTimesContacted, cfXLastTimeContacted, cfPhoto, cfDayOfBirth, cfRevision,
    30     cfVersion, cfAnniversary, cfGender,
     30    cfVersion, cfAnniversary, cfGender, cfLogo,
    3131    cfJabber, cfIcq, cfWindowsLive, cfGoogleTalk, cfAim, cfQq, cfYahoo, cfIrc,
    3232    cfSkype, cfMsn, cfGroupWise, cfGaduGadu,
     
    233233  SLastTimeContacted = 'Last Time Contacted';
    234234  SPhoto = 'Photo';
     235  SLogo = 'Logo';
    235236  SJabber = 'Jabber';
    236237  SDayOfBirth = 'Day of birth';
     
    11321133    AddNew('X-LAST_TIME_CONTACTED', [], [], SLastTimeContacted, cfXLastTimeContacted, dtString);
    11331134    AddNew('PHOTO', [], [], SPhoto, cfPhoto, dtImage);
     1135    AddNew('LOGO', [], [], SLogo, cfLogo, dtImage);
    11341136    AddNew('BDAY', [], [], SDayOfBirth, cfDayOfBirth, dtDate);
    11351137    with AddNew('ANNIVERSARY', [], [], SAnniversary, cfAnniversary, dtDate) do
Note: See TracChangeset for help on using the changeset viewer.