Changeset 13


Ignore:
Timestamp:
Feb 4, 2018, 12:47:01 PM (7 years ago)
Author:
chronos
Message:
  • Added: Status bar with number of contacts.
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContacts.lfm

    r8 r13  
    77  ClientHeight = 605
    88  ClientWidth = 807
    9   DesignTimePPI = 120
    109  OnClose = FormClose
    1110  OnCreate = FormCreate
    1211  OnShow = FormShow
    13   LCLVersion = '1.8.0.6'
     12  LCLVersion = '1.8.0.4'
    1413  object ListView1: TListView
    1514    Left = 0
     
    1918    Align = alClient
    2019    Columns = <   
     20      item
     21        Caption = 'Full Name'
     22        Width = 200
     23      end   
    2124      item
    2225        Caption = 'First name'
     
    2932      item
    3033        Caption = 'Last Name'
    31         Width = 100
     34        Width = 387
    3235      end>
    3336    OwnerData = True
  • trunk/Forms/UFormContacts.pas

    r8 r13  
    6868  if Assigned(Contacts) and (Item.Index < Contacts.Count) then
    6969  with TContact(Contacts[Item.Index]) do begin
    70     Item.Caption := FirstName;
     70    Item.Caption := FullName;
     71    Item.SubItems.Add(FirstName);
    7172    Item.SubItems.Add(MiddleName);
    7273    Item.SubItems.Add(LastName);
  • trunk/Forms/UFormMain.lfm

    r8 r13  
    55  Width = 785
    66  Caption = 'FormMain'
    7   ClientHeight = 506
     7  ClientHeight = 497
    88  ClientWidth = 785
    9   DesignTimePPI = 120
    109  Menu = MainMenu1
    1110  OnClose = FormClose
     
    1312  OnCreate = FormCreate
    1413  OnShow = FormShow
    15   LCLVersion = '1.8.0.6'
     14  LCLVersion = '1.8.0.4'
    1615  object CoolBar1: TCoolBar
    1716    Left = 0
     
    3635      AnchorSideTop.Control = CoolBar1
    3736      Left = 24
    38       Height = 22
     37      Height = 28
    3938      Top = 5
    40       Width = 105
     39      Width = 132
    4140      Align = alNone
    4241      AutoSize = True
     
    5655      end
    5756      object ToolButton2: TToolButton
    58         Left = 24
     57        Left = 30
    5958        Top = 0
    6059        Action = Core.AFileOpen
     
    6362      end
    6463      object ToolButton3: TToolButton
    65         Left = 59
     64        Left = 74
    6665        Top = 0
    6766        Action = Core.AFileSave
    6867      end
    6968      object ToolButton4: TToolButton
    70         Left = 82
     69        Left = 103
    7170        Top = 0
    7271        Action = Core.AFileClose
     
    7776      AnchorSideTop.Control = CoolBar1
    7877      Left = 188
    79       Height = 22
     78      Height = 28
    8079      Top = 5
    81       Width = 24
     80      Width = 30
    8281      Align = alNone
    8382      AutoSize = True
     
    9796      end
    9897    end
     98  end
     99  object StatusBar1: TStatusBar
     100    Left = 0
     101    Height = 30
     102    Top = 467
     103    Width = 785
     104    Panels = <   
     105      item
     106        Width = 200
     107      end>
     108    SimplePanel = False
    99109  end
    100110  object MainMenu1: TMainMenu
  • trunk/Forms/UFormMain.pas

    r8 r13  
    3333    MenuItemFile: TMenuItem;
    3434    PopupMenuOpenRecent: TPopupMenu;
     35    StatusBar1: TStatusBar;
    3536    ToolBarOther: TToolBar;
    3637    ToolBarFile: TToolBar;
     
    6061
    6162uses
    62   UCore, UFormContacts;
     63  UCore, UFormContacts, UContact;
    6364
    6465resourcestring
     66  SCount = 'Count:';
    6567  SModified = 'Modified';
    6668
     
    120122  UpdateFormTitle;
    121123  CoolBar1.Visible := MenuItemToolbar.Checked;
     124  if Assigned(Core.DataFile) then
     125    StatusBar1.Panels[0].Text := SCount + ' ' + IntToStr(TcontactsFile(Core.DataFile).Contacts.Count)
     126    else StatusBar1.Panels[0].Text := '';
    122127end;
    123128
  • trunk/Languages/vCardStudio.cs.po

    r9 r13  
    1010"Content-Transfer-Encoding: 8bit\n"
    1111"Language: cs\n"
    12 "X-Generator: Poedit 1.8.8\n"
     12"X-Generator: Poedit 2.0.4\n"
    1313
    1414#: tcore.aabout.caption
     
    9494msgctxt "tformcontact.label10.caption"
    9595msgid "Cell phone (Work):"
    96 msgstr ""
     96msgstr "Mobil (Práce):"
    9797
    9898#: tformcontact.label11.caption
    9999msgid "Fax:"
    100 msgstr ""
     100msgstr "Fax:"
    101101
    102102#: tformcontact.label12.caption
    103103msgid "Fax (Home):"
    104 msgstr ""
     104msgstr "Fax (Domov):"
    105105
    106106#: tformcontact.label13.caption
    107107msgid "Fax (Work):"
    108 msgstr ""
     108msgstr "Fax (Práce):"
    109109
    110110#: tformcontact.label14.caption
    111111msgid "Pager:"
    112 msgstr ""
     112msgstr "Pager:"
    113113
    114114#: tformcontact.label15.caption
    115115msgctxt "tformcontact.label15.caption"
    116116msgid "Web page:"
    117 msgstr ""
     117msgstr "Webové stránky:"
    118118
    119119#: tformcontact.label16.caption
    120120msgctxt "tformcontact.label16.caption"
    121121msgid "Web page (Home):"
    122 msgstr ""
     122msgstr "Webové stránky (Domov):"
    123123
    124124#: tformcontact.label17.caption
    125125msgctxt "tformcontact.label17.caption"
    126126msgid "Web page (Work):"
    127 msgstr ""
     127msgstr "Webové stránky (Práce):"
    128128
    129129#: tformcontact.label18.caption
    130130msgid "Title:"
    131 msgstr ""
     131msgstr "Titul:"
    132132
    133133#: tformcontact.label19.caption
    134134msgid "Address:"
    135 msgstr ""
     135msgstr "Adresa:"
    136136
    137137#: tformcontact.label2.caption
     
    141141#: tformcontact.label20.caption
    142142msgid "E-mail (Home):"
    143 msgstr ""
     143msgstr "E-mail (Domov):"
    144144
    145145#: tformcontact.label21.caption
    146146msgid "E-mail (Work):"
    147 msgstr ""
     147msgstr "E-mail (Práce):"
    148148
    149149#: tformcontact.label22.caption
    150150msgid "Birthday:"
    151 msgstr ""
     151msgstr "Narozeniny:"
    152152
    153153#: tformcontact.label3.caption
     
    169169#: tformcontact.label7.caption
    170170msgid "Phone (Home):"
    171 msgstr ""
     171msgstr "Telefon (Domov):"
    172172
    173173#: tformcontact.label8.caption
    174174msgid "Phone (Work):"
    175 msgstr ""
     175msgstr "Telefon (Práce):"
    176176
    177177#: tformcontact.label9.caption
    178178msgid "Cell phone (Home):"
    179 msgstr ""
     179msgstr "Mobil (Domov):"
    180180
    181181#: tformcontact.labelorganization.caption
    182182msgid "Organization:"
    183 msgstr ""
     183msgstr "Společnost:"
    184184
    185185#: tformcontact.listview1.columns[0].caption
     
    220220
    221221#: tformcontacts.listview1.columns[0].caption
     222msgid "Full Name"
     223msgstr "Křestní jméno"
     224
     225#: tformcontacts.listview1.columns[1].caption
    222226msgid "First name"
    223 msgstr "Křestní jméno"
    224 
    225 #: tformcontacts.listview1.columns[1].caption
     227msgstr "Prostřední jméno"
     228
     229#: tformcontacts.listview1.columns[2].caption
     230msgctxt "tformcontacts.listview1.columns[2].caption"
    226231msgid "Middle name"
    227232msgstr "Prostřední jméno"
    228233
    229 #: tformcontacts.listview1.columns[2].caption
     234#: tformcontacts.listview1.columns[3].caption
     235msgctxt "tformcontacts.listview1.columns[3].caption"
    230236msgid "Last Name"
    231237msgstr "Příjimení"
     
    343349msgstr "Opravdu chcete odstranit vybrané kontakty?"
    344350
     351#: uformmain.scount
     352msgid "Count:"
     353msgstr "Počet:"
     354
    345355#: uformmain.smodified
    346356msgid "Modified"
     
    351361msgid "vCard file"
    352362msgstr "Soubor vCard"
    353 
  • trunk/Languages/vCardStudio.po

    r9 r13  
    210210
    211211#: tformcontacts.listview1.columns[0].caption
     212msgid "Full Name"
     213msgstr ""
     214
     215#: tformcontacts.listview1.columns[1].caption
    212216msgid "First name"
    213217msgstr ""
    214218
    215 #: tformcontacts.listview1.columns[1].caption
     219#: tformcontacts.listview1.columns[2].caption
     220msgctxt "tformcontacts.listview1.columns[2].caption"
    216221msgid "Middle name"
    217222msgstr ""
    218223
    219 #: tformcontacts.listview1.columns[2].caption
     224#: tformcontacts.listview1.columns[3].caption
     225msgctxt "tformcontacts.listview1.columns[3].caption"
    220226msgid "Last Name"
    221227msgstr ""
     
    331337msgstr ""
    332338
     339#: uformmain.scount
     340msgid "Count:"
     341msgstr ""
     342
    333343#: uformmain.smodified
    334344msgid "Modified"
Note: See TracChangeset for help on using the changeset viewer.