- Timestamp:
- Feb 28, 2018, 12:56:11 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContacts.lfm
r14 r17 7 7 ClientHeight = 605 8 8 ClientWidth = 807 9 DesignTimePPI = 120 9 10 OnClose = FormClose 10 11 OnCreate = FormCreate 11 12 OnShow = FormShow 12 LCLVersion = '1.8.0. 4'13 LCLVersion = '1.8.0.6' 13 14 object ListView1: TListView 14 15 Left = 0 … … 32 33 item 33 34 Caption = 'Last Name' 34 Width = 387 35 Width = 100 36 end 37 item 38 Caption = 'Cell phone' 39 Width = 100 40 end 41 item 42 Caption = 'Home phone' 43 Width = 100 35 44 end> 36 45 MultiSelect = True … … 59 68 end 60 69 object ToolButton2: TToolButton 61 Left = 3070 Left = 24 62 71 Top = 2 63 72 Action = AModify 64 73 end 65 74 object ToolButton3: TToolButton 66 Left = 5975 Left = 47 67 76 Top = 2 68 77 Action = ARemove -
trunk/Forms/UFormContacts.pas
r15 r17 75 75 Item.SubItems.Add(MiddleName); 76 76 Item.SubItems.Add(LastName); 77 Item.SubItems.Add(TelCell); 78 Item.SubItems.Add(TelHome); 77 79 Item.Data := Contacts[Item.Index]; 78 80 end; -
trunk/Forms/UFormMain.lfm
r16 r17 167 167 Action = Core.AFindDuplicate 168 168 end 169 object MenuItem5: TMenuItem 170 Action = Core.AGenerate 171 end 169 172 end 170 173 object MenuItemHelp: TMenuItem -
trunk/Forms/UFormMain.pas
r16 r17 19 19 MenuItem3: TMenuItem; 20 20 MenuItem4: TMenuItem; 21 MenuItem5: TMenuItem; 21 22 MenuItemToolbar: TMenuItem; 22 23 MenuItemView: TMenuItem; … … 111 112 Control: TControl; 112 113 begin 113 for J := 0 to CoolBar1.ControlCount - 1 do begin114 for J := 0 to CoolBar1.ControlCount - 1 do begin 114 115 Control := CoolBar1.Controls[J]; 115 116 if Control is TToolBar then begin -
trunk/Languages/vCardStudio.cs.po
r16 r17 55 55 msgstr "Najít duplikáty" 56 56 57 #: tcore.agenerate.caption 58 msgctxt "tcore.agenerate.caption" 59 msgid "Generate contacts" 60 msgstr "" 61 57 62 #: tcore.ahomepage.caption 58 63 msgctxt "tcore.ahomepage.caption" … … 255 260 msgstr "Příjimení" 256 261 262 #: tformcontacts.listview1.columns[4].caption 263 msgid "Cell phone" 264 msgstr "" 265 266 #: tformcontacts.listview1.columns[5].caption 267 msgid "Home phone" 268 msgstr "" 269 257 270 #: tformfindduplicity.caption 258 271 msgctxt "tformfindduplicity.caption" … … 277 290 msgstr "Počet" 278 291 292 #: tformgenerate.buttongenerate.caption 293 msgid "Generate" 294 msgstr "" 295 296 #: tformgenerate.caption 297 msgctxt "tformgenerate.caption" 298 msgid "Generate contacts" 299 msgstr "" 300 301 #: tformgenerate.label1.caption 302 #, fuzzy 303 msgctxt "tformgenerate.label1.caption" 304 msgid "Count:" 305 msgstr "Počet:" 306 279 307 #: tformmain.caption 280 308 msgid "vCard Studio" … … 410 438 411 439 #: uformmain.scount 440 msgctxt "uformmain.scount" 412 441 msgid "Count:" 413 442 msgstr "Počet:" … … 421 450 msgid "vCard file" 422 451 msgstr "Soubor vCard" 452 -
trunk/Languages/vCardStudio.po
r16 r17 45 45 msgstr "" 46 46 47 #: tcore.agenerate.caption 48 msgctxt "tcore.agenerate.caption" 49 msgid "Generate contacts" 50 msgstr "" 51 47 52 #: tcore.ahomepage.caption 48 53 msgctxt "tcore.ahomepage.caption" … … 245 250 msgstr "" 246 251 252 #: tformcontacts.listview1.columns[4].caption 253 msgid "Cell phone" 254 msgstr "" 255 256 #: tformcontacts.listview1.columns[5].caption 257 msgid "Home phone" 258 msgstr "" 259 247 260 #: tformfindduplicity.caption 248 261 msgctxt "tformfindduplicity.caption" … … 267 280 msgstr "" 268 281 282 #: tformgenerate.buttongenerate.caption 283 msgid "Generate" 284 msgstr "" 285 286 #: tformgenerate.caption 287 msgctxt "tformgenerate.caption" 288 msgid "Generate contacts" 289 msgstr "" 290 291 #: tformgenerate.label1.caption 292 msgctxt "tformgenerate.label1.caption" 293 msgid "Count:" 294 msgstr "" 295 269 296 #: tformmain.caption 270 297 msgid "vCard Studio" … … 398 425 399 426 #: uformmain.scount 427 msgctxt "uformmain.scount" 400 428 msgid "Count:" 401 429 msgstr "" -
trunk/UContact.pas
r16 r17 88 88 TContacts = class(TObjectList) 89 89 ContactsFile: TContactsFile; 90 function AddNew: TContact; 90 91 function Search(FullName: string): TContact; 91 92 function ToString: ansistring; override; … … 121 122 122 123 { TContacts } 124 125 function TContacts.AddNew: TContact; 126 begin 127 Result := TContact.Create; 128 Result.Parent := ContactsFile; 129 Add(Result); 130 end; 123 131 124 132 function TContacts.Search(FullName: string): TContact; -
trunk/UCore.lfm
r16 r17 471 471 OnExecute = AFindDuplicateExecute 472 472 end 473 object AGenerate: TAction 474 Caption = 'Generate contacts' 475 OnExecute = AGenerateExecute 476 end 473 477 end 474 478 object LastOpenedList1: TLastOpenedList -
trunk/UCore.pas
r16 r17 26 26 TCore = class(TDataModule) 27 27 AAbout: TAction; 28 AGenerate: TAction; 28 29 AFindDuplicate: TAction; 29 30 AFileMerge: TAction; … … 57 58 procedure AFileCloseExecute(Sender: TObject); 58 59 procedure AFindDuplicateExecute(Sender: TObject); 60 procedure AGenerateExecute(Sender: TObject); 59 61 procedure AHomePageExecute(Sender: TObject); 60 62 procedure ASettingsExecute(Sender: TObject); … … 93 95 94 96 uses 95 UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts, UFormFindDuplicity; 97 UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts, UFormFindDuplicity, 98 UFormGenerate; 96 99 97 100 resourcestring … … 178 181 Contacts := TContactsFile(DataFile).Contacts; 179 182 ShowModal; 183 Free; 184 end; 185 end; 186 187 procedure TCore.AGenerateExecute(Sender: TObject); 188 begin 189 FormGenerate := TFormGenerate.Create(nil); 190 with FormGenerate do begin 191 Contacts := TContactsFile(DataFile).Contacts; 192 ShowModal; 193 FormContacts.ReloadList; 194 FormContacts.UpdateInterface; 195 DataFile.Modified := True; 196 FormMain.UpdateInterface; 180 197 Free; 181 198 end; -
trunk/vCardStudio.lpi
r16 r17 101 101 </Item4> 102 102 </RequiredPackages> 103 <Units Count="1 0">103 <Units Count="11"> 104 104 <Unit0> 105 105 <Filename Value="vCardStudio.lpr"/> … … 163 163 <ResourceBaseClass Value="Form"/> 164 164 </Unit9> 165 <Unit10> 166 <Filename Value="Forms\UFormGenerate.pas"/> 167 <IsPartOfProject Value="True"/> 168 <ComponentName Value="FormGenerate"/> 169 <ResourceBaseClass Value="Form"/> 170 </Unit10> 165 171 </Units> 166 172 </ProjectOptions> -
trunk/vCardStudio.lpr
r16 r17 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UFormMain, UCore, Common, CoolTranslator, UDataFile, 11 TemplateGenerics, SysUtils, UFormContacts, UFormContact, UFormFindDuplicity10 Forms, UFormMain, UCore, Common, CoolTranslator, UDataFile, TemplateGenerics, 11 SysUtils, UFormContacts, UFormContact, UFormFindDuplicity, UFormGenerate 12 12 { you can add units after this }; 13 13
Note:
See TracChangeset
for help on using the changeset viewer.