Skip to content

Commit

Permalink
[gui]: Make the Ephemeral thing effective in the GUI forms
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDrab committed Jan 11, 2020
1 parent d26cee1 commit 48efaf4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gui/FillterForm.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ object FilterFrm: TFilterFrm
Height = 145
Align = alTop
TabOrder = 0
ExplicitTop = -6
object Label1: TLabel
Left = 0
Top = 13
Expand Down Expand Up @@ -200,6 +201,14 @@ object FilterFrm: TFilterFrm
TabOrder = 14
OnClick = AddButtonClick
end
object EphemeralCheckBox: TCheckBox
Left = 346
Top = 80
Width = 73
Height = 17
Caption = 'Ephemeral'
TabOrder = 15
end
end
object LowerPanel: TPanel
Left = 0
Expand Down
6 changes: 6 additions & 0 deletions gui/FillterForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
Label6: TLabel;
NameEdit: TEdit;
ApplyButton: TButton;
EphemeralCheckBox: TCheckBox;
Procedure FormCreate(Sender: TObject);
procedure FilterTypeComboBoxChange(Sender: TObject);
procedure FilterColumnComboBoxChange(Sender: TObject);
Expand Down Expand Up @@ -267,6 +268,9 @@
Font.Color := ClBlack
Else Font.Color := ClWhite;
end;

If f.Ephemeral Then
Font.Style := Font.Style + [fsItalic];
end;

DefaultDraw := True;
Expand Down Expand Up @@ -342,6 +346,7 @@
HighlightColorColorBox.Selected := f.HighlightColor;
NegateCheckBox.Checked := f.Negate;
EnabledCheckBox.Checked := f.Enabled;
EphemeralCheckBox.Checked := f.Ephemeral;
end;
end;

Expand Down Expand Up @@ -607,6 +612,7 @@
end;

f.Enabled := EnabledCheckBox.Checked;
f.Ephemeral := EphemeralCheckBox.Checked;
FilterListViewData(FilterListView, L);
f := Nil;
Finally
Expand Down
1 change: 1 addition & 0 deletions gui/MainForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ procedure TMainFrm.PopupFilterClick(Sender: TObject);
rq := FModel.Selected;
rf := TRequestFilter.NewInstance(rq.RequestType);
rf.Enabled := True;
rf.Ephemeral := True;
columnType := ERequestListModelColumnType(M.Tag);
ret := rq.GetColumnValueRaw(columnType, d, l);
If ret Then
Expand Down

0 comments on commit 48efaf4

Please sign in to comment.