- Timestamp:
- Dec 9, 2021, 10:53:52 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormGenerate.lfm
r23 r62 1 1 object FormGenerate: TFormGenerate 2 Left = 4 642 Left = 470 3 3 Height = 562 4 Top = 3 684 Top = 372 5 5 Width = 812 6 6 Caption = 'Generate contacts' … … 14 14 object Label1: TLabel 15 15 Left = 19 16 Height = 2 416 Height = 25 17 17 Top = 19 18 Width = 5 518 Width = 52 19 19 Caption = 'Count:' 20 20 ParentColor = False … … 23 23 object SpinEditCount: TSpinEdit 24 24 Left = 155 25 Height = 4225 Height = 33 26 26 Top = 18 27 27 Width = 152 -
trunk/Forms/UFormGenerate.pas
r31 r62 46 46 for I := 1 to SpinEditCount.Value do begin 47 47 Contact := Contacts.AddNew; 48 Contact.Fields[cfVersion] := '2.1'; 48 49 Contact.Fields[cfFirstName] := 'First ' + IntToStr(Random(10000)); 49 50 Contact.Fields[cfLastName] := 'Last ' + IntToStr(Random(10000)); -
trunk/Forms/UFormMain.lfm
r44 r62 41 41 Height = 33 42 42 Top = 5 43 Width = 1 3543 Width = 159 44 44 Align = alNone 45 45 AutoSize = True … … 72 72 end 73 73 object ToolButton4: TToolButton 74 Left = 1 75 Top = 3374 Left = 124 75 Top = 0 76 76 Action = Core.AFileClose 77 77 end … … 83 83 Height = 33 84 84 Top = 5 85 Width = 3585 Width = 71 86 86 Align = alNone 87 87 AutoSize = True … … 97 97 Transparent = True 98 98 object ToolButton5: TToolButton 99 Left = 1100 Top = 3399 Left = 36 100 Top = 0 101 101 Action = Core.ASettings 102 102 end … … 137 137 object MenuItem3: TMenuItem 138 138 Action = Core.AFileMerge 139 end 140 object MenuItem6: TMenuItem 141 Action = Core.AFileSplit 139 142 end 140 143 object MenuItem2: TMenuItem -
trunk/Forms/UFormMain.pas
r44 r62 20 20 MenuItem4: TMenuItem; 21 21 MenuItem5: TMenuItem; 22 MenuItem6: TMenuItem; 22 23 MenuItemToolbar: TMenuItem; 23 24 MenuItemView: TMenuItem; -
trunk/Forms/UFormProperties.lfm
r54 r62 14 14 object ListView1: TListView 15 15 Left = 0 16 Height = 8 1016 Height = 801 17 17 Top = 0 18 18 Width = 1210 … … 46 46 Left = 0 47 47 Height = 39 48 Top = 8 4248 Top = 833 49 49 Width = 1210 50 50 Align = alBottom … … 78 78 Left = 0 79 79 Height = 32 80 Top = 8 1080 Top = 801 81 81 Width = 1210 82 82 OnChange = ListViewFilter1Change … … 85 85 object StatusBar1: TStatusBar 86 86 Left = 0 87 Height = 2788 Top = 8 8187 Height = 36 88 Top = 872 89 89 Width = 1210 90 90 Panels = < -
trunk/Languages/vCardStudio.cs.po
r61 r62 49 49 msgstr "Uložit jako..." 50 50 51 #: tcore.afilesplit.caption 52 msgid "Split..." 53 msgstr "Rozdělit..." 54 51 55 #: tcore.afindduplicate.caption 52 56 msgctxt "tcore.afindduplicate.caption" … … 1065 1069 msgstr "Soubor '%s' nenalezen." 1066 1070 1071 #: ucore.sfilesplit 1072 msgid "Contacts split" 1073 msgstr "Rozdělení kontaktů" 1074 1075 #: ucore.sfilesplitfinishedopendirectory 1076 msgid "Total %d contact files saved. Do you want to open the directory %s?" 1077 msgstr "Uloženo celkem %d souborů kontaktů. Chcete otevřít adresář %s?" 1078 1067 1079 #: ucore.sline 1068 1080 msgid "Line %d: %s" -
trunk/Languages/vCardStudio.po
r61 r62 39 39 msgstr "" 40 40 41 #: tcore.afilesplit.caption 42 msgid "Split..." 43 msgstr "" 44 41 45 #: tcore.afindduplicate.caption 42 46 msgctxt "tcore.afindduplicate.caption" … … 1053 1057 msgstr "" 1054 1058 1059 #: ucore.sfilesplit 1060 msgid "Contacts split" 1061 msgstr "" 1062 1063 #: ucore.sfilesplitfinishedopendirectory 1064 msgid "Total %d contact files saved. Do you want to open the directory %s?" 1065 msgstr "" 1066 1055 1067 #: ucore.sline 1056 1068 msgid "Line %d: %s" -
trunk/UCore.lfm
r61 r62 475 475 OnExecute = AGenerateExecute 476 476 end 477 object AFileSplit: TAction 478 Category = 'File' 479 Caption = 'Split...' 480 OnExecute = AFileSplitExecute 481 end 477 482 end 478 483 object LastOpenedList1: TLastOpenedList … … 501 506 AppName = 'vCard Studio' 502 507 Description = 'vCard files management tool' 503 ReleaseDate = 445 39508 ReleaseDate = 44524 504 509 RegistryKey = '\Software\Chronosoft\vCard Studio' 505 510 RegistryRoot = rrKeyCurrentUser … … 8731 8736 Top = 48 8732 8737 end 8738 object SelectDirectoryDialog1: TSelectDirectoryDialog 8739 Left = 578 8740 Top = 376 8741 end 8733 8742 end -
trunk/UCore.pas
r56 r62 27 27 AAbout: TAction; 28 28 AboutDialog1: TAboutDialog; 29 AFileSplit: TAction; 29 30 AGenerate: TAction; 30 31 AFindDuplicate: TAction; … … 41 42 ActionList1: TActionList; 42 43 ApplicationInfo1: TApplicationInfo; 44 SelectDirectoryDialog1: TSelectDirectoryDialog; 43 45 Translator: TTranslator; 44 46 ImageList1: TImageList; … … 58 60 procedure AFileSaveAsExecute(Sender: TObject); 59 61 procedure AFileCloseExecute(Sender: TObject); 62 procedure AFileSplitExecute(Sender: TObject); 60 63 procedure AFindDuplicateExecute(Sender: TObject); 61 64 procedure AGenerateExecute(Sender: TObject); … … 70 73 LoadErrors: string; 71 74 ProfileImage: TImage; 75 LastSplitDir: string; 72 76 procedure FileModified(Sender: TObject); 73 77 function FindFirstNonOption: string; … … 108 112 SAppExit = 'Application exit'; 109 113 SAppExitQuery = 'File was modified. Do you want to save it before exit?'; 114 SFileSplit = 'Contacts split'; 115 SFileSplitFinishedOpenDirectory = 'Total %d contact files saved. Do you want to open the directory %s?'; 110 116 SFileNotFound = 'File ''%s'' not found.'; 111 117 SMergedContacts = 'Contacts merged. Loaded: %d, New: %d, Updated: %d'; … … 175 181 FileClose; 176 182 UpdateFile; 183 end; 184 185 procedure TCore.AFileSplitExecute(Sender: TObject); 186 var 187 I: Integer; 188 C: Integer; 189 FileName: string; 190 ModalResult: TModalResult; 191 begin 192 C := 0; 193 SelectDirectoryDialog1.FileName := LastSplitDir; 194 if SelectDirectoryDialog1.Execute then begin 195 LastSplitDir := SelectDirectoryDialog1.FileName; 196 with TContactsFile(DataFile).Contacts do 197 for I := 0 to Count - 1 do begin 198 if Items[I].Fields[cfFullName] <> '' then begin 199 FileName := SelectDirectoryDialog1.FileName + DirectorySeparator + 200 Items[I].Fields[cfFullName] + VCardFileExt; 201 Items[I].SaveToFile(FileName); 202 Inc(C); 203 end; 204 end; 205 ModalResult := MessageDlg(SFileSplit, 206 Format(SFileSplitFinishedOpenDirectory, [C, 207 SelectDirectoryDialog1.FileName]), mtConfirmation, [mbYes, mbNo], 0); 208 if ModalResult = mrYes then begin 209 {$IFDEF WINDOWS} 210 ExecuteProgram('explorer.exe', ['"' + SelectDirectoryDialog1.FileName + '"']); 211 {$ENDIF} 212 end; 213 end; 177 214 end; 178 215 … … 434 471 LastContactTabIndex := ReadIntegerWithDefault('LastContactTabIndex', 0); 435 472 LastContactFileName := ReadStringWithDefault('LastContactFileName', ''); 473 LastSplitDir := ReadStringWithDefault('LastSplitDir', ''); 436 474 finally 437 475 Free; … … 457 495 WriteInteger('LastContactTabIndex', LastContactTabIndex); 458 496 WriteString('LastContactFileName', LastContactFileName); 497 WriteString('LastSplitDir', LastSplitDir); 459 498 finally 460 499 Free; … … 484 523 AFileSaveAs.Enabled := Assigned(DataFile); 485 524 AFileClose.Enabled := Assigned(DataFile); 525 AFileSplit.Enabled := Assigned(DataFile); 526 AFileMerge.Enabled := Assigned(DataFile); 486 527 end; 487 528
Note:
See TracChangeset
for help on using the changeset viewer.