Changeset 129 for branches/generator/Forms/UFormRule.pas
- Timestamp:
- Dec 19, 2017, 4:56:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormRule.pas
r126 r129 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, ActnList, Menus, U Rules, UFormRuleItems;9 ComCtrls, ActnList, Menus, UGrammer, UFormRuleItems; 10 10 11 11 type … … 17 17 ButtonCancel: TButton; 18 18 CheckBoxCreateNode: TCheckBox; 19 ComboBoxLevel: TComboBox; 19 20 EditName: TEdit; 20 21 Label1: TLabel; 22 Label2: TLabel; 21 23 ListView1: TListView; 22 24 PageControl1: TPageControl; … … 70 72 71 73 procedure TFormRule.FormCreate(Sender: TObject); 74 var 75 I: TRuleLevel; 72 76 begin 73 77 FormRuleItems := TFormRuleItems.Create(nil); … … 76 80 FormRuleItems.Show; 77 81 UsedByRules := TStringList.Create; 82 ComboBoxLevel.Items.Clear; 83 for I := Low(TRuleLevel) to High(RuleLevelText) do 84 ComboBoxLevel.Items.Add(RuleLevelText[I]); 78 85 end; 79 86 … … 91 98 EditName.Text := Rule.Name; 92 99 CheckBoxCreateNode.Checked := Rule.CreateSourceNode; 100 ComboBoxLevel.ItemIndex := Integer(Rule.Level); 93 101 FormRuleItems.LoadData(Rule.Items); 94 102 end; … … 99 107 Rule.Name := EditName.Text; 100 108 Rule.CreateSourceNode := CheckBoxCreateNode.Checked; 109 Rule.Level := TRuleLevel(ComboBoxLevel.ItemIndex); 101 110 FormRuleItems.SaveData(Rule.Items); 102 111 end;
Note:
See TracChangeset
for help on using the changeset viewer.