- Timestamp:
- Nov 29, 2021, 2:17:26 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.lfm
r38 r39 1 1 object FormContact: TFormContact 2 2 Left = 604 3 Height = 6563 Height = 865 4 4 Top = 361 5 5 Width = 915 6 6 Caption = 'Contact' 7 ClientHeight = 6567 ClientHeight = 865 8 8 ClientWidth = 915 9 9 DesignTimePPI = 144 10 10 OnClose = FormClose 11 11 OnCreate = FormCreate 12 OnDestroy = FormDestroy 12 13 OnShow = FormShow 13 14 LCLVersion = '2.0.12.0' 14 15 object PageControlContact: TPageControl 15 Left = 1016 Height = 57616 Left = 8 17 Height = 785 17 18 Top = 8 18 19 Width = 893 19 ActivePage = TabSheet General20 ActivePage = TabSheetWork 20 21 Anchors = [akTop, akLeft, akRight, akBottom] 21 22 ParentFont = False 22 TabIndex = 023 TabIndex = 2 23 24 TabOrder = 0 24 25 object TabSheetGeneral: TTabSheet 25 26 Caption = 'General' 26 ClientHeight = 53627 ClientHeight = 745 27 28 ClientWidth = 883 29 OnShow = TabSheetGeneralShow 28 30 ParentFont = False 29 31 object Label1: TLabel … … 269 271 end 270 272 end 271 object TabSheet Details: TTabSheet272 Caption = ' Details'273 ClientHeight = 536273 object TabSheetPrivate: TTabSheet 274 Caption = 'Private' 275 ClientHeight = 745 274 276 ClientWidth = 883 277 OnShow = TabSheetGeneralShow 275 278 ParentFont = False 276 279 object Label7: TLabel … … 352 355 end 353 356 object EditFax: TEdit 354 Left = 584355 Height = 42 356 Top = 1 8357 Left = 608 358 Height = 42 359 Top = 16 357 360 Width = 254 358 361 ParentFont = False … … 369 372 end 370 373 object EditFaxHome: TEdit 371 Left = 584374 Left = 608 372 375 Height = 42 373 376 Top = 62 … … 386 389 end 387 390 object EditFaxWork: TEdit 388 Left = 584391 Left = 608 389 392 Height = 42 390 393 Top = 108 … … 403 406 end 404 407 object EditPager: TEdit 405 Left = 584408 Left = 608 406 409 Height = 42 407 410 Top = 152 … … 410 413 TabOrder = 7 411 414 end 412 object Label15: TLabel 413 Left = 10 414 Height = 24 415 Top = 224 416 Width = 89 417 Caption = 'Web page:' 418 ParentColor = False 419 ParentFont = False 420 end 421 object EditWebPage: TEdit 422 Left = 173 423 Height = 42 424 Top = 220 415 object EditAddressHomeStreet: TEdit 416 Left = 173 417 Height = 42 418 Top = 200 425 419 Width = 254 426 420 ParentFont = False 427 421 TabOrder = 8 428 422 end 429 object Label16: TLabel 430 Left = 10 431 Height = 24 432 Top = 272 433 Width = 155 434 Caption = 'Web page (Home):' 435 ParentColor = False 436 ParentFont = False 437 end 438 object EditWebPageHome: TEdit 439 Left = 173 440 Height = 42 441 Top = 262 423 object Label36: TLabel 424 Left = 10 425 Height = 24 426 Top = 210 427 Width = 54 428 Caption = 'Street:' 429 ParentColor = False 430 ParentFont = False 431 end 432 object Label37: TLabel 433 Left = 10 434 Height = 24 435 Top = 258 436 Width = 137 437 Caption = 'Extended street:' 438 ParentColor = False 439 ParentFont = False 440 end 441 object Label38: TLabel 442 Left = 10 443 Height = 24 444 Top = 304 445 Width = 64 446 Caption = 'Region:' 447 ParentColor = False 448 ParentFont = False 449 end 450 object Label39: TLabel 451 Left = 10 452 Height = 24 453 Top = 352 454 Width = 71 455 Caption = 'Country:' 456 ParentColor = False 457 ParentFont = False 458 end 459 object Label40: TLabel 460 Left = 10 461 Height = 24 462 Top = 400 463 Width = 114 464 Caption = 'Web address:' 465 ParentColor = False 466 ParentFont = False 467 end 468 object EditWebHome: TEdit 469 Left = 173 470 Height = 42 471 Top = 392 442 472 Width = 254 443 473 ParentFont = False 444 474 TabOrder = 9 445 475 end 446 object Label17: TLabel 447 Left = 10 448 Height = 24 449 Top = 312 450 Width = 148 451 Caption = 'Web page (Work):' 452 ParentColor = False 453 ParentFont = False 454 end 455 object EditWebPageWork: TEdit 456 Left = 173 457 Height = 42 458 Top = 306 476 object EditAddressHomeCountry: TEdit 477 Left = 173 478 Height = 42 479 Top = 344 459 480 Width = 254 460 481 ParentFont = False 461 482 TabOrder = 10 462 483 end 484 object EditAddressHomeRegion: TEdit 485 Left = 173 486 Height = 42 487 Top = 296 488 Width = 254 489 ParentFont = False 490 TabOrder = 11 491 end 492 object Label41: TLabel 493 Left = 451 494 Height = 24 495 Top = 342 496 Width = 103 497 Caption = 'Postal code:' 498 ParentColor = False 499 ParentFont = False 500 end 501 object EditAddressHomePostalCode: TEdit 502 Left = 608 503 Height = 42 504 Top = 334 505 Width = 254 506 ParentFont = False 507 TabOrder = 12 508 end 509 object EditAddressHomeCity: TEdit 510 Left = 608 511 Height = 42 512 Top = 248 513 Width = 254 514 ParentFont = False 515 TabOrder = 13 516 end 517 object Label42: TLabel 518 Left = 451 519 Height = 24 520 Top = 256 521 Width = 36 522 Caption = 'City:' 523 ParentColor = False 524 ParentFont = False 525 end 526 object Label43: TLabel 527 Left = 451 528 Height = 24 529 Top = 208 530 Width = 131 531 Caption = 'Post office box:' 532 ParentColor = False 533 ParentFont = False 534 end 535 object EditAddressHomePostOfficeBox: TEdit 536 Left = 608 537 Height = 42 538 Top = 200 539 Width = 254 540 ParentFont = False 541 TabOrder = 14 542 end 543 object EditAddressHomeStreetExtended: TEdit 544 Left = 173 545 Height = 42 546 Top = 248 547 Width = 254 548 ParentFont = False 549 TabOrder = 15 550 end 551 end 552 object TabSheetWork: TTabSheet 553 Caption = 'Work' 554 ClientHeight = 745 555 ClientWidth = 883 556 OnShow = TabSheetGeneralShow 557 object EditOrganization: TEdit 558 Left = 173 559 Height = 42 560 Top = 64 561 Width = 254 562 ParentFont = False 563 TabOrder = 0 564 end 565 object LabelOrganization: TLabel 566 Left = 10 567 Height = 24 568 Top = 70 569 Width = 114 570 Caption = 'Organization:' 571 ParentColor = False 572 ParentFont = False 573 end 574 object LabelOrganization1: TLabel 575 Left = 451 576 Height = 24 577 Top = 32 578 Width = 106 579 Caption = 'Department:' 580 ParentColor = False 581 ParentFont = False 582 end 583 object EditDepartment: TEdit 584 Left = 608 585 Height = 42 586 Top = 20 587 Width = 254 588 ParentFont = False 589 TabOrder = 1 590 end 463 591 object Label18: TLabel 464 Left = 450465 Height = 24 466 Top = 2 24592 Left = 10 593 Height = 24 594 Top = 20 467 595 Width = 41 468 596 Caption = 'Title:' … … 471 599 end 472 600 object EditTitle: TEdit 473 Left = 584 474 Height = 42 475 Top = 220 476 Width = 254 477 ParentFont = False 478 TabOrder = 11 479 end 480 object Label19: TLabel 481 Left = 450 482 Height = 24 483 Top = 272 484 Width = 74 485 Caption = 'Address:' 486 ParentColor = False 487 ParentFont = False 488 end 489 object EditAddress: TEdit 490 Left = 584 491 Height = 42 492 Top = 262 493 Width = 254 494 ParentFont = False 495 TabOrder = 12 496 end 497 object LabelOrganization: TLabel 498 Left = 448 601 Left = 173 602 Height = 42 603 Top = 16 604 Width = 254 605 ParentFont = False 606 TabOrder = 2 607 end 608 object Label28: TLabel 609 Left = 10 610 Height = 24 611 Top = 122 612 Width = 54 613 Caption = 'Street:' 614 ParentColor = False 615 ParentFont = False 616 end 617 object EditAddressWorkStreet: TEdit 618 Left = 173 619 Height = 42 620 Top = 112 621 Width = 254 622 ParentFont = False 623 TabOrder = 3 624 end 625 object Label29: TLabel 626 Left = 451 627 Height = 24 628 Top = 168 629 Width = 36 630 Caption = 'City:' 631 ParentColor = False 632 ParentFont = False 633 end 634 object EditAddressWorkCity: TEdit 635 Left = 608 636 Height = 42 637 Top = 160 638 Width = 254 639 ParentFont = False 640 TabOrder = 4 641 end 642 object Label30: TLabel 643 Left = 10 644 Height = 24 645 Top = 216 646 Width = 64 647 Caption = 'Region:' 648 ParentColor = False 649 ParentFont = False 650 end 651 object EditAddressWorkRegion: TEdit 652 Left = 173 653 Height = 42 654 Top = 216 655 Width = 254 656 ParentFont = False 657 TabOrder = 5 658 end 659 object EditAddressWorkCountry: TEdit 660 Left = 173 661 Height = 42 662 Top = 264 663 Width = 254 664 ParentFont = False 665 TabOrder = 6 666 end 667 object Label31: TLabel 668 Left = 10 669 Height = 24 670 Top = 264 671 Width = 71 672 Caption = 'Country:' 673 ParentColor = False 674 ParentFont = False 675 end 676 object EditWebWork: TEdit 677 Left = 173 678 Height = 42 679 Top = 312 680 Width = 254 681 ParentFont = False 682 TabOrder = 7 683 end 684 object Label32: TLabel 685 Left = 10 499 686 Height = 24 500 687 Top = 312 501 688 Width = 114 502 Caption = 'Organization:' 503 ParentColor = False 504 ParentFont = False 505 end 506 object EditOrganization: TEdit 507 Left = 584 508 Height = 42 509 Top = 306 510 Width = 254 511 ParentFont = False 512 TabOrder = 13 513 end 514 object LabelOrganization1: TLabel 515 Left = 450 516 Height = 24 517 Top = 360 518 Width = 106 519 Caption = 'Department:' 520 ParentColor = False 521 ParentFont = False 522 end 523 object EditDepartment: TEdit 524 Left = 584 525 Height = 42 526 Top = 348 527 Width = 254 528 ParentFont = False 529 TabOrder = 14 689 Caption = 'Web address:' 690 ParentColor = False 691 ParentFont = False 692 end 693 object EditAddressWorkPostalCode: TEdit 694 Left = 608 695 Height = 42 696 Top = 246 697 Width = 254 698 ParentFont = False 699 TabOrder = 8 700 end 701 object Label33: TLabel 702 Left = 451 703 Height = 24 704 Top = 254 705 Width = 103 706 Caption = 'Postal code:' 707 ParentColor = False 708 ParentFont = False 709 end 710 object EditAddressWorkPostOfficeBox: TEdit 711 Left = 608 712 Height = 42 713 Top = 112 714 Width = 254 715 ParentFont = False 716 TabOrder = 9 717 end 718 object Label34: TLabel 719 Left = 451 720 Height = 24 721 Top = 122 722 Width = 131 723 Caption = 'Post office box:' 724 ParentColor = False 725 ParentFont = False 726 end 727 object Label35: TLabel 728 Left = 10 729 Height = 24 730 Top = 170 731 Width = 137 732 Caption = 'Extended street:' 733 ParentColor = False 734 ParentFont = False 735 end 736 object EditAddressWorkStreetExtended: TEdit 737 Left = 173 738 Height = 42 739 Top = 168 740 Width = 254 741 ParentFont = False 742 TabOrder = 10 530 743 end 531 744 end 532 745 object TabSheetAll: TTabSheet 533 746 Caption = 'All fields' 534 ClientHeight = 536535 ClientWidth = 883536 747 OnShow = TabSheetAllShow 537 748 ParentFont = False 538 object ListView1: TListView539 Left = 10540 Height = 509541 Top = 19542 Width = 865543 Anchors = [akTop, akLeft, akRight, akBottom]544 Columns = <545 item546 Caption = 'Name'547 Width = 100548 end549 item550 Caption = 'Attributes'551 Width = 200552 end553 item554 Caption = 'Value'555 Width = 550556 end>557 OwnerData = True558 ParentFont = False559 PopupMenu = PopupMenu1560 ReadOnly = True561 RowSelect = True562 TabOrder = 0563 ViewStyle = vsReport564 OnData = ListView1Data565 OnDblClick = AEditFieldExecute566 end567 749 end 568 750 end … … 570 752 Left = 788 571 753 Height = 37 572 Top = 606754 Top = 815 573 755 Width = 115 574 756 Anchors = [akRight, akBottom] … … 581 763 Left = 653 582 764 Height = 37 583 Top = 606765 Top = 815 584 766 Width = 119 585 767 Anchors = [akRight, akBottom] 586 768 Caption = 'OK' 587 769 ModalResult = 1 770 OnClick = ButtonOkClick 588 771 ParentFont = False 589 772 TabOrder = 2 … … 595 778 object AEditField: TAction 596 779 Caption = 'Edit' 597 OnExecute = AEditFieldExecute598 780 end 599 781 end -
trunk/Forms/UFormContact.lrj
r33 r39 16 16 {"hash":62410682,"name":"tformcontact.label26.caption","sourcebytes":[84,105,116,108,101,32,98,101,102,111,114,101,58],"value":"Title before:"}, 17 17 {"hash":63774250,"name":"tformcontact.label27.caption","sourcebytes":[84,105,116,108,101,32,97,102,116,101,114,58],"value":"Title after:"}, 18 {"hash":1 81043315,"name":"tformcontact.tabsheetdetails.caption","sourcebytes":[68,101,116,97,105,108,115],"value":"Details"},18 {"hash":126929141,"name":"tformcontact.tabsheetprivate.caption","sourcebytes":[80,114,105,118,97,116,101],"value":"Private"}, 19 19 {"hash":170160314,"name":"tformcontact.label7.caption","sourcebytes":[80,104,111,110,101,32,40,72,111,109,101,41,58],"value":"Phone (Home):"}, 20 20 {"hash":187747002,"name":"tformcontact.label8.caption","sourcebytes":[80,104,111,110,101,32,40,87,111,114,107,41,58],"value":"Phone (Work):"}, … … 25 25 {"hash":229246954,"name":"tformcontact.label13.caption","sourcebytes":[70,97,120,32,40,87,111,114,107,41,58],"value":"Fax (Work):"}, 26 26 {"hash":90692698,"name":"tformcontact.label14.caption","sourcebytes":[80,97,103,101,114,58],"value":"Pager:"}, 27 {"hash":74850362,"name":"tformcontact.label15.caption","sourcebytes":[87,101,98,32,112,97,103,101,58],"value":"Web page:"}, 28 {"hash":194526122,"name":"tformcontact.label16.caption","sourcebytes":[87,101,98,32,112,97,103,101,32,40,72,111,109,101,41,58],"value":"Web page (Home):"}, 29 {"hash":180650410,"name":"tformcontact.label17.caption","sourcebytes":[87,101,98,32,112,97,103,101,32,40,87,111,114,107,41,58],"value":"Web page (Work):"}, 30 {"hash":95466122,"name":"tformcontact.label18.caption","sourcebytes":[84,105,116,108,101,58],"value":"Title:"}, 31 {"hash":179883546,"name":"tformcontact.label19.caption","sourcebytes":[65,100,100,114,101,115,115,58],"value":"Address:"}, 27 {"hash":179878954,"name":"tformcontact.label36.caption","sourcebytes":[83,116,114,101,101,116,58],"value":"Street:"}, 28 {"hash":116835754,"name":"tformcontact.label37.caption","sourcebytes":[69,120,116,101,110,100,101,100,32,115,116,114,101,101,116,58],"value":"Extended street:"}, 29 {"hash":146671178,"name":"tformcontact.label38.caption","sourcebytes":[82,101,103,105,111,110,58],"value":"Region:"}, 30 {"hash":113622378,"name":"tformcontact.label39.caption","sourcebytes":[67,111,117,110,116,114,121,58],"value":"Country:"}, 31 {"hash":258182170,"name":"tformcontact.label40.caption","sourcebytes":[87,101,98,32,97,100,100,114,101,115,115,58],"value":"Web address:"}, 32 {"hash":186708218,"name":"tformcontact.label41.caption","sourcebytes":[80,111,115,116,97,108,32,99,111,100,101,58],"value":"Postal code:"}, 33 {"hash":4852682,"name":"tformcontact.label42.caption","sourcebytes":[67,105,116,121,58],"value":"City:"}, 34 {"hash":252071146,"name":"tformcontact.label43.caption","sourcebytes":[80,111,115,116,32,111,102,102,105,99,101,32,98,111,120,58],"value":"Post office box:"}, 35 {"hash":386699,"name":"tformcontact.tabsheetwork.caption","sourcebytes":[87,111,114,107],"value":"Work"}, 32 36 {"hash":101155194,"name":"tformcontact.labelorganization.caption","sourcebytes":[79,114,103,97,110,105,122,97,116,105,111,110,58],"value":"Organization:"}, 33 37 {"hash":167347194,"name":"tformcontact.labelorganization1.caption","sourcebytes":[68,101,112,97,114,116,109,101,110,116,58],"value":"Department:"}, 38 {"hash":95466122,"name":"tformcontact.label18.caption","sourcebytes":[84,105,116,108,101,58],"value":"Title:"}, 39 {"hash":179878954,"name":"tformcontact.label28.caption","sourcebytes":[83,116,114,101,101,116,58],"value":"Street:"}, 40 {"hash":4852682,"name":"tformcontact.label29.caption","sourcebytes":[67,105,116,121,58],"value":"City:"}, 41 {"hash":146671178,"name":"tformcontact.label30.caption","sourcebytes":[82,101,103,105,111,110,58],"value":"Region:"}, 42 {"hash":113622378,"name":"tformcontact.label31.caption","sourcebytes":[67,111,117,110,116,114,121,58],"value":"Country:"}, 43 {"hash":258182170,"name":"tformcontact.label32.caption","sourcebytes":[87,101,98,32,97,100,100,114,101,115,115,58],"value":"Web address:"}, 44 {"hash":186708218,"name":"tformcontact.label33.caption","sourcebytes":[80,111,115,116,97,108,32,99,111,100,101,58],"value":"Postal code:"}, 45 {"hash":252071146,"name":"tformcontact.label34.caption","sourcebytes":[80,111,115,116,32,111,102,102,105,99,101,32,98,111,120,58],"value":"Post office box:"}, 46 {"hash":116835754,"name":"tformcontact.label35.caption","sourcebytes":[69,120,116,101,110,100,101,100,32,115,116,114,101,101,116,58],"value":"Extended street:"}, 34 47 {"hash":113983571,"name":"tformcontact.tabsheetall.caption","sourcebytes":[65,108,108,32,102,105,101,108,100,115],"value":"All fields"}, 35 {"hash":346165,"name":"tformcontact.listview1.columns[0].caption","sourcebytes":[78,97,109,101],"value":"Name"},36 {"hash":150815091,"name":"tformcontact.listview1.columns[1].caption","sourcebytes":[65,116,116,114,105,98,117,116,101,115],"value":"Attributes"},37 {"hash":6063029,"name":"tformcontact.listview1.columns[2].caption","sourcebytes":[86,97,108,117,101],"value":"Value"},38 48 {"hash":77089212,"name":"tformcontact.buttoncancel.caption","sourcebytes":[67,97,110,99,101,108],"value":"Cancel"}, 39 49 {"hash":1339,"name":"tformcontact.buttonok.caption","sourcebytes":[79,75],"value":"OK"}, -
trunk/Forms/UFormContact.pas
r38 r39 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, ActnList, Menus, ExtCtrls, UContact, base64 ;9 ComCtrls, ActnList, Menus, ExtCtrls, UContact, base64, UFormProperties; 10 10 11 11 type … … 18 18 ButtonCancel: TButton; 19 19 ButtonOk: TButton; 20 EditAddressHomeCity: TEdit; 21 EditAddressHomeCountry: TEdit; 22 EditAddressHomePostalCode: TEdit; 23 EditAddressHomePostOfficeBox: TEdit; 24 EditAddressHomeRegion: TEdit; 25 EditAddressHomeStreetExtended: TEdit; 26 EditAddressWorkStreet: TEdit; 27 EditAddressWorkCity: TEdit; 28 EditAddressWorkRegion: TEdit; 29 EditAddressWorkCountry: TEdit; 30 EditAddressHomeStreet: TEdit; 31 EditWebWork: TEdit; 32 EditAddressWorkPostalCode: TEdit; 33 EditAddressWorkPostOfficeBox: TEdit; 34 EditAddressWorkStreetExtended: TEdit; 20 35 EditDepartment: TEdit; 21 36 EditFullName: TEdit; 37 EditOrganization: TEdit; 38 EditTitle: TEdit; 22 39 EditTitleBefore: TEdit; 23 40 EditMiddleName: TEdit; 24 41 EditTitleAfter: TEdit; 25 EditWebPage: TEdit;26 EditWebPageHome: TEdit;27 EditWebPageWork: TEdit;28 42 EditEmailHome: TEdit; 29 43 EditEmailWork: TEdit; 30 44 EditBirthday: TEdit; 31 EditTitle: TEdit;32 EditAddress: TEdit;33 EditOrganization: TEdit;34 45 EditPhoneHome: TEdit; 35 46 EditPhoneWork: TEdit; … … 45 56 EditFirstName: TEdit; 46 57 EditCellPhone: TEdit; 58 EditWebHome: TEdit; 47 59 ImagePhoto: TImage; 48 60 Label1: TLabel; … … 52 64 Label13: TLabel; 53 65 Label14: TLabel; 54 Label15: TLabel;55 Label16: TLabel;56 Label17: TLabel;57 66 Label18: TLabel; 58 Label19: TLabel;59 67 Label2: TLabel; 60 68 Label20: TLabel; … … 66 74 Label26: TLabel; 67 75 Label27: TLabel; 68 LabelOrganization: TLabel; 76 Label28: TLabel; 77 Label29: TLabel; 69 78 Label3: TLabel; 79 Label30: TLabel; 80 Label31: TLabel; 81 Label32: TLabel; 82 Label33: TLabel; 83 Label34: TLabel; 84 Label35: TLabel; 85 Label36: TLabel; 86 Label37: TLabel; 87 Label38: TLabel; 88 Label39: TLabel; 70 89 Label4: TLabel; 90 Label40: TLabel; 91 Label41: TLabel; 92 Label42: TLabel; 93 Label43: TLabel; 71 94 Label5: TLabel; 72 95 Label6: TLabel; … … 74 97 Label8: TLabel; 75 98 Label9: TLabel; 99 LabelOrganization: TLabel; 76 100 LabelOrganization1: TLabel; 77 ListView1: TListView;78 101 MemoNotes: TMemo; 79 102 MenuItem1: TMenuItem; 80 103 PageControlContact: TPageControl; 81 104 PopupMenu1: TPopupMenu; 105 TabSheetWork: TTabSheet; 82 106 TabSheetGeneral: TTabSheet; 83 TabSheet Details: TTabSheet;107 TabSheetPrivate: TTabSheet; 84 108 TabSheetAll: TTabSheet; 85 procedure AEditFieldExecute(Sender: TObject);109 procedure ButtonOkClick(Sender: TObject); 86 110 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 87 111 procedure FormCreate(Sender: TObject); 112 procedure FormDestroy(Sender: TObject); 88 113 procedure FormShow(Sender: TObject); 89 114 procedure ListView1Data(Sender: TObject; Item: TListItem); 90 115 procedure TabSheetAllShow(Sender: TObject); 116 procedure TabSheetGeneralShow(Sender: TObject); 91 117 private 92 Contact: TContact; 118 FContact: TContact; 119 FormProperties: TFormProperties; 120 procedure SetContact(AValue: TContact); 93 121 public 94 procedure ReloadFields;95 procedure LoadData(Contact: TContact);96 pro cedure SaveData(Contact: TContact);122 procedure LoadData; 123 procedure SaveData; 124 property Contact: TContact read FContact write SetContact; 97 125 end; 98 126 … … 118 146 Core.PersistentForm1.Load(Self); 119 147 PageControlContact.TabIndex := 0; 148 149 FormProperties.ManualDock(TabSheetAll, nil, alClient); 150 FormProperties.Align := alClient; 151 FormProperties.Show; 120 152 end; 121 153 … … 133 165 procedure TFormContact.TabSheetAllShow(Sender: TObject); 134 166 begin 135 ReloadFields; 136 end; 137 138 procedure TFormContact.ReloadFields; 139 begin 140 if Assigned(Contact) then begin 141 ListView1.Items.Count := Contact.Properties.Count; 142 end else ListView1.Items.Count := 0; 143 ListView1.Refresh; 167 SaveData; 168 FormProperties.ReloadList; 169 FormProperties.UpdateInterface; 170 end; 171 172 procedure TFormContact.TabSheetGeneralShow(Sender: TObject); 173 begin 174 LoadData; 175 end; 176 177 procedure TFormContact.SetContact(AValue: TContact); 178 begin 179 if FContact = AValue then Exit; 180 FContact := AValue; 181 LoadData; 144 182 end; 145 183 … … 150 188 end; 151 189 152 procedure TFormContact.AEditFieldExecute(Sender: TObject); 153 begin 154 if Assigned(ListView1.Selected) then begin 155 TContactProperty(ListView1.Selected.Data).Values.DelimitedText := 156 InputBox(SFieldEdit, SEditFieldValue, TContactProperty(ListView1.Selected.Data).Values.DelimitedText); 157 end; 190 procedure TFormContact.ButtonOkClick(Sender: TObject); 191 begin 192 SaveData; 158 193 end; 159 194 … … 162 197 Core.Translator.TranslateComponentRecursive(Self); 163 198 Core.ThemeManager1.UseTheme(Self); 164 Contact := nil; 165 end; 166 167 procedure TFormContact.LoadData(Contact: TContact); 199 FContact := nil; 200 FormProperties := TFormProperties.Create(nil); 201 end; 202 203 procedure TFormContact.FormDestroy(Sender: TObject); 204 begin 205 FreeAndNil(FormProperties); 206 end; 207 208 procedure TFormContact.LoadData; 168 209 var 169 210 Photo: string; … … 172 213 PhotoProperty: TContactProperty; 173 214 begin 174 Self.Contact := Contact; 215 FormProperties.Properties := Contact.Properties; 216 175 217 EditFullName.Text := Contact.Fields[cfFullName]; 176 218 EditFirstName.Text := Contact.Fields[cfFirstName]; … … 184 226 EditEmail.Text := Contact.Fields[cfEmail]; 185 227 MemoNotes.Lines.Text := Contact.Fields[cfNote]; 228 229 // Work 186 230 EditTitle.Text := Contact.Fields[cfTitle]; 187 231 EditOrganization.Text := Contact.Fields[cfOrganization]; 188 232 EditDepartment.Text := Contact.Fields[cfDepartment]; 189 EditAddress.Text := Contact.Fields[cfHomeAddress]; 233 EditAddressWorkPostOfficeBox.Text := Contact.Fields[cfWorkAddressPostOfficeBox]; 234 EditAddressWorkStreet.Text := Contact.Fields[cfWorkAddressStreet]; 235 EditAddressWorkStreetExtended.Text := Contact.Fields[cfWorkAddressStreetExtended]; 236 EditAddressWorkCity.Text := Contact.Fields[cfWorkAddressCity]; 237 EditAddressWorkRegion.Text := Contact.Fields[cfWorkAddressRegion]; 238 EditAddressWorkCountry.Text := Contact.Fields[cfWorkAddressCountry]; 239 EditAddressWorkPostalCode.Text := Contact.Fields[cfWorkAddressPostalCode]; 240 EditWebHome.Text := Contact.Fields[cfUrlWork]; 241 242 // Private 243 EditAddressHomePostOfficeBox.Text := Contact.Fields[cfHomeAddressPostOfficeBox]; 244 EditAddressHomeStreet.Text := Contact.Fields[cfHomeAddressStreet]; 245 EditAddressHomeStreetExtended.Text := Contact.Fields[cfHomeAddressStreetExtended]; 246 EditAddressHomeCity.Text := Contact.Fields[cfHomeAddressCity]; 247 EditAddressHomeRegion.Text := Contact.Fields[cfHomeAddressRegion]; 248 EditAddressHomeCountry.Text := Contact.Fields[cfHomeAddressCountry]; 249 EditAddressHomePostalCode.Text := Contact.Fields[cfHomeAddressPostalCode]; 250 EditWebHome.Text := Contact.Fields[cfUrlHome]; 251 EditBirthday.Text := Contact.Fields[cfDayOfBirth]; 252 190 253 EditEmailHome.Text := Contact.Fields[cfEmail]; 191 EditWebPage.Text := Contact.Fields[cfUrl];192 EditBirthday.Text := Contact.Fields[cfDayOfBirth];193 194 254 ImagePhoto.Picture.Bitmap.Clear; 195 255 PhotoProperty := Contact.GetProperty(cfPhoto); … … 226 286 end; 227 287 228 procedure TFormContact.SaveData (Contact: TContact);288 procedure TFormContact.SaveData; 229 289 begin 230 290 Contact.Fields[cfFullName] := EditFullName.Text; … … 239 299 Contact.Fields[cfEmail] := EditEmail.Text; 240 300 Contact.Fields[cfNote] := MemoNotes.Lines.Text; 301 Contact.Fields[cfEmail] := EditEmailHome.Text; 302 Contact.Fields[cfDayOfBirth] := EditBirthday.Text; 303 304 // Work 241 305 Contact.Fields[cfTitle] := EditTitle.Text; 242 306 Contact.Fields[cfOrganization] := EditOrganization.Text; 243 307 Contact.Fields[cfDepartment] := EditDepartment.Text; 244 Contact.Fields[cfHomeAddress] := EditAddress.Text; 245 Contact.Fields[cfEmail] := EditEmailHome.Text; 246 Contact.Fields[cfUrl] := EditWebPage.Text; 247 Contact.Fields[cfDayOfBirth] := EditBirthday.Text; 308 Contact.Fields[cfWorkAddressPostOfficeBox] := EditAddressWorkPostOfficeBox.Text; 309 Contact.Fields[cfWorkAddressStreet] := EditAddressWorkStreet.Text; 310 Contact.Fields[cfWorkAddressStreetExtended] := EditAddressWorkStreetExtended.Text; 311 Contact.Fields[cfWorkAddressCity] := EditAddressWorkCity.Text; 312 Contact.Fields[cfWorkAddressRegion] := EditAddressWorkRegion.Text; 313 Contact.Fields[cfWorkAddressCountry] := EditAddressWorkCountry.Text; 314 Contact.Fields[cfWorkAddressPostalCode] := EditAddressWorkPostalCode.Text; 315 Contact.Fields[cfUrlWork] := EditWebWork.Text; 316 317 // Private 318 Contact.Fields[cfHomeAddressPostOfficeBox] := EditAddressHomePostOfficeBox.Text; 319 Contact.Fields[cfHomeAddressStreet] := EditAddressHomeStreet.Text; 320 Contact.Fields[cfHomeAddressStreetExtended] := EditAddressHomeStreetExtended.Text; 321 Contact.Fields[cfHomeAddressCity] := EditAddressHomeCity.Text; 322 Contact.Fields[cfHomeAddressRegion] := EditAddressHomeRegion.Text; 323 Contact.Fields[cfHomeAddressCountry] := EditAddressHomeCountry.Text; 324 Contact.Fields[cfHomeAddressPostalCode] := EditAddressHomePostalCode.Text; 325 Contact.Fields[cfUrlHome] := EditWebHome.Text; 248 326 end; 249 327 -
trunk/Forms/UFormContacts.pas
r36 r39 197 197 FormContact := TFormContact.Create(nil); 198 198 try 199 if FormContact.ShowModal = mrOK then begin200 199 Contact := TContact.Create; 201 Contact.Parent := Contacts.ContactsFile; 202 FormContact.SaveData(Contact); 203 Contacts.Add(Contact); 204 Core.DataFile.Modified := True; 205 ReloadList; 206 UpdateInterface; 207 end; 200 try 201 Contact.Parent := Contacts.ContactsFile; 202 FormContact.Contact := Contact; 203 if FormContact.ShowModal = mrOK then begin 204 Contacts.Add(Contact); 205 Contact := nil; 206 Core.DataFile.Modified := True; 207 ReloadList; 208 UpdateInterface; 209 end; 210 finally 211 if Assigned(Contact) then 212 Contact.Free; 213 end; 208 214 finally 209 215 FormContact.Free; … … 214 220 var 215 221 FormContact: TFormContact; 222 Contact: TContact; 216 223 begin 217 224 FormContact := TFormContact.Create(nil); 218 225 try 219 FormContact.LoadData(TContact(ListView1.Selected.Data)); 220 if FormContact.ShowModal = mrOK then begin 221 FormContact.SaveData(TContact(ListView1.Selected.Data)); 222 Core.DataFile.Modified := True; 223 ReloadList; 224 UpdateInterface; 226 Contact := TContact.Create; 227 Contact.Assign(TContact(ListView1.Selected.Data)); 228 FormContact.Contact := Contact; 229 try 230 if FormContact.ShowModal = mrOK then begin 231 TContact(ListView1.Selected.Data).Assign(Contact); 232 Core.DataFile.Modified := True; 233 ReloadList; 234 UpdateInterface; 235 end; 236 finally 237 Contact.Free; 225 238 end; 226 239 finally -
trunk/Languages/vCardStudio.cs.po
r35 r39 84 84 85 85 #: tformcontact.buttonok.caption 86 msgctxt "tformcontact.buttonok.caption" 86 87 msgid "OK" 87 88 msgstr "OK" … … 116 117 msgstr "Pager:" 117 118 118 #: tformcontact.label15.caption119 msgctxt "tformcontact.label15.caption"120 msgid "Web page:"121 msgstr "Webové stránky:"122 123 #: tformcontact.label16.caption124 msgctxt "tformcontact.label16.caption"125 msgid "Web page (Home):"126 msgstr "Webové stránky (Domov):"127 128 #: tformcontact.label17.caption129 msgctxt "tformcontact.label17.caption"130 msgid "Web page (Work):"131 msgstr "Webové stránky (Práce):"132 133 119 #: tformcontact.label18.caption 134 120 msgid "Title:" 135 121 msgstr "Titul:" 136 122 137 #: tformcontact.label19.caption138 msgid "Address:"139 msgstr "Adresa:"140 141 123 #: tformcontact.label2.caption 142 124 msgid "Cell phone:" … … 175 157 msgstr "Titul za:" 176 158 159 #: tformcontact.label28.caption 160 msgctxt "tformcontact.label28.caption" 161 msgid "Street:" 162 msgstr "Adresa:" 163 164 #: tformcontact.label29.caption 165 msgctxt "tformcontact.label29.caption" 166 msgid "City:" 167 msgstr "Město:" 168 177 169 #: tformcontact.label3.caption 178 170 msgid "Phone:" 179 171 msgstr "Telefon:" 180 172 173 #: tformcontact.label30.caption 174 msgctxt "tformcontact.label30.caption" 175 msgid "Region:" 176 msgstr "Kraj:" 177 178 #: tformcontact.label31.caption 179 msgctxt "tformcontact.label31.caption" 180 msgid "Country:" 181 msgstr "Země:" 182 183 #: tformcontact.label32.caption 184 msgctxt "tformcontact.label32.caption" 185 msgid "Web address:" 186 msgstr "Webová adresa:" 187 188 #: tformcontact.label33.caption 189 msgctxt "tformcontact.label33.caption" 190 msgid "Postal code:" 191 msgstr "PSČ:" 192 193 #: tformcontact.label34.caption 194 msgctxt "tformcontact.label34.caption" 195 msgid "Post office box:" 196 msgstr "Číslo schránky:" 197 198 #: tformcontact.label35.caption 199 msgctxt "tformcontact.label35.caption" 200 msgid "Extended street:" 201 msgstr "Rozšířená ulice:" 202 203 #: tformcontact.label36.caption 204 msgctxt "tformcontact.label36.caption" 205 msgid "Street:" 206 msgstr "Ulice:" 207 208 #: tformcontact.label37.caption 209 msgctxt "tformcontact.label37.caption" 210 msgid "Extended street:" 211 msgstr "Rozšířená ulice:" 212 213 #: tformcontact.label38.caption 214 msgctxt "tformcontact.label38.caption" 215 msgid "Region:" 216 msgstr "Kraj:" 217 218 #: tformcontact.label39.caption 219 msgctxt "tformcontact.label39.caption" 220 msgid "Country:" 221 msgstr "Země:" 222 181 223 #: tformcontact.label4.caption 182 224 msgid "E-mail:" 183 225 msgstr "E-mail:" 184 226 227 #: tformcontact.label40.caption 228 msgctxt "tformcontact.label40.caption" 229 msgid "Web address:" 230 msgstr "Webová adresa:" 231 232 #: tformcontact.label41.caption 233 msgctxt "tformcontact.label41.caption" 234 msgid "Postal code:" 235 msgstr "PSČ:" 236 237 #: tformcontact.label42.caption 238 msgctxt "tformcontact.label42.caption" 239 msgid "City:" 240 msgstr "Město:" 241 242 #: tformcontact.label43.caption 243 msgctxt "tformcontact.label43.caption" 244 msgid "Post office box:" 245 msgstr "Číslo schránky:" 246 185 247 #: tformcontact.label5.caption 186 248 msgid "Last name" … … 211 273 msgstr "Oddělení:" 212 274 213 #: tformcontact.listview1.columns[0].caption214 msgid "Name"215 msgstr "Jméno"216 217 #: tformcontact.listview1.columns[1].caption218 msgctxt "tformcontact.listview1.columns[1].caption"219 msgid "Attributes"220 msgstr "Atributy"221 222 #: tformcontact.listview1.columns[2].caption223 msgctxt "tformcontact.listview1.columns[2].caption"224 msgid "Value"225 msgstr "Hodnota"226 227 275 #: tformcontact.tabsheetall.caption 228 276 msgid "All fields" 229 277 msgstr "Všechna pole" 230 278 231 #: tformcontact.tabsheetdetails.caption232 msgid "Details"233 msgstr "Podrobnosti"234 235 279 #: tformcontact.tabsheetgeneral.caption 236 280 msgid "General" 237 281 msgstr "Obecné" 238 282 283 #: tformcontact.tabsheetprivate.caption 284 msgid "Private" 285 msgstr "Soukromé" 286 287 #: tformcontact.tabsheetwork.caption 288 msgid "Work" 289 msgstr "Zaměstnání" 290 239 291 #: tformcontacts.aadd.caption 292 msgctxt "tformcontacts.aadd.caption" 240 293 msgid "Add" 241 294 msgstr "Přidat" 242 295 243 296 #: tformcontacts.amodify.caption 297 msgctxt "tformcontacts.amodify.caption" 244 298 msgid "Modify" 245 299 msgstr "Upravit" 246 300 247 301 #: tformcontacts.aremove.caption 302 msgctxt "tformcontacts.aremove.caption" 248 303 msgid "Remove" 249 304 msgstr "Odstranit" 250 305 251 306 #: tformcontacts.aselectall.caption 307 msgctxt "tformcontacts.aselectall.caption" 252 308 msgid "Select all" 253 309 msgstr "Vybrat vše" … … 264 320 265 321 #: tformcontacts.listview1.columns[1].caption 322 msgctxt "tformcontacts.listview1.columns[1].caption" 266 323 msgid "First name" 267 324 msgstr "Křestní jméno" … … 305 362 306 363 #: tformfindduplicity.listview1.columns[0].caption 364 msgctxt "tformfindduplicity.listview1.columns[0].caption" 307 365 msgid "Field" 308 366 msgstr "Pole" … … 363 421 msgstr "Zobrazení" 364 422 423 #: tformproperties.aadd.caption 424 msgctxt "tformproperties.aadd.caption" 425 msgid "Add" 426 msgstr "Přidat" 427 428 #: tformproperties.amodify.caption 429 msgctxt "tformproperties.amodify.caption" 430 msgid "Modify" 431 msgstr "Upravit" 432 433 #: tformproperties.aremove.caption 434 msgctxt "tformproperties.aremove.caption" 435 msgid "Remove" 436 msgstr "Odstranit" 437 438 #: tformproperties.aselectall.caption 439 msgctxt "tformproperties.aselectall.caption" 440 msgid "Select all" 441 msgstr "Vybrat vše" 442 443 #: tformproperties.caption 444 msgctxt "tformproperties.caption" 445 msgid "Contacts" 446 msgstr "Kontakty" 447 448 #: tformproperties.listview1.columns[0].caption 449 msgctxt "tformproperties.listview1.columns[0].caption" 450 msgid "Name" 451 msgstr "Jméno:" 452 453 #: tformproperties.listview1.columns[1].caption 454 msgctxt "tformproperties.listview1.columns[1].caption" 455 msgid "Attributes" 456 msgstr "Vlastnosti" 457 458 #: tformproperties.listview1.columns[2].caption 459 msgctxt "tformproperties.listview1.columns[2].caption" 460 msgid "Values" 461 msgstr "Hodnoty" 462 463 #: tformproperty.buttoncancel.caption 464 msgctxt "tformproperty.buttoncancel.caption" 465 msgid "Cancel" 466 msgstr "Zrušit" 467 468 #: tformproperty.buttonok.caption 469 msgctxt "tformproperty.buttonok.caption" 470 msgid "OK" 471 msgstr "OK" 472 473 #: tformproperty.caption 474 msgctxt "tformproperty.caption" 475 msgid "Field" 476 msgstr "Pole" 477 478 #: tformproperty.label1.caption 479 msgctxt "tformproperty.label1.caption" 480 msgid "Name:" 481 msgstr "Jméno:" 482 483 #: tformproperty.label2.caption 484 msgctxt "tformproperty.label2.caption" 485 msgid "Attributes:" 486 msgstr "Vlastnosti:" 487 488 #: tformproperty.label3.caption 489 msgctxt "tformproperty.label3.caption" 490 msgid "Values:" 491 msgstr "Hodnoty:" 492 365 493 #: tformsettings.buttoncancel.caption 366 494 msgctxt "tformsettings.buttoncancel.caption" … … 439 567 msgstr "Celé jméno" 440 568 441 #: ucontact.shomeaddress442 msgctxt "ucontact.shomeaddress"443 msgid "Home Address"444 msgstr "Domácí adresa"445 446 569 #: ucontact.shomeaddresscity 447 msgid "Home Address City"570 msgid "Home address city" 448 571 msgstr "Domácí adresa město" 449 572 450 573 #: ucontact.shomeaddresscountry 451 msgid "Home Address Country"574 msgid "Home address country" 452 575 msgstr "Domácí adresa země" 453 576 577 #: ucontact.shomeaddresspostalcode 578 msgid "Home address postal code" 579 msgstr "Domácí adresa PSČ" 580 581 #: ucontact.shomeaddresspostofficebox 582 msgid "Home address post office box" 583 msgstr "Domácí adresa číslo schránky" 584 585 #: ucontact.shomeaddressregion 586 msgid "Home address region" 587 msgstr "Domácí adresa kraj" 588 454 589 #: ucontact.shomeaddressstreet 455 msgid "Home Address Street"590 msgid "Home address street" 456 591 msgstr "Domácí adresa ulice" 592 593 #: ucontact.shomeaddressstreetextended 594 msgid "Home address extended street" 595 msgstr "Domácí adresa rozšířená ulice" 457 596 458 597 #: ucontact.shomeemail … … 559 698 msgstr "VoIP telefon" 560 699 561 #: ucontact.swebaddress 562 msgid "Web address" 563 msgstr "Webová adresa" 564 565 #: ucontact.sworkaddress 566 msgctxt "ucontact.sworkaddress" 567 msgid "Home Address" 568 msgstr "Domácí adresa" 700 #: ucontact.swebaddresshome 701 msgid "Web address home" 702 msgstr "Webová adresa domácí" 703 704 #: ucontact.swebaddresswork 705 msgid "Web address work" 706 msgstr "Webová adresa pracovní" 569 707 570 708 #: ucontact.sworkaddresscity 571 msgid "Work Address City"709 msgid "Work address city" 572 710 msgstr "Pracovní adresa město" 573 711 574 712 #: ucontact.sworkaddresscountry 575 msgid "Work Address Country"713 msgid "Work address country" 576 714 msgstr "Pracovní adresa země" 577 715 716 #: ucontact.sworkaddresspostalcode 717 msgid "Work address postal code" 718 msgstr "Pracovní adresa PSČ" 719 720 #: ucontact.sworkaddresspostofficebox 721 msgid "Work address post office box" 722 msgstr "Pracovní adresa číslo schárnky" 723 724 #: ucontact.sworkaddressregion 725 msgid "Work address region" 726 msgstr "Pracovní adresa kraj" 727 578 728 #: ucontact.sworkaddressstreet 579 msgid "Work Address Street"729 msgid "Work address street" 580 730 msgstr "Pracovní adresa ulice" 731 732 #: ucontact.sworkaddressstreetextended 733 msgid "Work address extended street" 734 msgstr "Pracovní adresa rozšířená ulice" 581 735 582 736 #: ucontact.sworkphone … … 622 776 623 777 #: uformcontacts.sfiltered 778 msgctxt "uformcontacts.sfiltered" 624 779 msgid "Filtered" 625 780 msgstr "Filtrovaných" … … 634 789 635 790 #: uformcontacts.sselected 791 msgctxt "uformcontacts.sselected" 636 792 msgid "Selected" 637 793 msgstr "Vybraných" 638 794 639 795 #: uformcontacts.stotal 796 msgctxt "uformcontacts.stotal" 640 797 msgid "Total" 641 798 msgstr "Celkem" … … 645 802 msgstr "Upraveno" 646 803 804 #: uformproperties.sfiltered 805 msgctxt "uformproperties.sfiltered" 806 msgid "Filtered" 807 msgstr "Filtrovaných" 808 809 #: uformproperties.sremovepropertiesquery 810 msgid "Do you want to remove selected fields?" 811 msgstr "Opravdu chcete odstranit tato pole?" 812 813 #: uformproperties.sremovepropertites 814 msgid "Remove fields" 815 msgstr "Odstranění polí" 816 817 #: uformproperties.sselected 818 msgctxt "uformproperties.sselected" 819 msgid "Selected" 820 msgstr "Vybraných" 821 822 #: uformproperties.stotal 823 msgctxt "uformproperties.stotal" 824 msgid "Total" 825 msgstr "Celkem" 826 647 827 #: uquotedprintable.slinelengtherr 648 828 msgid "Invalid line length for encoded text" -
trunk/Languages/vCardStudio.po
r35 r39 74 74 75 75 #: tformcontact.buttonok.caption 76 msgctxt "tformcontact.buttonok.caption" 76 77 msgid "OK" 77 78 msgstr "" … … 105 106 msgstr "" 106 107 107 #: tformcontact.label15.caption108 msgid "Web page:"109 msgstr ""110 111 #: tformcontact.label16.caption112 msgid "Web page (Home):"113 msgstr ""114 115 #: tformcontact.label17.caption116 msgid "Web page (Work):"117 msgstr ""118 119 108 #: tformcontact.label18.caption 120 109 msgid "Title:" 121 110 msgstr "" 122 111 123 #: tformcontact.label19.caption124 msgid "Address:"125 msgstr ""126 127 112 #: tformcontact.label2.caption 128 113 msgid "Cell phone:" … … 161 146 msgstr "" 162 147 148 #: tformcontact.label28.caption 149 msgctxt "tformcontact.label28.caption" 150 msgid "Street:" 151 msgstr "" 152 153 #: tformcontact.label29.caption 154 msgctxt "tformcontact.label29.caption" 155 msgid "City:" 156 msgstr "" 157 163 158 #: tformcontact.label3.caption 164 159 msgid "Phone:" 165 160 msgstr "" 166 161 162 #: tformcontact.label30.caption 163 msgctxt "tformcontact.label30.caption" 164 msgid "Region:" 165 msgstr "" 166 167 #: tformcontact.label31.caption 168 msgctxt "tformcontact.label31.caption" 169 msgid "Country:" 170 msgstr "" 171 172 #: tformcontact.label32.caption 173 msgctxt "tformcontact.label32.caption" 174 msgid "Web address:" 175 msgstr "" 176 177 #: tformcontact.label33.caption 178 msgctxt "tformcontact.label33.caption" 179 msgid "Postal code:" 180 msgstr "" 181 182 #: tformcontact.label34.caption 183 msgctxt "tformcontact.label34.caption" 184 msgid "Post office box:" 185 msgstr "" 186 187 #: tformcontact.label35.caption 188 msgctxt "tformcontact.label35.caption" 189 msgid "Extended street:" 190 msgstr "" 191 192 #: tformcontact.label36.caption 193 msgctxt "tformcontact.label36.caption" 194 msgid "Street:" 195 msgstr "" 196 197 #: tformcontact.label37.caption 198 msgctxt "tformcontact.label37.caption" 199 msgid "Extended street:" 200 msgstr "" 201 202 #: tformcontact.label38.caption 203 msgctxt "tformcontact.label38.caption" 204 msgid "Region:" 205 msgstr "" 206 207 #: tformcontact.label39.caption 208 msgctxt "tformcontact.label39.caption" 209 msgid "Country:" 210 msgstr "" 211 167 212 #: tformcontact.label4.caption 168 213 msgid "E-mail:" 169 214 msgstr "" 170 215 216 #: tformcontact.label40.caption 217 msgctxt "tformcontact.label40.caption" 218 msgid "Web address:" 219 msgstr "" 220 221 #: tformcontact.label41.caption 222 msgctxt "tformcontact.label41.caption" 223 msgid "Postal code:" 224 msgstr "" 225 226 #: tformcontact.label42.caption 227 msgctxt "tformcontact.label42.caption" 228 msgid "City:" 229 msgstr "" 230 231 #: tformcontact.label43.caption 232 msgctxt "tformcontact.label43.caption" 233 msgid "Post office box:" 234 msgstr "" 235 171 236 #: tformcontact.label5.caption 172 237 msgid "Last name" … … 197 262 msgstr "" 198 263 199 #: tformcontact.listview1.columns[0].caption200 msgid "Name"201 msgstr ""202 203 #: tformcontact.listview1.columns[1].caption204 msgctxt "tformcontact.listview1.columns[1].caption"205 msgid "Attributes"206 msgstr ""207 208 #: tformcontact.listview1.columns[2].caption209 msgctxt "tformcontact.listview1.columns[2].caption"210 msgid "Value"211 msgstr ""212 213 264 #: tformcontact.tabsheetall.caption 214 265 msgid "All fields" 215 266 msgstr "" 216 267 217 #: tformcontact.tabsheetdetails.caption218 msgid "Details"219 msgstr ""220 221 268 #: tformcontact.tabsheetgeneral.caption 222 269 msgid "General" 223 270 msgstr "" 224 271 272 #: tformcontact.tabsheetprivate.caption 273 msgid "Private" 274 msgstr "" 275 276 #: tformcontact.tabsheetwork.caption 277 msgid "Work" 278 msgstr "" 279 225 280 #: tformcontacts.aadd.caption 281 msgctxt "tformcontacts.aadd.caption" 226 282 msgid "Add" 227 283 msgstr "" 228 284 229 285 #: tformcontacts.amodify.caption 286 msgctxt "tformcontacts.amodify.caption" 230 287 msgid "Modify" 231 288 msgstr "" 232 289 233 290 #: tformcontacts.aremove.caption 291 msgctxt "tformcontacts.aremove.caption" 234 292 msgid "Remove" 235 293 msgstr "" 236 294 237 295 #: tformcontacts.aselectall.caption 296 msgctxt "tformcontacts.aselectall.caption" 238 297 msgid "Select all" 239 298 msgstr "" … … 250 309 251 310 #: tformcontacts.listview1.columns[1].caption 311 msgctxt "tformcontacts.listview1.columns[1].caption" 252 312 msgid "First name" 253 313 msgstr "" … … 291 351 292 352 #: tformfindduplicity.listview1.columns[0].caption 353 msgctxt "tformfindduplicity.listview1.columns[0].caption" 293 354 msgid "Field" 294 355 msgstr "" … … 347 408 msgstr "" 348 409 410 #: tformproperties.aadd.caption 411 msgctxt "tformproperties.aadd.caption" 412 msgid "Add" 413 msgstr "" 414 415 #: tformproperties.amodify.caption 416 msgctxt "tformproperties.amodify.caption" 417 msgid "Modify" 418 msgstr "" 419 420 #: tformproperties.aremove.caption 421 msgctxt "tformproperties.aremove.caption" 422 msgid "Remove" 423 msgstr "" 424 425 #: tformproperties.aselectall.caption 426 msgctxt "tformproperties.aselectall.caption" 427 msgid "Select all" 428 msgstr "" 429 430 #: tformproperties.caption 431 msgctxt "tformproperties.caption" 432 msgid "Contacts" 433 msgstr "" 434 435 #: tformproperties.listview1.columns[0].caption 436 msgctxt "tformproperties.listview1.columns[0].caption" 437 msgid "Name" 438 msgstr "" 439 440 #: tformproperties.listview1.columns[1].caption 441 msgctxt "tformproperties.listview1.columns[1].caption" 442 msgid "Attributes" 443 msgstr "" 444 445 #: tformproperties.listview1.columns[2].caption 446 msgctxt "tformproperties.listview1.columns[2].caption" 447 msgid "Values" 448 msgstr "" 449 450 #: tformproperty.buttoncancel.caption 451 msgctxt "tformproperty.buttoncancel.caption" 452 msgid "Cancel" 453 msgstr "" 454 455 #: tformproperty.buttonok.caption 456 msgctxt "tformproperty.buttonok.caption" 457 msgid "OK" 458 msgstr "" 459 460 #: tformproperty.caption 461 msgctxt "tformproperty.caption" 462 msgid "Field" 463 msgstr "" 464 465 #: tformproperty.label1.caption 466 msgctxt "tformproperty.label1.caption" 467 msgid "Name:" 468 msgstr "" 469 470 #: tformproperty.label2.caption 471 msgctxt "tformproperty.label2.caption" 472 msgid "Attributes:" 473 msgstr "" 474 475 #: tformproperty.label3.caption 476 msgctxt "tformproperty.label3.caption" 477 msgid "Values:" 478 msgstr "" 479 349 480 #: tformsettings.buttoncancel.caption 350 481 msgctxt "tformsettings.buttoncancel.caption" … … 423 554 msgstr "" 424 555 425 #: ucontact.shomeaddress426 msgctxt "ucontact.shomeaddress"427 msgid "Home Address"428 msgstr ""429 430 556 #: ucontact.shomeaddresscity 431 msgid "Home Address City"557 msgid "Home address city" 432 558 msgstr "" 433 559 434 560 #: ucontact.shomeaddresscountry 435 msgid "Home Address Country" 561 msgid "Home address country" 562 msgstr "" 563 564 #: ucontact.shomeaddresspostalcode 565 msgid "Home address postal code" 566 msgstr "" 567 568 #: ucontact.shomeaddresspostofficebox 569 msgid "Home address post office box" 570 msgstr "" 571 572 #: ucontact.shomeaddressregion 573 msgid "Home address region" 436 574 msgstr "" 437 575 438 576 #: ucontact.shomeaddressstreet 439 msgid "Home Address Street" 577 msgid "Home address street" 578 msgstr "" 579 580 #: ucontact.shomeaddressstreetextended 581 msgid "Home address extended street" 440 582 msgstr "" 441 583 … … 543 685 msgstr "" 544 686 545 #: ucontact.swebaddress 546 msgid "Web address" 547 msgstr "" 548 549 #: ucontact.sworkaddress 550 msgctxt "ucontact.sworkaddress" 551 msgid "Home Address" 687 #: ucontact.swebaddresshome 688 msgid "Web address home" 689 msgstr "" 690 691 #: ucontact.swebaddresswork 692 msgid "Web address work" 552 693 msgstr "" 553 694 554 695 #: ucontact.sworkaddresscity 555 msgid "Work Address City"696 msgid "Work address city" 556 697 msgstr "" 557 698 558 699 #: ucontact.sworkaddresscountry 559 msgid "Work Address Country" 700 msgid "Work address country" 701 msgstr "" 702 703 #: ucontact.sworkaddresspostalcode 704 msgid "Work address postal code" 705 msgstr "" 706 707 #: ucontact.sworkaddresspostofficebox 708 msgid "Work address post office box" 709 msgstr "" 710 711 #: ucontact.sworkaddressregion 712 msgid "Work address region" 560 713 msgstr "" 561 714 562 715 #: ucontact.sworkaddressstreet 563 msgid "Work Address Street" 716 msgid "Work address street" 717 msgstr "" 718 719 #: ucontact.sworkaddressstreetextended 720 msgid "Work address extended street" 564 721 msgstr "" 565 722 … … 606 763 607 764 #: uformcontacts.sfiltered 765 msgctxt "uformcontacts.sfiltered" 608 766 msgid "Filtered" 609 767 msgstr "" … … 618 776 619 777 #: uformcontacts.sselected 778 msgctxt "uformcontacts.sselected" 620 779 msgid "Selected" 621 780 msgstr "" 622 781 623 782 #: uformcontacts.stotal 783 msgctxt "uformcontacts.stotal" 624 784 msgid "Total" 625 785 msgstr "" … … 629 789 msgstr "" 630 790 791 #: uformproperties.sfiltered 792 msgctxt "uformproperties.sfiltered" 793 msgid "Filtered" 794 msgstr "" 795 796 #: uformproperties.sremovepropertiesquery 797 msgid "Do you want to remove selected fields?" 798 msgstr "" 799 800 #: uformproperties.sremovepropertites 801 msgid "Remove fields" 802 msgstr "" 803 804 #: uformproperties.sselected 805 msgctxt "uformproperties.sselected" 806 msgid "Selected" 807 msgstr "" 808 809 #: uformproperties.stotal 810 msgctxt "uformproperties.stotal" 811 msgid "Total" 812 msgstr "" 813 631 814 #: uquotedprintable.slinelengtherr 632 815 msgid "Invalid line length for encoded text" -
trunk/UContact.pas
r37 r39 17 17 TContactFieldIndex = (cfFirstName, cfMiddleName, cfLastName, cfTitleBefore, 18 18 cfTitleAfter, cfFullName, cfTelCell, cfTelHome, cfTelHome2, cfTelWork, cfTelVoip, 19 cfTelMain, cfEmail, cfTel, cfUid, cfUrl ,19 cfTelMain, cfEmail, cfTel, cfUid, cfUrlHome, cfUrlWork, 20 20 cfEmailHome, cfEmailInternet, cfNickName, cfNote, cfRole, cfTitle, 21 21 cfCategories, cfOrganization, cfDepartment, 22 cfHomeAddress, cfHomeAddressStreet, cfHomeAddressCity, cfHomeAddressCountry, 23 cfWorkAddress, cfWorkAddressStreet, cfWorkAddressCity, cfWorkAddressCountry, 22 cfHomeAddressStreet, cfHomeAddressStreetExtended, cfHomeAddressCity, cfHomeAddressCountry, 23 cfHomeAddressPostalCode, cfHomeAddressRegion, cfHomeAddressPostOfficeBox, 24 cfWorkAddressStreet, cfWorkAddressStreetExtended, cfWorkAddressCity, cfWorkAddressCountry, 25 cfWorkAddressPostalCode, cfWorkAddressRegion, cfWorkAddressPostOfficeBox, 24 26 cfXTimesContacted, cfXLastTimeContacted, cfPhoto, cfXJabber, cfDayOfBirth, cfRevision, 25 27 cfVersion); … … 62 64 63 65 TContactProperties = class(TFPGObjectList<TContactProperty>) 66 procedure AssignToList(List: TFPGObjectList<TObject>); 64 67 function GetByName(Name: string): TContactProperty; 65 68 function GetByNameGroups(Name: string; Groups: TStringArray): TContactProperty; … … 151 154 SOrganization = 'Organization'; 152 155 SDepartement = 'Departement'; 153 SHomeAddress = 'Home Address'; 154 SHomeAddressStreet = 'Home Address Street'; 155 SHomeAddressCity = 'Home Address City'; 156 SHomeAddressCountry = 'Home Address Country'; 157 SWorkAddress = 'Home Address'; 158 SWorkAddressStreet = 'Work Address Street'; 159 SWorkAddressCity = 'Work Address City'; 160 SWorkAddressCountry = 'Work Address Country'; 156 SHomeAddressPostOfficeBox = 'Home address post office box'; 157 SHomeAddressStreetExtended = 'Home address extended street'; 158 SHomeAddressStreet = 'Home address street'; 159 SHomeAddressCity = 'Home address city'; 160 SHomeAddressRegion = 'Home address region'; 161 SHomeAddressPostalCode = 'Home address postal code'; 162 SHomeAddressCountry = 'Home address country'; 163 SWorkAddressPostOfficeBox = 'Work address post office box'; 164 SWorkAddressStreetExtended = 'Work address extended street'; 165 SWorkAddressStreet = 'Work address street'; 166 SWorkAddressCity = 'Work address city'; 167 SWorkAddressRegion = 'Work address region'; 168 SWorkAddressPostalCode = 'Work address postal code'; 169 SWorkAddressCountry = 'Work address country'; 161 170 STimesContacted = 'Times Contacted'; 162 171 SLastTimeContacted = 'Last Time Contacted'; … … 166 175 SRevision = 'Revision'; 167 176 SUniqueIdentifier = 'Unique identifier'; 168 SWebAddress = 'Web address'; 177 SWebAddressHome = 'Web address home'; 178 SWebAddressWork = 'Web address work'; 169 179 170 180 function GetNext(var Text: string; Separator: string): string; … … 192 202 193 203 { TContactProperties } 204 205 procedure TContactProperties.AssignToList(List: TFPGObjectList<TObject>); 206 var 207 I: Integer; 208 begin 209 while List.Count > Count do List.Delete(List.Count - 1); 210 while List.Count < Count do List.Add(nil); 211 for I := 0 to Count - 1 do 212 List[I] := Items[I]; 213 end; 194 214 195 215 function TContactProperties.GetByName(Name: string): TContactProperty; … … 441 461 I: Integer; 442 462 begin 463 Parent := Source.Parent; 443 464 while Properties.Count < Source.Properties.Count do 444 465 Properties.Add(TContactProperty.Create); … … 503 524 AddNew('ORG', [], SOrganization, cfOrganization, dtString, 0); 504 525 AddNew('ORG', [], SDepartement, cfDepartment, dtString, 1); 505 AddNew('ADR', ['HOME'], SHomeAddress, cfHomeAddress, dtString); 506 AddNew('ADR', ['HOME'], SHomeAddressStreet, cfHomeAddressStreet, dtString, 1); 507 AddNew('ADR', ['HOME'], SHomeAddressCity, cfHomeAddressCity, dtString, 2); 508 AddNew('ADR', ['HOME'], SHomeAddressCountry, cfHomeAddressCountry, dtString, 3); 509 AddNew('ADR', ['WORK'], SWorkAddress, cfWorkAddress, dtString); 510 AddNew('ADR', ['WORK'], SWorkAddressStreet, cfWorkAddressStreet, dtString, 1); 511 AddNew('ADR', ['WORK'], SWorkAddressCity, cfWorkAddressCity, dtString, 2); 512 AddNew('ADR', ['WORK'], SWorkAddressCountry, cfWorkAddressCountry, dtString, 3); 526 AddNew('ADR', ['HOME'], SHomeAddressPostOfficeBox, cfHomeAddressPostOfficeBox, dtString, 0); 527 AddNew('ADR', ['HOME'], SHomeAddressStreetExtended, cfHomeAddressStreetExtended, dtString, 1); 528 AddNew('ADR', ['HOME'], SHomeAddressStreet, cfHomeAddressStreet, dtString, 2); 529 AddNew('ADR', ['HOME'], SHomeAddressCity, cfHomeAddressCity, dtString, 3); 530 AddNew('ADR', ['HOME'], SHomeAddressRegion, cfHomeAddressRegion, dtString, 4); 531 AddNew('ADR', ['HOME'], SHomeAddressPostalCode, cfHomeAddressPostalCode, dtString, 5); 532 AddNew('ADR', ['HOME'], SHomeAddressCountry, cfHomeAddressCountry, dtString, 6); 533 AddNew('ADR', ['WORK'], SWorkAddressPostOfficeBox, cfWorkAddressPostOfficeBox, dtString, 0); 534 AddNew('ADR', ['WORK'], SWorkAddressStreetExtended, cfWorkAddressStreetExtended, dtString, 1); 535 AddNew('ADR', ['WORK'], SWorkAddressStreet, cfWorkAddressStreet, dtString, 2); 536 AddNew('ADR', ['WORK'], SWorkAddressCity, cfWorkAddressCity, dtString, 3); 537 AddNew('ADR', ['WORK'], SWorkAddressRegion, cfWorkAddressRegion, dtString, 4); 538 AddNew('ADR', ['WORK'], SWorkAddressPostalCode, cfWorkAddressPostalCode, dtString, 5); 539 AddNew('ADR', ['WORK'], SWorkAddressCountry, cfWorkAddressCountry, dtString, 6); 513 540 AddNew('X-TIMES_CONTACTED', [], STimesContacted, cfXTimesContacted, dtString); 514 541 AddNew('X-LAST_TIME_CONTACTED', [], SLastTimeContacted, cfXLastTimeContacted, dtString); … … 518 545 AddNew('REV', [], SRevision, cfRevision, dtString); 519 546 AddNew('UID', [], SUniqueIdentifier, cfUid, dtString); 520 AddNew('URL', [], SWebAddress, cfUrl, dtString); 547 AddNew('URL', ['HOME'], SWebAddressHome, cfUrlHome, dtString); 548 AddNew('URL', ['WORK'], SWebAddressWork, cfUrlWork, dtString); 521 549 end; 522 550 end; -
trunk/vCardStudio.lpi
r35 r39 101 101 </Item2> 102 102 </RequiredPackages> 103 <Units Count="1 2">103 <Units Count="14"> 104 104 <Unit0> 105 105 <Filename Value="vCardStudio.lpr"/> … … 174 174 <IsPartOfProject Value="True"/> 175 175 </Unit11> 176 <Unit12> 177 <Filename Value="Forms\UFormProperty.pas"/> 178 <IsPartOfProject Value="True"/> 179 <ComponentName Value="FormProperty"/> 180 <HasResources Value="True"/> 181 <ResourceBaseClass Value="Form"/> 182 </Unit12> 183 <Unit13> 184 <Filename Value="Forms\UFormProperties.pas"/> 185 <IsPartOfProject Value="True"/> 186 <ComponentName Value="FormProperties"/> 187 <HasResources Value="True"/> 188 <ResourceBaseClass Value="Form"/> 189 </Unit13> 176 190 </Units> 177 191 </ProjectOptions> -
trunk/vCardStudio.lpr
r35 r39 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UFormMain, UCore, Common, UDataFile, SysUtils, UFormContacts, 11 UFormContact, UFormFindDuplicity, UFormGenerate, UFormError, UQuotedPrintable 11 UFormContact, UFormFindDuplicity, UFormGenerate, UFormError, UQuotedPrintable, 12 UFormProperty 12 13 { you can add units after this }; 13 14
Note:
See TracChangeset
for help on using the changeset viewer.