Ignore:
Timestamp:
Dec 8, 2021, 8:56:27 PM (3 years ago)
Author:
chronos
Message:
  • Added: Chat contact tab for text chatting applications.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContact.pas

    r54 r57  
    2222    ButtonOk: TButton;
    2323    ButtonPrevious: TButton;
     24    EditAim: TEdit;
     25    EditWindowsLive: TEdit;
     26    EditYahoo: TEdit;
     27    EditGoogleTalk: TEdit;
     28    EditMsn: TEdit;
     29    EditIrc: TEdit;
     30    EditSkype: TEdit;
    2431    EditHomeAddressCity: TEdit;
    2532    EditHomeAddressCountry: TEdit;
     
    3744    EditAddressWorkStreetExtended: TEdit;
    3845    EditAniversary: TEdit;
     46    EditJabber: TEdit;
     47    EditIcq: TEdit;
    3948    EditWorkEmail: TEdit;
    4049    EditPager: TEdit;
     
    6675    EditMobile: TEdit;
    6776    EditWorkPhone: TEdit;
     77    EditQq: TEdit;
    6878    GroupBox1: TGroupBox;
    6979    GroupBox2: TGroupBox;
     
    8191    Label19: TLabel;
    8292    Label2: TLabel;
     93    Label20: TLabel;
     94    Label21: TLabel;
    8395    Label22: TLabel;
     96    Label23: TLabel;
    8497    Label24: TLabel;
    8598    Label25: TLabel;
     
    107120    Label45: TLabel;
    108121    Label46: TLabel;
     122    Label47: TLabel;
     123    Label48: TLabel;
    109124    Label5: TLabel;
    110125    Label6: TLabel;
     
    114129    LabelOrganization: TLabel;
    115130    LabelOrganization1: TLabel;
     131    LabelOrganization2: TLabel;
     132    LabelOrganization3: TLabel;
     133    LabelOrganization4: TLabel;
     134    LabelOrganization5: TLabel;
     135    LabelOrganization6: TLabel;
    116136    MemoNotes: TMemo;
    117137    MenuItem1: TMenuItem;
     
    122142    PopupMenuPhoto: TPopupMenu;
    123143    SavePictureDialog1: TSavePictureDialog;
     144    TabSheetChat: TTabSheet;
    124145    TabSheetOthers: TTabSheet;
    125146    TabSheetHome: TTabSheet;
     
    137158    procedure FormShow(Sender: TObject);
    138159    procedure TabSheetAllShow(Sender: TObject);
     160    procedure TabSheetChatHide(Sender: TObject);
     161    procedure TabSheetChatShow(Sender: TObject);
    139162    procedure TabSheetGeneralHide(Sender: TObject);
    140163    procedure TabSheetGeneralShow(Sender: TObject);
     
    198221  FormProperties.ReloadList;
    199222  FormProperties.UpdateInterface;
     223end;
     224
     225procedure TFormContact.TabSheetChatHide(Sender: TObject);
     226begin
     227  Contact.Fields[cfJabber] := EditJabber.Text;
     228  Contact.Fields[cfIcq] := EditIcq.Text;
     229  Contact.Fields[cfMsn] := EditMsn.Text;
     230  Contact.Fields[cfSkype] := EditSkype.Text;
     231  Contact.Fields[cfQq] := EditQq.Text;
     232  Contact.Fields[cfGoogleTalk] := EditGoogleTalk.Text;
     233  Contact.Fields[cfWindowsLive] := EditWindowsLive.Text;
     234  Contact.Fields[cfYahoo] := EditYahoo.Text;
     235  Contact.Fields[cfAim] := EditAim.Text;
     236  Contact.Fields[cfIrc] := EditIrc.Text
     237end;
     238
     239procedure TFormContact.TabSheetChatShow(Sender: TObject);
     240begin
     241  EditJabber.Text := Contact.Fields[cfJabber];
     242  EditIcq.Text := Contact.Fields[cfIcq];
     243  EditMsn.Text := Contact.Fields[cfMsn];
     244  EditSkype.Text := Contact.Fields[cfSkype];
     245  EditQq.Text := Contact.Fields[cfQq];
     246  EditGoogleTalk.Text := Contact.Fields[cfGoogleTalk];
     247  EditWindowsLive.Text := Contact.Fields[cfWindowsLive];
     248  EditYahoo.Text := Contact.Fields[cfYahoo];
     249  EditAim.Text := Contact.Fields[cfAim];
     250  EditIrc.Text := Contact.Fields[cfIrc];
    200251end;
    201252
Note: See TracChangeset for help on using the changeset viewer.