Changeset 128 for branches/generator/Forms
- Timestamp:
- Nov 30, 2017, 6:33:17 PM (7 years ago)
- Location:
- branches/generator/Forms
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms/UFormMain.lfm
r127 r128 81 81 Top = 0 82 82 Width = 8 83 Caption = 'ToolButton6'84 83 Style = tbsSeparator 85 84 end -
branches/generator/Forms/UFormRuleItems.lfm
r122 r128 4 4 Top = 316 5 5 Width = 636 6 Caption = ' FormRuleItems'6 Caption = 'Rule items' 7 7 ClientHeight = 467 8 8 ClientWidth = 636 … … 39 39 Width = 636 40 40 Align = alBottom 41 Caption = 'ToolBar1'42 41 Images = Core.ImageList1 43 42 ParentShowHint = False -
branches/generator/Forms/UFormRuleItems.pas
r126 r128 111 111 procedure TFormRuleItems.AMoveDownExecute(Sender: TObject); 112 112 begin 113 RuleItems.ParentRule.Items.Move(ListView1.Selected.Index, ListView1.Selected.Index + 1); 114 ListView1.ItemIndex := ListView1.Selected.Index + 1; 115 ReloadList; 113 if Assigned(ListView1.Selected) then begin 114 RuleItems.Move(ListView1.Selected.Index, ListView1.Selected.Index + 1); 115 ListView1.ItemIndex := ListView1.Selected.Index + 1; 116 ReloadList; 117 end; 116 118 end; 117 119 118 120 procedure TFormRuleItems.AMoveUpExecute(Sender: TObject); 119 121 begin 120 RuleItems.ParentRule.Items.Move(ListView1.Selected.Index, ListView1.Selected.Index - 1); 121 ListView1.ItemIndex := ListView1.Selected.Index - 1; 122 ReloadList; 122 if Assigned(ListView1.Selected) then begin 123 RuleItems.Move(ListView1.Selected.Index, ListView1.Selected.Index - 1); 124 ListView1.ItemIndex := ListView1.Selected.Index - 1; 125 ReloadList; 126 end; 123 127 end; 124 128 … … 131 135 for I := ListView1.Items.Count - 1 downto 0 do 132 136 if ListView1.Items[I].Selected then begin 133 RuleItems. ParentRule.Items.Remove(TRuleItem(ListView1.Items[I].Data));137 RuleItems.Remove(TRuleItem(ListView1.Items[I].Data)); 134 138 RuleItems.Grammer.Modified := True; 135 139 end; -
branches/generator/Forms/UFormRules.lfm
r122 r128 34 34 BorderSpacing.Left = 22 35 35 BorderSpacing.Top = 3 36 Caption = 'ToolBar1'37 36 EdgeInner = esNone 38 37 EdgeOuter = esNone … … 78 77 Caption = 'Items' 79 78 Width = 500 79 end 80 item 81 Caption = 'Char length' 82 Width = 80 80 83 end> 81 84 MultiSelect = True -
branches/generator/Forms/UFormRules.pas
r126 r128 146 146 Item.SubItems.Add(BooleanText[CreateSourceNode]); 147 147 Item.SubItems.Add(Items.GetString); 148 Item.SubItems.Add(IntToStr(Items.GetCharLength)); 148 149 end; 149 150 end;
Note:
See TracChangeset
for help on using the changeset viewer.