- Timestamp:
- Dec 9, 2021, 12:31:17 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContacts.lfm
r53 r61 14 14 object ListView1: TListView 15 15 Left = 0 16 Height = 8 0116 Height = 810 17 17 Top = 0 18 18 Width = 1210 … … 36 36 end 37 37 item 38 Caption = 'Cell phone' 38 Caption = 'Phone' 39 Width = 150 40 end 41 item 42 Caption = 'Mobile' 39 43 Width = 150 40 44 end 41 45 item 42 46 Caption = 'Home phone' 43 Width = 295 47 Width = 150 48 end 49 item 50 Caption = 'Work phone' 51 Width = 150 44 52 end> 45 53 MultiSelect = True … … 58 66 Left = 0 59 67 Height = 39 60 Top = 8 3368 Top = 842 61 69 Width = 1210 62 70 Align = alBottom … … 106 114 Left = 0 107 115 Height = 32 108 Top = 8 01116 Top = 810 109 117 Width = 1210 110 118 OnChange = ListViewFilter1Change … … 113 121 object StatusBar1: TStatusBar 114 122 Left = 0 115 Height = 36116 Top = 8 72123 Height = 27 124 Top = 881 117 125 Width = 1210 118 126 Panels = < -
trunk/Forms/UFormContacts.lrj
r53 r61 5 5 {"hash":36093573,"name":"tformcontacts.listview1.columns[2].caption","sourcebytes":[77,105,100,100,108,101,32,110,97,109,101],"value":"Middle name"}, 6 6 {"hash":174397109,"name":"tformcontacts.listview1.columns[3].caption","sourcebytes":[76,97,115,116,32,78,97,109,101],"value":"Last Name"}, 7 {"hash":242387557,"name":"tformcontacts.listview1.columns[4].caption","sourcebytes":[67,101,108,108,32,112,104,111,110,101],"value":"Cell phone"}, 8 {"hash":124920949,"name":"tformcontacts.listview1.columns[5].caption","sourcebytes":[72,111,109,101,32,112,104,111,110,101],"value":"Home phone"}, 7 {"hash":5699141,"name":"tformcontacts.listview1.columns[4].caption","sourcebytes":[80,104,111,110,101],"value":"Phone"}, 8 {"hash":88444965,"name":"tformcontacts.listview1.columns[5].caption","sourcebytes":[77,111,98,105,108,101],"value":"Mobile"}, 9 {"hash":124920949,"name":"tformcontacts.listview1.columns[6].caption","sourcebytes":[72,111,109,101,32,112,104,111,110,101],"value":"Home phone"}, 10 {"hash":225645765,"name":"tformcontacts.listview1.columns[7].caption","sourcebytes":[87,111,114,107,32,112,104,111,110,101],"value":"Work phone"}, 9 11 {"hash":18340,"name":"tformcontacts.aadd.caption","sourcebytes":[65,100,100],"value":"Add"}, 10 12 {"hash":88453081,"name":"tformcontacts.amodify.caption","sourcebytes":[77,111,100,105,102,121],"value":"Modify"}, -
trunk/Forms/UFormContacts.pas
r53 r61 120 120 AddItem(Fields[cfMiddleName]); 121 121 AddItem(Fields[cfLastName]); 122 AddItem(Fields[cfTel]); 122 123 AddItem(Fields[cfTelCell]); 123 124 AddItem(Fields[cfTelHome]); 125 AddItem(Fields[cfTelWork]); 124 126 Item.Data := ListViewSort1.List[Item.Index]; 125 127 end; … … 158 160 2: Result := CompareString(TContact(Item1).Fields[cfMiddleName], TContact(Item2).Fields[cfMiddleName]); 159 161 3: Result := CompareString(TContact(Item1).Fields[cfLastName], TContact(Item2).Fields[cfLastName]); 160 4: Result := CompareString(TContact(Item1).Fields[cfTelCell], TContact(Item2).Fields[cfTelCell]); 161 5: Result := CompareString(TContact(Item1).Fields[cfTelHome], TContact(Item2).Fields[cfTelHome]); 162 4: Result := CompareString(TContact(Item1).Fields[cfTel], TContact(Item2).Fields[cfTel]); 163 5: Result := CompareString(TContact(Item1).Fields[cfTelCell], TContact(Item2).Fields[cfTelCell]); 164 6: Result := CompareString(TContact(Item1).Fields[cfTelHome], TContact(Item2).Fields[cfTelHome]); 165 7: Result := CompareString(TContact(Item1).Fields[cfTelWork], TContact(Item2).Fields[cfTelWork]); 162 166 end; 163 167 if ListViewSort1.Order = soDown then Result := -Result; … … 196 200 UTF8LowerCase(TContact(List.Items[I]).Fields[cfLastName])) > 0 then Inc(FoundCount); 197 201 if Pos(UTF8LowerCase(StringGrid.Cells[4, 0]), 202 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTel])) > 0 then Inc(FoundCount); 203 if Pos(UTF8LowerCase(StringGrid.Cells[5, 0]), 198 204 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTelCell])) > 0 then Inc(FoundCount); 199 if Pos(UTF8LowerCase(StringGrid.Cells[ 5, 0]),205 if Pos(UTF8LowerCase(StringGrid.Cells[6, 0]), 200 206 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTelHome])) > 0 then Inc(FoundCount); 207 if Pos(UTF8LowerCase(StringGrid.Cells[7, 0]), 208 UTF8LowerCase(TContact(List.Items[I]).Fields[cfTelWork])) > 0 then Inc(FoundCount); 201 209 if FoundCount <> EnteredCount then List.Delete(I); 202 210 end; -
trunk/Languages/vCardStudio.cs.po
r59 r61 508 508 #: tformcontacts.listview1.columns[4].caption 509 509 msgctxt "tformcontacts.listview1.columns[4].caption" 510 msgid " Cell phone"511 msgstr " Mobilní telefon"510 msgid "Phone" 511 msgstr "Telefon" 512 512 513 513 #: tformcontacts.listview1.columns[5].caption 514 514 msgctxt "tformcontacts.listview1.columns[5].caption" 515 msgid "Mobile" 516 msgstr "Mobil" 517 518 #: tformcontacts.listview1.columns[6].caption 519 msgctxt "tformcontacts.listview1.columns[6].caption" 515 520 msgid "Home phone" 516 521 msgstr "Domácí telefon" 522 523 #: tformcontacts.listview1.columns[7].caption 524 msgctxt "tformcontacts.listview1.columns[7].caption" 525 msgid "Work phone" 526 msgstr "Pracovní telefon" 517 527 518 528 #: tformerror.caption … … 1031 1041 1032 1042 #: ucontact.sworkphone 1043 msgctxt "ucontact.sworkphone" 1033 1044 msgid "Work phone" 1034 1045 msgstr "Pracovní telefon" … … 1128 1139 msgid "Invalid line length for encoded text" 1129 1140 msgstr "Neplatná délka řádky kódovaného textu" 1130 -
trunk/Languages/vCardStudio.po
r59 r61 498 498 #: tformcontacts.listview1.columns[4].caption 499 499 msgctxt "tformcontacts.listview1.columns[4].caption" 500 msgid " Cell phone"500 msgid "Phone" 501 501 msgstr "" 502 502 503 503 #: tformcontacts.listview1.columns[5].caption 504 504 msgctxt "tformcontacts.listview1.columns[5].caption" 505 msgid "Mobile" 506 msgstr "" 507 508 #: tformcontacts.listview1.columns[6].caption 509 msgctxt "tformcontacts.listview1.columns[6].caption" 505 510 msgid "Home phone" 511 msgstr "" 512 513 #: tformcontacts.listview1.columns[7].caption 514 msgctxt "tformcontacts.listview1.columns[7].caption" 515 msgid "Work phone" 506 516 msgstr "" 507 517 … … 1019 1029 1020 1030 #: ucontact.sworkphone 1031 msgctxt "ucontact.sworkphone" 1021 1032 msgid "Work phone" 1022 1033 msgstr "" -
trunk/UContact.pas
r60 r61 640 640 var 641 641 I: Integer; 642 C: Integer; 643 begin 644 C := Count; 642 begin 645 643 I := 0; 646 644 while (I < Count) and (Items[I].SysName <> SysName) do Inc(I); … … 653 651 var 654 652 I: Integer; 655 C: Integer; 656 begin 657 C := Count; 653 begin 658 654 I := 0; 659 655 while (I < Count) and not Items[I].Match(SysName, Groups) do Inc(I); … … 951 947 try 952 948 Lines.LoadFromFile(FileName); 949 {$IF FPC_FULLVERSION>=30200} 953 950 if (Length(Lines.Text) > 0) and (Pos(VCardBegin, Lines.Text) = 0) then begin 954 951 Lines.LoadFromFile(FileName, TEncoding.Unicode); … … 957 954 end; 958 955 end; 956 {$ENDIF} 959 957 LoadFromStrings(Lines); 960 958 finally … … 1124 1122 Lines := TStringList.Create; 1125 1123 Lines.LoadFromFile(FileName); 1124 {$IF FPC_FULLVERSION>=30200} 1126 1125 if (Length(Lines.Text) > 0) and (Pos(VCardBegin, Lines.Text) = 0) then begin 1127 1126 Lines.LoadFromFile(FileName, TEncoding.Unicode); … … 1130 1129 end; 1131 1130 end; 1131 {$ENDIF} 1132 1132 try 1133 1133 I := 0; -
trunk/UCore.lfm
r29 r61 501 501 AppName = 'vCard Studio' 502 502 Description = 'vCard files management tool' 503 ReleaseDate = 445 24503 ReleaseDate = 44539 504 504 RegistryKey = '\Software\Chronosoft\vCard Studio' 505 505 RegistryRoot = rrKeyCurrentUser
Note:
See TracChangeset
for help on using the changeset viewer.