- Timestamp:
- Jul 12, 2016, 4:41:03 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormImportSource.lfm
r28 r29 1 1 object FormImportSource: TFormImportSource 2 2 Left = 506 3 Height = 4223 Height = 282 4 4 Top = 363 5 Width = 5 995 Width = 507 6 6 Caption = 'Import source' 7 ClientHeight = 4228 ClientWidth = 5 997 ClientHeight = 282 8 ClientWidth = 507 9 9 LCLVersion = '1.6.0.4' 10 10 object EditName: TEdit … … 12 12 Height = 28 13 13 Top = 10 14 Width = 43214 Width = 340 15 15 Anchors = [akTop, akLeft, akRight] 16 16 TabOrder = 0 … … 36 36 Height = 28 37 37 Top = 49 38 Width = 43238 Width = 340 39 39 Anchors = [akTop, akLeft, akRight] 40 40 TabOrder = 1 41 41 end 42 42 object ButtonOk: TButton 43 Left = 50443 Left = 412 44 44 Height = 25 45 Top = 38445 Top = 244 46 46 Width = 75 47 47 Anchors = [akRight, akBottom] … … 51 51 end 52 52 object ButtonCancel: TButton 53 Left = 40853 Left = 316 54 54 Height = 25 55 Top = 38455 Top = 244 56 56 Width = 75 57 57 Anchors = [akRight, akBottom] … … 72 72 Height = 28 73 73 Top = 91 74 Width = 30474 Width = 212 75 75 Anchors = [akTop, akLeft, akRight] 76 76 ItemHeight = 20 … … 79 79 end 80 80 object ButtonShowFormat: TButton 81 Left = 47281 Left = 380 82 82 Height = 25 83 83 Top = 91 … … 88 88 TabOrder = 5 89 89 end 90 object CheckBoxEnabled: TCheckBox 91 Left = 11 92 Height = 24 93 Top = 136 94 Width = 78 95 Caption = 'Enabled' 96 TabOrder = 6 97 end 90 98 end -
trunk/Forms/UFormImportSource.lrt
r28 r29 6 6 TFORMIMPORTSOURCE.LABEL3.CAPTION=Data format: 7 7 TFORMIMPORTSOURCE.BUTTONSHOWFORMAT.CAPTION=Configure 8 TFORMIMPORTSOURCE.CHECKBOXENABLED.CAPTION=Enabled -
trunk/Forms/UFormImportSource.pas
r28 r29 17 17 ButtonOk: TButton; 18 18 ButtonCancel: TButton; 19 CheckBoxEnabled: TCheckBox; 19 20 ComboBox1: TComboBox; 20 21 EditName: TEdit; … … 78 79 if (ComboBox1.ItemIndex = -1) and (ComboBox1.Items.Count > 0) then 79 80 ComboBox1.ItemIndex := 0; 81 CheckBoxEnabled.Checked := ImportSource.Enabled; 80 82 end; 81 83 … … 85 87 ImportSource.URL := EditURL.Text; 86 88 ImportSource.Format := TImportFormat(ComboBox1.Items.Objects[ComboBox1.ItemIndex]); 89 ImportSource.Enabled := CheckBoxEnabled.Checked; 87 90 end; 88 91 -
trunk/Forms/UFormImportSources.lfm
r22 r29 15 15 Width = 577 16 16 Anchors = [akTop, akLeft, akRight, akBottom] 17 Checkboxes = True 17 18 Columns = < 18 19 item -
trunk/Forms/UFormImportSources.pas
r28 r29 67 67 Item.Data := ImportSources[Item.Index]; 68 68 Item.SubItems.Add(URL); 69 Item.Checked := Enabled; 69 70 end; 70 71 end; -
trunk/Forms/UFormMain.pas
r28 r29 259 259 begin 260 260 TotalItemCount := 0; 261 for I := 0 to AcronymDb.ImportSources.Count - 1 do begin 262 TImportSource(AcronymDb.ImportSources[I]).Process; 263 TotalItemCount := TotalItemCount + TImportSource(AcronymDb.ImportSources[I]).ItemCount; 261 for I := 0 to AcronymDb.ImportSources.Count - 1 do 262 with TImportSource(AcronymDb.ImportSources[I]) do 263 if Enabled then begin 264 Process; 265 TotalItemCount := TotalItemCount + ItemCount; 264 266 end; 265 267 ShowMessage(Format(SAddedCount, [TotalItemCount])); -
trunk/Languages/AcronymDecoder.cs.po
r28 r29 200 200 #: tformimportformat.amovedown.caption 201 201 msgid "Move down" 202 msgstr " "202 msgstr "Přesunout níže" 203 203 204 204 #: tformimportformat.amoveup.caption 205 205 msgid "Move up" 206 msgstr " "206 msgstr "Přesounout výše" 207 207 208 208 #: tformimportformat.aremove.caption … … 247 247 #: tformimportformat.listviewitemrules.columns[0].caption 248 248 msgid "Start string" 249 msgstr " "249 msgstr "Počáteční řetězec" 250 250 251 251 #: tformimportformat.listviewitemrules.columns[1].caption 252 252 msgid "End string" 253 msgstr " "253 msgstr "Koncový řetězec" 254 254 255 255 #: tformimportformat.listviewitemrules.columns[2].caption 256 256 msgid "Action" 257 msgstr " "257 msgstr "Akce" 258 258 259 259 #: tformimportformat.listviewitemrules.columns[3].caption 260 260 msgid "Variable" 261 msgstr " "261 msgstr "Proměnná" 262 262 263 263 #: tformimportformat.listviewitemrules.columns[4].caption 264 264 msgctxt "tformimportformat.listviewitemrules.columns[4].caption" 265 265 msgid "Repetition" 266 msgstr " "266 msgstr "Opakování" 267 267 268 268 #: tformimportformats.aadd.caption … … 305 305 #: tformimportpattern.caption 306 306 msgid "Import pattern" 307 msgstr " "307 msgstr "Vzor importu" 308 308 309 309 #: tformimportpattern.checkboxrepetition.caption 310 310 msgctxt "tformimportpattern.checkboxrepetition.caption" 311 311 msgid "Repetition" 312 msgstr " "312 msgstr "Opakování" 313 313 314 314 #: tformimportpattern.label10.caption 315 315 msgid "Action:" 316 msgstr " "316 msgstr "Akce" 317 317 318 318 #: tformimportpattern.label11.caption 319 319 msgid "Variable:" 320 msgstr " "320 msgstr "Proměnná" 321 321 322 322 #: tformimportpattern.label8.caption 323 323 msgid "Start string:" 324 msgstr " "324 msgstr "Počáteční řetězec" 325 325 326 326 #: tformimportpattern.label9.caption 327 327 msgid "End string:" 328 msgstr " "328 msgstr "Koncový řetězec" 329 329 330 330 #: tformimportsource.buttoncancel.caption … … 340 340 #: tformimportsource.buttonshowformat.caption 341 341 msgid "Configure" 342 msgstr " "342 msgstr "Nastavit" 343 343 344 344 #: tformimportsource.caption … … 347 347 msgstr "Zdroj importu" 348 348 349 #: tformimportsource.checkboxenabled.caption 350 msgid "Enabled" 351 msgstr "" 352 349 353 #: tformimportsource.label1.caption 350 354 msgctxt "tformimportsource.label1.caption" … … 603 607 #: uformimportformat.sno 604 608 msgid "No" 605 msgstr " "609 msgstr "Ne" 606 610 607 611 #: uformimportformat.sremoveimportpattern 608 612 msgid "Remove import pattern" 609 msgstr " "613 msgstr "Odstranit vzory importu" 610 614 611 615 #: uformimportformat.sremoveimportpatternquery 612 616 msgid "Do you really want to remove selected import patterns?" 613 msgstr " "617 msgstr "Opravdu chcete odstranit vybrané vzory importu?" 614 618 615 619 #: uformimportformat.syes 616 620 msgid "Yes" 617 msgstr " "621 msgstr "Ano" 618 622 619 623 #: uformimportformats.simportformatalreadyexists … … 646 650 #: uformmain.saddedcount 647 651 msgid "Imported %d acronyms" 648 msgstr " "652 msgstr "Importováno %d zkratek" 649 653 650 654 #: uformmain.sappexit -
trunk/Languages/AcronymDecoder.po
r28 r29 330 330 msgstr "" 331 331 332 #: tformimportsource.checkboxenabled.caption 333 msgid "Enabled" 334 msgstr "" 335 332 336 #: tformimportsource.label1.caption 333 337 msgctxt "TFORMIMPORTSOURCE.LABEL1.CAPTION" -
trunk/UAcronym.pas
r28 r29 163 163 procedure DoPassword(Sender: TObject; var RepeatRequest : Boolean); 164 164 public 165 Enabled: Boolean; 165 166 Name: string; 166 167 URL: string; … … 618 619 procedure TImportSource.Assign(Source: TImportSource); 619 620 begin 621 Enabled := Source.Enabled; 620 622 Name := Source.Name; 621 623 URL := Source.URL; 622 624 Format := Source.Format; 625 LastTime := Source.LastTime; 626 ItemCount := Source.ItemCount; 623 627 end; 624 628 … … 629 633 if Assigned(Format) then WriteInteger(Node, 'ImportFormat', Format.Id) 630 634 else WriteInteger(Node, 'ImportFormat', -1); 635 WriteBoolean(Node, 'Enabled', Enabled); 631 636 end; 632 637 … … 636 641 URL := ReadString(Node, 'URL', ''); 637 642 Format := Sources.AcronymDb.ImportFormats.SearchById(ReadInteger(Node, 'ImportFormat', -1)); 643 Enabled := ReadBoolean(Node, 'Enabled', True); 638 644 end; 639 645 … … 641 647 begin 642 648 Format := nil; 649 Enabled := True; 643 650 end; 644 651
Note:
See TracChangeset
for help on using the changeset viewer.