Changeset 89 for trunk/Forms
- Timestamp:
- Aug 9, 2016, 10:53:36 PM (8 years ago)
- Location:
- trunk/Forms
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAbout.lfm
r76 r89 13 13 object LabelAppName: TLabel 14 14 Left = 20 15 Height = 5 415 Height = 55 16 16 Top = 20 17 17 Width = 433 … … 25 25 object LabelDescription: TLabel 26 26 Left = 20 27 Height = 4 028 Top = 9 427 Height = 48 28 Top = 95 29 29 Width = 433 30 30 Align = alTop … … 35 35 end 36 36 object ButtonClose: TButton 37 Left = 3 7837 Left = 360 38 38 Height = 25 39 39 Top = 357 40 Width = 7540 Width = 93 41 41 Anchors = [akRight, akBottom] 42 42 Caption = 'Close' … … 46 46 object LabelContent: TLabel 47 47 Left = 20 48 Height = 2 049 Top = 1 5448 Height = 24 49 Top = 163 50 50 Width = 433 51 51 Align = alTop … … 58 58 Height = 25 59 59 Top = 357 60 Width = 1 3960 Width = 176 61 61 Anchors = [akLeft, akBottom] 62 62 Caption = 'Home page' -
trunk/Forms/UFormAcronym.lfm
r85 r89 1 1 object FormAcronym: TFormAcronym 2 2 Left = 845 3 Height = 4483 Height = 595 4 4 Top = 528 5 Width = 5095 Width = 686 6 6 Caption = 'Acronym' 7 ClientHeight = 4488 ClientWidth = 5097 ClientHeight = 595 8 ClientWidth = 686 9 9 OnClose = FormClose 10 OnCreate = FormCreate 10 11 OnShow = FormShow 11 12 Position = poScreenCenter … … 13 14 object Label1: TLabel 14 15 Left = 8 15 Height = 2 016 Height = 24 16 17 Top = 16 17 Width = 4318 Width = 56 18 19 Caption = 'Name:' 19 20 ParentColor = False 20 21 end 21 22 object EditAcronym: TEdit 22 Left = 1 3623 Height = 2823 Left = 153 24 Height = 34 24 25 Top = 15 25 Width = 36126 Width = 521 26 27 Anchors = [akTop, akLeft, akRight] 27 28 OnKeyPress = EditMeaningKeyPress … … 30 31 object Label2: TLabel 31 32 Left = 8 32 Height = 2 033 Height = 24 33 34 Top = 49 34 Width = 6135 Width = 79 35 36 Caption = 'Meaning:' 36 37 ParentColor = False 37 38 end 38 39 object EditMeaning: TEdit 39 Left = 1 3640 Height = 2840 Left = 153 41 Height = 34 41 42 Top = 49 42 Width = 36143 Width = 521 43 44 Anchors = [akTop, akLeft, akRight] 44 45 OnKeyPress = EditMeaningKeyPress … … 46 47 end 47 48 object ButtonOk: TButton 48 Left = 40949 Height = 25 50 Top = 40849 Left = 586 50 Height = 25 51 Top = 555 51 52 Width = 75 52 53 Anchors = [akRight, akBottom] … … 57 58 end 58 59 object ButtonCancel: TButton 59 Left = 31360 Height = 25 61 Top = 40860 Left = 490 61 Height = 25 62 Top = 555 62 63 Width = 75 63 64 Anchors = [akRight, akBottom] … … 69 70 object Label3: TLabel 70 71 Left = 8 71 Height = 2 072 Height = 24 72 73 Top = 88 73 Width = 7974 Width = 103 74 75 Caption = 'Description:' 75 76 ParentColor = False 76 77 end 77 78 object MemoDescription: TMemo 78 Left = 1 3679 Left = 153 79 80 Height = 114 80 81 Top = 88 81 Width = 36182 Width = 521 82 83 Anchors = [akTop, akLeft, akRight] 83 84 OnKeyPress = EditMeaningKeyPress … … 87 88 object Label4: TLabel 88 89 Left = 12 89 Height = 2 090 Height = 24 90 91 Top = 208 91 Width = 7492 Width = 96 92 93 Caption = 'Categories:' 93 94 ParentColor = False 94 95 end 95 object ListBox 1: TListBox96 Left = 1 3696 object ListBoxCategories: TListBox 97 Left = 153 97 98 Height = 141 98 99 Top = 208 99 Width = 360100 Width = 520 100 101 Anchors = [akTop, akLeft, akRight] 101 102 ItemHeight = 0 102 103 MultiSelect = True 103 104 OnKeyPress = EditMeaningKeyPress 104 OnSelectionChange = ListBox 1SelectionChange105 OnSelectionChange = ListBoxCategoriesSelectionChange 105 106 PopupMenu = PopupMenuCategory 106 ScrollWidth = 358107 ScrollWidth = 518 107 108 TabOrder = 3 109 TopIndex = -1 108 110 end 109 111 object Button1: TButton 110 Left = 1 36112 Left = 153 111 113 Height = 25 112 114 Top = 360 113 Width = 75115 Width = 87 114 116 Action = ACategoryAdd 115 117 OnKeyPress = EditMeaningKeyPress … … 117 119 end 118 120 object Button2: TButton 119 Left = 2 32121 Left = 256 120 122 Height = 25 121 123 Top = 360 122 Width = 75124 Width = 104 123 125 Action = ACategoryRemove 124 126 OnKeyPress = EditMeaningKeyPress 125 127 TabOrder = 5 128 end 129 object Label5: TLabel 130 Left = 8 131 Height = 24 132 Top = 392 133 Width = 131 134 Caption = 'Imported from:' 135 ParentColor = False 136 end 137 object ListBoxImportSources: TListBox 138 Left = 153 139 Height = 112 140 Top = 392 141 Width = 521 142 Anchors = [akTop, akLeft, akRight] 143 ItemHeight = 0 144 MultiSelect = True 145 OnKeyPress = EditMeaningKeyPress 146 OnSelectionChange = ListBoxCategoriesSelectionChange 147 ScrollWidth = 519 148 TabOrder = 8 149 TopIndex = -1 126 150 end 127 151 object ActionList1: TActionList -
trunk/Forms/UFormAcronym.lrt
r17 r89 6 6 TFORMACRONYM.LABEL3.CAPTION=Description: 7 7 TFORMACRONYM.LABEL4.CAPTION=Categories: 8 TFORMACRONYM.LABEL5.CAPTION=Imported from: 8 9 TFORMACRONYM.ACATEGORYREMOVE.CAPTION=Remove 9 10 TFORMACRONYM.ACATEGORYADD.CAPTION=Add -
trunk/Forms/UFormAcronym.pas
r85 r89 27 27 Label3: TLabel; 28 28 Label4: TLabel; 29 ListBox1: TListBox; 29 Label5: TLabel; 30 ListBoxCategories: TListBox; 31 ListBoxImportSources: TListBox; 30 32 MemoDescription: TMemo; 31 33 MenuItem1: TMenuItem; … … 36 38 procedure EditMeaningKeyPress(Sender: TObject; var Key: char); 37 39 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 40 procedure FormCreate(Sender: TObject); 38 41 procedure FormShow(Sender: TObject); 39 procedure ListBox 1SelectionChange(Sender: TObject; User: boolean);42 procedure ListBoxCategoriesSelectionChange(Sender: TObject; User: boolean); 40 43 private 41 44 procedure UpdateInterface; … … 63 66 end; 64 67 68 procedure TFormAcronym.FormCreate(Sender: TObject); 69 begin 70 71 end; 72 65 73 procedure TFormAcronym.ACategoryAddExecute(Sender: TObject); 66 74 var 67 75 I: Integer; 68 76 begin 69 FormCategorySelect.Load(ListBox 1.Items);77 FormCategorySelect.Load(ListBoxCategories.Items); 70 78 if FormCategorySelect.ShowModal = mrOk then begin 71 79 for I := 0 to FormCategorySelect.ListBox1.Count - 1 do 72 80 if FormCategorySelect.ListBox1.Selected[I] then begin 73 ListBox 1.Items.AddObject(FormCategorySelect.ListBox1.Items[I], FormCategorySelect.ListBox1.Items.Objects[I]);81 ListBoxCategories.Items.AddObject(FormCategorySelect.ListBox1.Items[I], FormCategorySelect.ListBox1.Items.Objects[I]); 74 82 end; 75 83 end; … … 82 90 if MessageDlg(SRemoveCategory, SRemoveCategoryQuery, 83 91 TMsgDlgType.mtConfirmation, [mbCancel, mbOk], 0) = mrOk then begin 84 for I := ListBox 1.Items.Count - 1 downto 0 do85 if ListBox 1.Selected[I] then86 ListBox 1.Items.Delete(I);92 for I := ListBoxCategories.Items.Count - 1 downto 0 do 93 if ListBoxCategories.Selected[I] then 94 ListBoxCategories.Items.Delete(I); 87 95 UpdateInterface; 88 96 end; … … 101 109 end; 102 110 103 procedure TFormAcronym.ListBox 1SelectionChange(Sender: TObject; User: boolean);111 procedure TFormAcronym.ListBoxCategoriesSelectionChange(Sender: TObject; User: boolean); 104 112 begin 105 113 UpdateInterface; … … 108 116 procedure TFormAcronym.UpdateInterface; 109 117 begin 110 ACategoryRemove.Enabled := ListBox 1.ItemIndex <> -1;118 ACategoryRemove.Enabled := ListBoxCategories.ItemIndex <> -1; 111 119 end; 112 120 … … 116 124 EditMeaning.Text := Entry.Meaning; 117 125 MemoDescription.Text := Entry.Description; 118 ListBox1.Items.Assign(Entry.Categories); 126 ListBoxCategories.Items.Assign(Entry.Categories); 127 ListBoxImportSources.Items.Assign(Entry.Sources); 119 128 end; 120 129 … … 124 133 Entry.Meaning := EditMeaning.Text; 125 134 Entry.Description := MemoDescription.Text; 126 Entry.Categories.Assign(ListBox 1.Items);135 Entry.Categories.Assign(ListBoxCategories.Items); 127 136 end; 128 137 -
trunk/Forms/UFormAcronyms.pas
r86 r89 151 151 TempEntry.Description := Description; 152 152 Categories.AssignToStrings(TempEntry.Categories); 153 Sources.AssignToStrings(TempEntry.Sources); 153 154 TempCategories := TStringList.Create; 154 155 TempCategories.Assign(TempEntry.Categories); -
trunk/Forms/UFormCategories.pas
r86 r89 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 StdCtrls,ActnList, Menus, UAcronym;9 ActnList, Menus, UAcronym; 10 10 11 11 type -
trunk/Forms/UFormImportSource.pas
r86 r89 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ActnList, Menus, ExtCtrls, MaskEdit,UAcronym, LCLIntf;9 ActnList, Menus, ExtCtrls, UAcronym, LCLIntf; 10 10 11 11 type
Note:
See TracChangeset
for help on using the changeset viewer.