Changeset 9
- Timestamp:
- Feb 1, 2018, 1:41:56 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.lfm
r8 r9 17 17 Top = 8 18 18 Width = 744 19 ActivePage = TabSheet All19 ActivePage = TabSheetGeneral 20 20 Anchors = [akTop, akLeft, akRight, akBottom] 21 TabIndex = 221 TabIndex = 0 22 22 TabOrder = 0 23 23 object TabSheetGeneral: TTabSheet … … 34 34 end 35 35 object EditName: TEdit 36 Left = 1 0037 Height = 28 38 Top = 1 536 Left = 120 37 Height = 28 38 Top = 16 39 39 Width = 212 40 40 TabOrder = 0 … … 49 49 end 50 50 object EditCellPhone: TEdit 51 Left = 1 0052 Height = 28 53 Top = 4 951 Left = 120 52 Height = 28 53 Top = 47 54 54 Width = 212 55 55 TabOrder = 1 56 56 end 57 57 object EditPhone: TEdit 58 Left = 1 0058 Left = 120 59 59 Height = 28 60 60 Top = 83 … … 78 78 end 79 79 object Label4: TLabel 80 Left = 3 9280 Left = 360 81 81 Height = 20 82 82 Top = 47 … … 93 93 end 94 94 object Label5: TLabel 95 Left = 3 9295 Left = 360 96 96 Height = 20 97 97 Top = 13 … … 102 102 object MemoNotes: TMemo 103 103 Left = 13 104 Height = 225105 Top = 1 52104 Height = 185 105 Top = 192 106 106 Width = 708 107 107 Anchors = [akTop, akLeft, akRight, akBottom] … … 109 109 end 110 110 object Label6: TLabel 111 Left = 1 2112 Height = 20 113 Top = 1 26111 Left = 16 112 Height = 20 113 Top = 168 114 114 Width = 42 115 115 Caption = 'Notes:' 116 ParentColor = False 117 end 118 object EditEmailHome: TEdit 119 Left = 479 120 Height = 28 121 Top = 83 122 Width = 212 123 TabOrder = 6 124 end 125 object Label20: TLabel 126 Left = 360 127 Height = 20 128 Top = 80 129 Width = 101 130 Caption = 'E-mail (Home):' 131 ParentColor = False 132 end 133 object EditEmailWork: TEdit 134 Left = 479 135 Height = 28 136 Top = 122 137 Width = 212 138 TabOrder = 7 139 end 140 object Label21: TLabel 141 Left = 360 142 Height = 20 143 Top = 120 144 Width = 95 145 Caption = 'E-mail (Work):' 146 ParentColor = False 147 end 148 object EditBirthday: TEdit 149 Left = 120 150 Height = 28 151 Top = 120 152 Width = 212 153 TabOrder = 8 154 end 155 object Label22: TLabel 156 Left = 13 157 Height = 20 158 Top = 120 159 Width = 58 160 Caption = 'Birthday:' 116 161 ParentColor = False 117 162 end … … 119 164 object TabSheetDetails: TTabSheet 120 165 Caption = 'Details' 166 ClientHeight = 391 167 ClientWidth = 736 168 object Label7: TLabel 169 Left = 8 170 Height = 20 171 Top = 15 172 Width = 99 173 Caption = 'Phone (Home):' 174 ParentColor = False 175 end 176 object EditPhoneHome: TEdit 177 Left = 144 178 Height = 28 179 Top = 15 180 Width = 212 181 TabOrder = 0 182 end 183 object Label8: TLabel 184 Left = 8 185 Height = 20 186 Top = 51 187 Width = 93 188 Caption = 'Phone (Work):' 189 ParentColor = False 190 end 191 object EditPhoneWork: TEdit 192 Left = 144 193 Height = 28 194 Top = 51 195 Width = 212 196 TabOrder = 1 197 end 198 object Label9: TLabel 199 Left = 8 200 Height = 20 201 Top = 88 202 Width = 129 203 Caption = 'Cell phone (Home):' 204 ParentColor = False 205 end 206 object EditCellPhoneHome: TEdit 207 Left = 144 208 Height = 28 209 Top = 90 210 Width = 212 211 TabOrder = 2 212 end 213 object Label10: TLabel 214 Left = 8 215 Height = 20 216 Top = 122 217 Width = 123 218 Caption = 'Cell phone (Work):' 219 ParentColor = False 220 end 221 object EditCellPhoneWork: TEdit 222 Left = 144 223 Height = 28 224 Top = 122 225 Width = 212 226 TabOrder = 3 227 end 228 object Label11: TLabel 229 Left = 376 230 Height = 20 231 Top = 13 232 Width = 25 233 Caption = 'Fax:' 234 ParentColor = False 235 end 236 object EditFax: TEdit 237 Left = 487 238 Height = 28 239 Top = 15 240 Width = 212 241 TabOrder = 4 242 end 243 object Label12: TLabel 244 Left = 376 245 Height = 20 246 Top = 48 247 Width = 80 248 Caption = 'Fax (Home):' 249 ParentColor = False 250 end 251 object EditFaxHome: TEdit 252 Left = 487 253 Height = 28 254 Top = 51 255 Width = 212 256 TabOrder = 5 257 end 258 object Label13: TLabel 259 Left = 376 260 Height = 20 261 Top = 88 262 Width = 74 263 Caption = 'Fax (Work):' 264 ParentColor = False 265 end 266 object EditFaxWork: TEdit 267 Left = 487 268 Height = 28 269 Top = 90 270 Width = 212 271 TabOrder = 6 272 end 273 object Label14: TLabel 274 Left = 376 275 Height = 20 276 Top = 120 277 Width = 41 278 Caption = 'Pager:' 279 ParentColor = False 280 end 281 object EditPager: TEdit 282 Left = 487 283 Height = 28 284 Top = 122 285 Width = 212 286 TabOrder = 7 287 end 288 object Label15: TLabel 289 Left = 8 290 Height = 20 291 Top = 184 292 Width = 72 293 Caption = 'Web page:' 294 ParentColor = False 295 end 296 object EditWebPage: TEdit 297 Left = 144 298 Height = 28 299 Top = 184 300 Width = 212 301 TabOrder = 8 302 end 303 object Label16: TLabel 304 Left = 8 305 Height = 20 306 Top = 216 307 Width = 127 308 Caption = 'Web page (Home):' 309 ParentColor = False 310 end 311 object EditWebPageHome: TEdit 312 Left = 144 313 Height = 28 314 Top = 216 315 Width = 212 316 TabOrder = 9 317 end 318 object Label17: TLabel 319 Left = 8 320 Height = 20 321 Top = 248 322 Width = 121 323 Caption = 'Web page (Work):' 324 ParentColor = False 325 end 326 object EditWebPageWork: TEdit 327 Left = 144 328 Height = 28 329 Top = 248 330 Width = 212 331 TabOrder = 10 332 end 333 object Label18: TLabel 334 Left = 375 335 Height = 20 336 Top = 184 337 Width = 32 338 Caption = 'Title:' 339 ParentColor = False 340 end 341 object EditTitle: TEdit 342 Left = 487 343 Height = 28 344 Top = 184 345 Width = 212 346 TabOrder = 11 347 end 348 object Label19: TLabel 349 Left = 375 350 Height = 20 351 Top = 216 352 Width = 56 353 Caption = 'Address:' 354 ParentColor = False 355 end 356 object EditAddress: TEdit 357 Left = 488 358 Height = 28 359 Top = 216 360 Width = 212 361 TabOrder = 12 362 end 363 object LabelOrganization: TLabel 364 Left = 376 365 Height = 20 366 Top = 248 367 Width = 89 368 Caption = 'Organization:' 369 ParentColor = False 370 end 371 object EditOrganization: TEdit 372 Left = 487 373 Height = 28 374 Top = 248 375 Width = 212 376 TabOrder = 13 377 end 121 378 end 122 379 object TabSheetAll: TTabSheet … … 124 381 ClientHeight = 391 125 382 ClientWidth = 736 383 OnShow = TabSheetAllShow 126 384 object ListView1: TListView 127 385 Left = 8 … … 139 397 Width = 200 140 398 end> 399 OwnerData = True 141 400 ReadOnly = True 142 401 RowSelect = True -
trunk/Forms/UFormContact.pas
r8 r9 16 16 ButtonCancel: TButton; 17 17 ButtonOk: TButton; 18 EditWebPage: TEdit; 19 EditWebPageHome: TEdit; 20 EditWebPageWork: TEdit; 21 EditEmailHome: TEdit; 22 EditEmailWork: TEdit; 23 EditBirthday: TEdit; 24 EditTitle: TEdit; 25 EditAddress: TEdit; 26 EditOrganization: TEdit; 27 EditPhoneHome: TEdit; 28 EditPhoneWork: TEdit; 29 EditCellPhoneHome: TEdit; 30 EditCellPhoneWork: TEdit; 31 EditFax: TEdit; 32 EditFaxHome: TEdit; 33 EditFaxWork: TEdit; 34 EditPager: TEdit; 18 35 EditSurname: TEdit; 19 36 EditEmail: TEdit; … … 22 39 EditCellPhone: TEdit; 23 40 Label1: TLabel; 41 Label10: TLabel; 42 Label11: TLabel; 43 Label12: TLabel; 44 Label13: TLabel; 45 Label14: TLabel; 46 Label15: TLabel; 47 Label16: TLabel; 48 Label17: TLabel; 49 Label18: TLabel; 50 Label19: TLabel; 24 51 Label2: TLabel; 52 Label20: TLabel; 53 Label21: TLabel; 54 Label22: TLabel; 55 LabelOrganization: TLabel; 25 56 Label3: TLabel; 26 57 Label4: TLabel; 27 58 Label5: TLabel; 28 59 Label6: TLabel; 60 Label7: TLabel; 61 Label8: TLabel; 62 Label9: TLabel; 29 63 ListView1: TListView; 30 64 MemoNotes: TMemo; … … 37 71 procedure FormShow(Sender: TObject); 38 72 procedure ListView1Data(Sender: TObject; Item: TListItem); 73 procedure TabSheetAllShow(Sender: TObject); 39 74 private 40 75 Contact: TContact; … … 61 96 Core.PersistentForm1.Load(Self); 62 97 PageControlContact.TabIndex := 0; 63 ReloadFields;64 98 end; 65 99 … … 71 105 Item.SubItems.Add(Contact.Fields[Index]); 72 106 end; 107 end; 108 109 procedure TFormContact.TabSheetAllShow(Sender: TObject); 110 begin 111 ReloadFields; 73 112 end; 74 113 … … 96 135 begin 97 136 Self.Contact := Contact; 98 ReloadFields;99 137 EditName.Text := Contact.FirstName; 100 138 EditSurname.Text := Contact.LastName; 101 139 EditCellPhone.Text := Contact.TelCell; 102 EditPhone.Text := Contact.TelHome; 140 EditPhoneHome.Text := Contact.TelHome; 141 EditPhoneWork.Text := Contact.TelWork; 103 142 EditEmail.Text := Contact.EmailHome; 104 143 MemoNotes.Lines.Text := Contact.Note; 144 EditTitle.Text := Contact.Title; 145 EditOrganization.Text := Contact.Organization; 146 EditAddress.Text := Contact.AdrHome; 147 EditEmailHome.Text := Contact.EmailHome; 105 148 end; 106 149 … … 110 153 Contact.LastName := EditSurname.Text; 111 154 Contact.TelCell := EditCellPhone.Text; 112 Contact.TelHome := EditPhone.Text; 155 Contact.TelHome := EditPhoneHome.Text; 156 Contact.TelWork := EditPhoneWork.Text; 113 157 Contact.EmailHome := EditEmail.Text; 114 158 Contact.Note := MemoNotes.Lines.Text; 159 Contact.Title := EditTitle.Text; 160 Contact.Organization := EditOrganization.Text; 161 Contact.AdrHome := EditAddress.Text; 162 Contact.EmailHome := EditEmailHome.Text; 115 163 end; 116 164 -
trunk/Languages/vCardStudio.cs.po
r8 r9 91 91 msgstr "Jméno:" 92 92 93 #: tformcontact.label10.caption 94 msgctxt "tformcontact.label10.caption" 95 msgid "Cell phone (Work):" 96 msgstr "" 97 98 #: tformcontact.label11.caption 99 msgid "Fax:" 100 msgstr "" 101 102 #: tformcontact.label12.caption 103 msgid "Fax (Home):" 104 msgstr "" 105 106 #: tformcontact.label13.caption 107 msgid "Fax (Work):" 108 msgstr "" 109 110 #: tformcontact.label14.caption 111 msgid "Pager:" 112 msgstr "" 113 114 #: tformcontact.label15.caption 115 msgctxt "tformcontact.label15.caption" 116 msgid "Web page:" 117 msgstr "" 118 119 #: tformcontact.label16.caption 120 msgctxt "tformcontact.label16.caption" 121 msgid "Web page (Home):" 122 msgstr "" 123 124 #: tformcontact.label17.caption 125 msgctxt "tformcontact.label17.caption" 126 msgid "Web page (Work):" 127 msgstr "" 128 129 #: tformcontact.label18.caption 130 msgid "Title:" 131 msgstr "" 132 133 #: tformcontact.label19.caption 134 msgid "Address:" 135 msgstr "" 136 93 137 #: tformcontact.label2.caption 94 138 msgid "Cell phone:" 95 139 msgstr "Mobilní číslo:" 96 140 141 #: tformcontact.label20.caption 142 msgid "E-mail (Home):" 143 msgstr "" 144 145 #: tformcontact.label21.caption 146 msgid "E-mail (Work):" 147 msgstr "" 148 149 #: tformcontact.label22.caption 150 msgid "Birthday:" 151 msgstr "" 152 97 153 #: tformcontact.label3.caption 98 154 msgid "Phone:" … … 110 166 msgid "Notes:" 111 167 msgstr "Poznámky:" 168 169 #: tformcontact.label7.caption 170 msgid "Phone (Home):" 171 msgstr "" 172 173 #: tformcontact.label8.caption 174 msgid "Phone (Work):" 175 msgstr "" 176 177 #: tformcontact.label9.caption 178 msgid "Cell phone (Home):" 179 msgstr "" 180 181 #: tformcontact.labelorganization.caption 182 msgid "Organization:" 183 msgstr "" 112 184 113 185 #: tformcontact.listview1.columns[0].caption -
trunk/Languages/vCardStudio.po
r8 r9 81 81 msgstr "" 82 82 83 #: tformcontact.label10.caption 84 msgctxt "tformcontact.label10.caption" 85 msgid "Cell phone (Work):" 86 msgstr "" 87 88 #: tformcontact.label11.caption 89 msgid "Fax:" 90 msgstr "" 91 92 #: tformcontact.label12.caption 93 msgid "Fax (Home):" 94 msgstr "" 95 96 #: tformcontact.label13.caption 97 msgid "Fax (Work):" 98 msgstr "" 99 100 #: tformcontact.label14.caption 101 msgid "Pager:" 102 msgstr "" 103 104 #: tformcontact.label15.caption 105 msgctxt "tformcontact.label15.caption" 106 msgid "Web page:" 107 msgstr "" 108 109 #: tformcontact.label16.caption 110 msgctxt "tformcontact.label16.caption" 111 msgid "Web page (Home):" 112 msgstr "" 113 114 #: tformcontact.label17.caption 115 msgctxt "tformcontact.label17.caption" 116 msgid "Web page (Work):" 117 msgstr "" 118 119 #: tformcontact.label18.caption 120 msgid "Title:" 121 msgstr "" 122 123 #: tformcontact.label19.caption 124 msgid "Address:" 125 msgstr "" 126 83 127 #: tformcontact.label2.caption 84 128 msgid "Cell phone:" 85 129 msgstr "" 86 130 131 #: tformcontact.label20.caption 132 msgid "E-mail (Home):" 133 msgstr "" 134 135 #: tformcontact.label21.caption 136 msgid "E-mail (Work):" 137 msgstr "" 138 139 #: tformcontact.label22.caption 140 msgid "Birthday:" 141 msgstr "" 142 87 143 #: tformcontact.label3.caption 88 144 msgid "Phone:" … … 99 155 #: tformcontact.label6.caption 100 156 msgid "Notes:" 157 msgstr "" 158 159 #: tformcontact.label7.caption 160 msgid "Phone (Home):" 161 msgstr "" 162 163 #: tformcontact.label8.caption 164 msgid "Phone (Work):" 165 msgstr "" 166 167 #: tformcontact.label9.caption 168 msgid "Cell phone (Home):" 169 msgstr "" 170 171 #: tformcontact.labelorganization.caption 172 msgid "Organization:" 101 173 msgstr "" 102 174 -
trunk/UContact.pas
r8 r9 15 15 TDataType = (dtString, dtInteger, dtDate, dtDateTime, dtImage); 16 16 17 TContactFieldIndex = (cfFirstName, cfMiddleName, cfLastName); 17 TContactFieldIndex = (cfFirstName, cfMiddleName, cfLastName, cfTelPrefCell, 18 cfTelCell, cfTelHome, cfTelHome2, cfTelWork, cfTitle, cfOrganization, 19 cfAddress, cfNote); 18 20 19 21 TContactField = class … … 60 62 Note: string; 61 63 Role: string; 64 Title: string; 62 65 Categories: string; 63 66 Organization: string; … … 124 127 cfMiddleName: Result := MiddleName; 125 128 cfLastName: Result := LastName; 129 cfTelPrefCell: Result := TelPrefCell; 130 cfTelCell: Result := TelCell; 131 cfTelHome: Result := TelHome; 132 cfTelHome2: Result := TelHome2; 133 cfTelWork: Result := TelWork; 134 cfTitle: Result := Title; 135 cfOrganization: Result := Organization; 136 cfAddress: Result := AdrHome; 137 cfNote: Result := Note; 126 138 end; 127 139 end; … … 133 145 cfMiddleName: MiddleName := AValue; 134 146 cfLastName: LastName := AValue; 147 cfTelPrefCell: TelPrefCell := AValue; 148 cfTelCell: TelCell := AValue; 149 cfTelHome: TelHome := AValue; 150 cfTelHome2: TelHome2 := AValue; 151 cfTelWork: TelWork := AValue; 152 cfTitle: Title := AValue; 153 cfOrganization: Organization := AValue; 154 cfAddress: AdrHome := AValue; 155 cfNote: Note := AValue; 135 156 end; 136 157 end; … … 155 176 AddNew('Middle Name', cfMiddleName, dtString); 156 177 AddNew('Last Name', cfLastName, dtString); 178 AddNew('Preferred cell phone', cfTelPrefCell, dtString); 179 AddNew('Cell phone', cfTelCell, dtString); 180 AddNew('Home phone', cfTelHome, dtString); 181 AddNew('Home phone 2', cfTelHome2, dtString); 182 AddNew('Home work', cfTelWork, dtString); 183 AddNew('Title', cfTitle, dtString); 184 AddNew('Organization', cfOrganization, dtString); 185 AddNew('Address', cfAddress, dtString); 186 AddNew('Note', cfNote, dtString); 157 187 end; 158 188 end;
Note:
See TracChangeset
for help on using the changeset viewer.