Changeset 16
- Timestamp:
- Feb 28, 2018, 9:44:51 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r15 r16 36 36 AnchorSideTop.Control = CoolBar1 37 37 Left = 24 38 Height = 2 238 Height = 28 39 39 Top = 5 40 Width = 1 0540 Width = 132 41 41 Align = alNone 42 42 AutoSize = True … … 56 56 end 57 57 object ToolButton2: TToolButton 58 Left = 2458 Left = 30 59 59 Top = 0 60 60 Action = Core.AFileOpen … … 63 63 end 64 64 object ToolButton3: TToolButton 65 Left = 5965 Left = 74 66 66 Top = 0 67 67 Action = Core.AFileSave 68 68 end 69 69 object ToolButton4: TToolButton 70 Left = 8270 Left = 103 71 71 Top = 0 72 72 Action = Core.AFileClose … … 77 77 AnchorSideTop.Control = CoolBar1 78 78 Left = 188 79 Height = 2 279 Height = 28 80 80 Top = 5 81 Width = 2481 Width = 59 82 82 Align = alNone 83 83 AutoSize = True … … 92 92 Transparent = True 93 93 object ToolButton5: TToolButton 94 Left = 30 95 Top = 0 96 Action = Core.ASettings 97 end 98 object ToolButton6: TToolButton 94 99 Left = 1 95 100 Top = 0 96 Action = Core.A Settings101 Action = Core.AFindDuplicate 97 102 end 98 103 end … … 159 164 Action = Core.ASettings 160 165 end 166 object MenuItem4: TMenuItem 167 Action = Core.AFindDuplicate 168 end 161 169 end 162 170 object MenuItemHelp: TMenuItem -
trunk/Forms/UFormMain.pas
r15 r16 18 18 MenuItem1: TMenuItem; 19 19 MenuItem3: TMenuItem; 20 MenuItem4: TMenuItem; 20 21 MenuItemToolbar: TMenuItem; 21 22 MenuItemView: TMenuItem; … … 43 44 ToolButton4: TToolButton; 44 45 ToolButton5: TToolButton; 46 ToolButton6: TToolButton; 45 47 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 46 48 procedure FormCloseQuery(Sender: TObject; var CanClose: boolean); … … 49 51 procedure MenuItemToolbarClick(Sender: TObject); 50 52 private 53 procedure SetToolbarHints; 51 54 procedure UpdateFormTitle; 52 55 public … … 83 86 84 87 procedure TFormMain.FormCreate(Sender: TObject); 85 var86 I: Integer;87 88 begin 88 for I := 0 to ToolBarFile.ButtonCount - 1 do89 ToolBarFile.Buttons[I].Hint := ToolBarFile.Buttons[I].Caption;90 89 end; 91 90 92 91 procedure TFormMain.FormShow(Sender: TObject); 93 92 begin 93 SetToolbarHints; 94 94 Core.Initialize; 95 95 Core.ThemeManager1.UseTheme(Self); … … 103 103 begin 104 104 UpdateInterface; 105 end; 106 107 procedure TFormMain.SetToolbarHints; 108 var 109 I: Integer; 110 J: Integer; 111 Control: TControl; 112 begin 113 for J := 0 to CoolBar1.ControlCount - 1 do begin 114 Control := CoolBar1.Controls[J]; 115 if Control is TToolBar then begin 116 for I := 0 to TToolBar(Control).ButtonCount - 1 do begin 117 TToolBar(Control).Buttons[I].ShowHint := True; 118 TToolBar(Control).Buttons[I].Hint := TToolBar(Control).Buttons[I].Caption; 119 end; 120 end; 121 end; 105 122 end; 106 123 -
trunk/Forms/UFormSettings.lfm
r15 r16 10 10 Constraints.MinWidth = 400 11 11 DesignTimePPI = 120 12 OnClose = FormClose 12 13 OnCreate = FormCreate 13 14 OnShow = FormShow -
trunk/Forms/UFormSettings.pas
r15 r16 28 28 procedure CheckBoxAutomaticDPIChange(Sender: TObject); 29 29 procedure CheckBoxStartOnLogonChange(Sender: TObject); 30 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 30 31 procedure FormCreate(Sender: TObject); 31 32 procedure FormShow(Sender: TObject); … … 53 54 procedure TFormSettings.FormShow(Sender: TObject); 54 55 begin 56 Core.PersistentForm1.Load(Self); 57 55 58 Core.CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items); 56 59 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); … … 78 81 begin 79 82 UpdateInterface; 83 end; 84 85 procedure TFormSettings.FormClose(Sender: TObject; var CloseAction: TCloseAction 86 ); 87 begin 88 Core.PersistentForm1.Save(Self); 80 89 end; 81 90 -
trunk/Languages/vCardStudio.cs.po
r15 r16 50 50 msgstr "Uložit jako..." 51 51 52 #: tcore.afindduplicate.caption 53 msgctxt "tcore.afindduplicate.caption" 54 msgid "Find duplicities" 55 msgstr "Najít duplikáty" 56 52 57 #: tcore.ahomepage.caption 53 58 msgctxt "tcore.ahomepage.caption" … … 228 233 229 234 #: tformcontacts.caption 235 msgctxt "tformcontacts.caption" 230 236 msgid "Contacts" 231 237 msgstr "Kontakty" … … 249 255 msgstr "Příjimení" 250 256 257 #: tformfindduplicity.caption 258 msgctxt "tformfindduplicity.caption" 259 msgid "Find duplicities" 260 msgstr "Najít duplikáty" 261 262 #: tformfindduplicity.label1.caption 263 msgid "Contact field:" 264 msgstr "Pole kontaktu:" 265 266 #: tformfindduplicity.listview1.columns[0].caption 267 msgid "Field" 268 msgstr "Pole" 269 270 #: tformfindduplicity.listview1.columns[1].caption 271 msgctxt "tformfindduplicity.listview1.columns[1].caption" 272 msgid "Contacts" 273 msgstr "Kontakty" 274 275 #: tformfindduplicity.listview1.columns[2].caption 276 msgid "Count" 277 msgstr "Počet" 278 251 279 #: tformmain.caption 252 280 msgid "vCard Studio" -
trunk/Languages/vCardStudio.po
r15 r16 40 40 msgstr "" 41 41 42 #: tcore.afindduplicate.caption 43 msgctxt "tcore.afindduplicate.caption" 44 msgid "Find duplicities" 45 msgstr "" 46 42 47 #: tcore.ahomepage.caption 43 48 msgctxt "tcore.ahomepage.caption" … … 218 223 219 224 #: tformcontacts.caption 225 msgctxt "tformcontacts.caption" 220 226 msgid "Contacts" 221 227 msgstr "" … … 239 245 msgstr "" 240 246 247 #: tformfindduplicity.caption 248 msgctxt "tformfindduplicity.caption" 249 msgid "Find duplicities" 250 msgstr "" 251 252 #: tformfindduplicity.label1.caption 253 msgid "Contact field:" 254 msgstr "" 255 256 #: tformfindduplicity.listview1.columns[0].caption 257 msgid "Field" 258 msgstr "" 259 260 #: tformfindduplicity.listview1.columns[1].caption 261 msgctxt "tformfindduplicity.listview1.columns[1].caption" 262 msgid "Contacts" 263 msgstr "" 264 265 #: tformfindduplicity.listview1.columns[2].caption 266 msgid "Count" 267 msgstr "" 268 241 269 #: tformmain.caption 242 270 msgid "vCard Studio" -
trunk/UContact.pas
r15 r16 35 35 function AddNew(Name: string; Index: TContactFieldIndex; DataType: 36 36 TDataType): TContactField; 37 procedure LoadToStrings(AItems: TStrings); 37 38 end; 38 39 … … 88 89 ContactsFile: TContactsFile; 89 90 function Search(FullName: string): TContact; 91 function ToString: ansistring; override; 90 92 end; 91 93 … … 132 134 end; 133 135 136 function TContacts.ToString: ansistring; 137 var 138 I: Integer; 139 begin 140 Result := ''; 141 for I := 0 to Count - 1 do begin 142 if I > 0 then Result := Result + ', '; 143 Result := Result + TContact(Items[I]).FullName; 144 end; 145 end; 146 134 147 { TContactFields } 135 148 … … 142 155 Result.DataType := DataType; 143 156 Add(Result); 157 end; 158 159 procedure TContactFields.LoadToStrings(AItems: TStrings); 160 var 161 I: Integer; 162 begin 163 while AItems.Count < Count do AItems.Add(''); 164 while AItems.Count > Count do AItems.Delete(AItems.Count - 1); 165 for I := 0 to Count - 1 do 166 AItems[I] := TContactField(Items[I]).Name; 144 167 end; 145 168 -
trunk/UCore.lfm
r15 r16 3 3 OnDestroy = DataModuleDestroy 4 4 OldCreateOrder = False 5 Height = 7036 HorizontalOffset = 2707 VerticalOffset = 1748 Width = 10785 Height = 441 6 HorizontalOffset = 384 7 VerticalOffset = 299 8 Width = 605 9 9 PPI = 120 10 10 object ImageList1: TImageList 11 left = 25012 top = 36111 left = 96 12 top = 168 13 13 Bitmap = { 14 4C690 B000000100000001000000000000000000000000000000000000000000014 4C690C0000001000000010000000000000000000000000000000000000000000 15 15 0000000000000000000000000000000000000000000000000000000000000000 16 16 0000000000000000000000000000000000000000000000000000000000000000 … … 364 364 B2FFDCDCDCFF0000000000000000000000000000000000000000000000000000 365 365 0000000000000000000000000000000000000000000000000000000000000000 366 0000000000000000000000000000000000000000000000000000000000000000 367 0000000000000000000000000000000000000000000000000000000000000000 368 0000000000000000000000000000000000000000000000000000000000000000 369 0000000000000000000000000000000000000000000000000000000000000000 370 000000000000000000000000000000000000000000FF000000FF000000FF0000 371 00FF000000FF000000FF00000000000000000000000000000000000000000000 372 000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFF 373 FFFFFFFFFFFF000000FF000000FF000000000000000000000000000000000000 374 000000000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFF 375 FFFFFFFFFFFF000000FFFFFFFFFF000000FF0000000000000000000000000000 376 000000000000000000000000000000000000000000FFFFFFFFFF000000FF0000 377 00FFFFFFFFFF000000FF840000FF840000FF840000FF840000FF840000FF8400 378 00FF00000000000000000000000000000000000000FFFFFFFFFFFFFFFFFFFFFF 379 FFFFFFFFFFFFFFFFFFFF840000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8400 380 00FF840000FF000000000000000000000000000000FFFFFFFFFF000000FF0000 381 00FF000000FF000000FF840000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8400 382 00FFFFFFFFFF840000FF0000000000000000000000FFFFFFFFFFFFFFFFFFFFFF 383 FFFFFFFFFFFFFFFFFFFF840000FFFFFFFFFF000000FF000000FFFFFFFFFF8400 384 00FF840000FF840000FF840000FF00000000000000FFFFFFFFFF000000FF0000 385 00FF000000FF000000FF840000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 386 FFFFFFFFFFFFFFFFFFFF840000FF00000000000000FFFFFFFFFFFFFFFFFFFFFF 387 FFFFFFFFFFFFFFFFFFFF840000FFFFFFFFFF000000FF000000FF000000FF0000 388 00FF000000FFFFFFFFFF840000FF00000000000000FF000000FF000000FF0000 389 00FF000000FF000000FF840000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 390 FFFFFFFFFFFFFFFFFFFF840000FF000000000000000000000000000000000000 391 00000000000000000000840000FFFFFFFFFF000000FF000000FF000000FF0000 392 00FF000000FFFFFFFFFF840000FF000000000000000000000000000000000000 393 00000000000000000000840000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 394 FFFFFFFFFFFFFFFFFFFF840000FF000000000000000000000000000000000000 395 00000000000000000000840000FF840000FF840000FF840000FF840000FF8400 396 00FF840000FF840000FF840000FF000000000000000000000000000000000000 397 0000000000000000000000000000000000000000000000000000000000000000 366 398 0000000000000000000000000000 367 399 } … … 369 401 object ActionList1: TActionList 370 402 Images = ImageList1 371 left = 531372 top = 364403 left = 320 404 top = 168 373 405 object AExit: TAction 374 406 Caption = 'Exit' … … 434 466 OnExecute = AFileMergeExecute 435 467 end 468 object AFindDuplicate: TAction 469 Caption = 'Find duplicities' 470 ImageIndex = 11 471 OnExecute = AFindDuplicateExecute 472 end 436 473 end 437 474 object LastOpenedList1: TLastOpenedList 438 475 MaxCount = 10 439 476 OnChange = LastOpenedList1Change 440 left = 795441 top = 361477 left = 320 478 top = 240 442 479 end 443 480 object OpenDialog1: TOpenDialog 444 left = 813445 top = 504481 left = 320 482 top = 304 446 483 end 447 484 object SaveDialog1: TSaveDialog 448 left = 586449 top = 514485 left = 96 486 top = 304 450 487 end 451 488 object ApplicationInfo1: TApplicationInfo … … 464 501 RegistryRoot = rrKeyCurrentUser 465 502 License = 'CC0' 466 left = 299467 top = 514503 left = 96 504 top = 240 468 505 end 469 506 object PersistentForm1: TPersistentForm 470 507 MinVisiblePart = 50 471 508 EntireVisible = False 472 left = 813473 top = 1 13509 left = 320 510 top = 104 474 511 end 475 512 object CoolTranslator1: TCoolTranslator 476 513 POFilesFolder = 'Languages' 477 left = 374478 top = 113514 left = 96 515 top = 40 479 516 end 480 517 object ScaleDPI1: TScaleDPI 481 518 AutoDetect = False 482 left = 588483 top = 113519 left = 320 520 top = 40 484 521 end 485 522 object ThemeManager1: TThemeManager 486 left = 167487 top = 250523 left = 96 524 top = 104 488 525 end 489 526 end -
trunk/UCore.pas
r15 r16 26 26 TCore = class(TDataModule) 27 27 AAbout: TAction; 28 AFindDuplicate: TAction; 28 29 AFileMerge: TAction; 29 30 ASettings: TAction; … … 55 56 procedure AFileSaveAsExecute(Sender: TObject); 56 57 procedure AFileCloseExecute(Sender: TObject); 58 procedure AFindDuplicateExecute(Sender: TObject); 57 59 procedure AHomePageExecute(Sender: TObject); 58 60 procedure ASettingsExecute(Sender: TObject); … … 91 93 92 94 uses 93 UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts ;95 UFormMain, UFormAbout, UFormSettings, UContact, UFormContacts, UFormFindDuplicity; 94 96 95 97 resourcestring … … 168 170 FileClose; 169 171 UpdateFile; 172 end; 173 174 procedure TCore.AFindDuplicateExecute(Sender: TObject); 175 begin 176 FormFindDuplicity := TFormFindDuplicity.Create(nil); 177 with FormFindDuplicity do begin 178 Contacts := TContactsFile(DataFile).Contacts; 179 ShowModal; 180 Free; 181 end; 170 182 end; 171 183 -
trunk/vCardStudio.lpi
r15 r16 101 101 </Item4> 102 102 </RequiredPackages> 103 <Units Count=" 9">103 <Units Count="10"> 104 104 <Unit0> 105 105 <Filename Value="vCardStudio.lpr"/> … … 156 156 <ResourceBaseClass Value="Form"/> 157 157 </Unit8> 158 <Unit9> 159 <Filename Value="Forms\UFormFindDuplicity.pas"/> 160 <IsPartOfProject Value="True"/> 161 <ComponentName Value="FormFindDuplicity"/> 162 <HasResources Value="True"/> 163 <ResourceBaseClass Value="Form"/> 164 </Unit9> 158 165 </Units> 159 166 </ProjectOptions> -
trunk/vCardStudio.lpr
r2 r16 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UFormMain, UCore, Common, CoolTranslator, UDataFile, 11 TemplateGenerics, SysUtils, UFormContacts, UFormContact 11 TemplateGenerics, SysUtils, UFormContacts, UFormContact, UFormFindDuplicity 12 12 { you can add units after this }; 13 13
Note:
See TracChangeset
for help on using the changeset viewer.