Changeset 29 for trunk/Forms
- Timestamp:
- Jul 12, 2016, 4:41:03 PM (9 years ago)
- Location:
- trunk/Forms
- Files:
-
- 6 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]));
Note:
See TracChangeset
for help on using the changeset viewer.