mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 20:41:37 +02:00
IDE: Add checkbox to show/hide property filter in object inspector. Issue #35043, patch from ptvs.
git-svn-id: trunk@60406 -
This commit is contained in:
parent
8375daf906
commit
6921b150ee
@ -95,6 +95,7 @@ type
|
|||||||
|
|
||||||
FSaveBounds: boolean;
|
FSaveBounds: boolean;
|
||||||
FLeft: integer;
|
FLeft: integer;
|
||||||
|
FShowPropertyFilter: boolean;
|
||||||
FShowGutter: boolean;
|
FShowGutter: boolean;
|
||||||
FShowInfoBox: boolean;
|
FShowInfoBox: boolean;
|
||||||
FInfoBoxHeight: integer;
|
FInfoBoxHeight: integer;
|
||||||
@ -165,6 +166,7 @@ type
|
|||||||
property CheckboxForBoolean: boolean read FCheckboxForBoolean write FCheckboxForBoolean;
|
property CheckboxForBoolean: boolean read FCheckboxForBoolean write FCheckboxForBoolean;
|
||||||
property BoldNonDefaultValues: boolean read FBoldNonDefaultValues write FBoldNonDefaultValues;
|
property BoldNonDefaultValues: boolean read FBoldNonDefaultValues write FBoldNonDefaultValues;
|
||||||
property DrawGridLines: boolean read FDrawGridLines write FDrawGridLines;
|
property DrawGridLines: boolean read FDrawGridLines write FDrawGridLines;
|
||||||
|
property ShowPropertyFilter: boolean read FShowPropertyFilter write FShowPropertyFilter;
|
||||||
property ShowGutter: boolean read FShowGutter write FShowGutter;
|
property ShowGutter: boolean read FShowGutter write FShowGutter;
|
||||||
property ShowStatusBar: boolean read FShowStatusBar write FShowStatusBar;
|
property ShowStatusBar: boolean read FShowStatusBar write FShowStatusBar;
|
||||||
property ShowInfoBox: boolean read FShowInfoBox write FShowInfoBox;
|
property ShowInfoBox: boolean read FShowInfoBox write FShowInfoBox;
|
||||||
@ -630,6 +632,7 @@ type
|
|||||||
private
|
private
|
||||||
// These are created at run-time, no need for default published section.
|
// These are created at run-time, no need for default published section.
|
||||||
PropertyPanel: TPanel;
|
PropertyPanel: TPanel;
|
||||||
|
PropFilterPanel: TPanel;
|
||||||
PropFilterLabel: TLabel;
|
PropFilterLabel: TLabel;
|
||||||
PropFilterEdit: TListFilterEdit;
|
PropFilterEdit: TListFilterEdit;
|
||||||
RestrictedPanel: TPanel;
|
RestrictedPanel: TPanel;
|
||||||
@ -656,6 +659,7 @@ type
|
|||||||
OptionsSeparatorMenuItem3: TMenuItem;
|
OptionsSeparatorMenuItem3: TMenuItem;
|
||||||
RemoveFromFavoritesPopupMenuItem: TMenuItem;
|
RemoveFromFavoritesPopupMenuItem: TMenuItem;
|
||||||
ShowComponentTreePopupMenuItem: TMenuItem;
|
ShowComponentTreePopupMenuItem: TMenuItem;
|
||||||
|
ShowPropertyFilterPopupMenuItem: TMenuItem;
|
||||||
ShowHintsPopupMenuItem: TMenuItem;
|
ShowHintsPopupMenuItem: TMenuItem;
|
||||||
ShowInfoBoxPopupMenuItem: TMenuItem;
|
ShowInfoBoxPopupMenuItem: TMenuItem;
|
||||||
ShowStatusBarPopupMenuItem: TMenuItem;
|
ShowStatusBarPopupMenuItem: TMenuItem;
|
||||||
@ -679,6 +683,7 @@ type
|
|||||||
FSelection: TPersistentSelectionList;
|
FSelection: TPersistentSelectionList;
|
||||||
FSettingSelectionCount: integer;
|
FSettingSelectionCount: integer;
|
||||||
FShowComponentTree: Boolean;
|
FShowComponentTree: Boolean;
|
||||||
|
FShowPropertyFilter: boolean;
|
||||||
FShowFavorites: Boolean;
|
FShowFavorites: Boolean;
|
||||||
FShowInfoBox: Boolean;
|
FShowInfoBox: Boolean;
|
||||||
FShowRestricted: Boolean;
|
FShowRestricted: Boolean;
|
||||||
@ -730,6 +735,7 @@ type
|
|||||||
procedure ChangeClassPopupmenuItemClick(Sender: TObject);
|
procedure ChangeClassPopupmenuItemClick(Sender: TObject);
|
||||||
procedure ComponentTreeModified(Sender: TObject);
|
procedure ComponentTreeModified(Sender: TObject);
|
||||||
procedure ShowComponentTreePopupMenuItemClick(Sender: TObject);
|
procedure ShowComponentTreePopupMenuItemClick(Sender: TObject);
|
||||||
|
procedure ShowPropertyFilterPopupMenuItemClick(Sender: TObject);
|
||||||
procedure ShowHintPopupMenuItemClick(Sender: TObject);
|
procedure ShowHintPopupMenuItemClick(Sender: TObject);
|
||||||
procedure ShowInfoBoxPopupMenuItemClick(Sender: TObject);
|
procedure ShowInfoBoxPopupMenuItemClick(Sender: TObject);
|
||||||
procedure ShowStatusBarPopupMenuItemClick(Sender: TObject);
|
procedure ShowStatusBarPopupMenuItemClick(Sender: TObject);
|
||||||
@ -738,7 +744,6 @@ type
|
|||||||
procedure WidgetSetRestrictedPaint(Sender: TObject);
|
procedure WidgetSetRestrictedPaint(Sender: TObject);
|
||||||
procedure ComponentRestrictedPaint(Sender: TObject);
|
procedure ComponentRestrictedPaint(Sender: TObject);
|
||||||
procedure PropFilterEditAfterFilter(Sender: TObject);
|
procedure PropFilterEditAfterFilter(Sender: TObject);
|
||||||
procedure PropFilterEditResize(Sender: TObject);
|
|
||||||
procedure NoteBookPageChange(Sender: TObject);
|
procedure NoteBookPageChange(Sender: TObject);
|
||||||
procedure ChangeParentItemClick(Sender: TObject);
|
procedure ChangeParentItemClick(Sender: TObject);
|
||||||
procedure CollectionAddItem(Sender: TObject);
|
procedure CollectionAddItem(Sender: TObject);
|
||||||
@ -783,6 +788,7 @@ type
|
|||||||
procedure SetRestricted(const AValue: TOIRestrictedProperties);
|
procedure SetRestricted(const AValue: TOIRestrictedProperties);
|
||||||
procedure SetSelection(const ASelection: TPersistentSelectionList);
|
procedure SetSelection(const ASelection: TPersistentSelectionList);
|
||||||
procedure SetShowComponentTree(const AValue: boolean);
|
procedure SetShowComponentTree(const AValue: boolean);
|
||||||
|
procedure SetShowPropertyFilter(const AValue: Boolean);
|
||||||
procedure SetShowFavorites(const AValue: Boolean);
|
procedure SetShowFavorites(const AValue: Boolean);
|
||||||
procedure SetShowInfoBox(const AValue: Boolean);
|
procedure SetShowInfoBox(const AValue: Boolean);
|
||||||
procedure SetShowRestricted(const AValue: Boolean);
|
procedure SetShowRestricted(const AValue: Boolean);
|
||||||
@ -839,6 +845,7 @@ type
|
|||||||
property Selection: TPersistentSelectionList read FSelection write SetSelection;
|
property Selection: TPersistentSelectionList read FSelection write SetSelection;
|
||||||
property AutoShow: Boolean read FAutoShow write FAutoShow;
|
property AutoShow: Boolean read FAutoShow write FAutoShow;
|
||||||
property ShowComponentTree: Boolean read FShowComponentTree write SetShowComponentTree;
|
property ShowComponentTree: Boolean read FShowComponentTree write SetShowComponentTree;
|
||||||
|
property ShowPropertyFilter: boolean read FShowPropertyFilter write SetShowPropertyFilter;
|
||||||
property ShowFavorites: Boolean read FShowFavorites write SetShowFavorites;
|
property ShowFavorites: Boolean read FShowFavorites write SetShowFavorites;
|
||||||
property ShowInfoBox: Boolean read FShowInfoBox write SetShowInfoBox;
|
property ShowInfoBox: Boolean read FShowInfoBox write SetShowInfoBox;
|
||||||
property ShowRestricted: Boolean read FShowRestricted write SetShowRestricted;
|
property ShowRestricted: Boolean read FShowRestricted write SetShowRestricted;
|
||||||
@ -3995,6 +4002,7 @@ begin
|
|||||||
FCheckboxForBoolean := True;
|
FCheckboxForBoolean := True;
|
||||||
FBoldNonDefaultValues := True;
|
FBoldNonDefaultValues := True;
|
||||||
FDrawGridLines := True;
|
FDrawGridLines := True;
|
||||||
|
FShowPropertyFilter := True;
|
||||||
FShowGutter := True;
|
FShowGutter := True;
|
||||||
FShowStatusBar := True;
|
FShowStatusBar := True;
|
||||||
FShowInfoBox := True;
|
FShowInfoBox := True;
|
||||||
@ -4052,6 +4060,7 @@ begin
|
|||||||
FCheckboxForBoolean := ConfigStore.GetValue(Path+'CheckboxForBoolean',True);
|
FCheckboxForBoolean := ConfigStore.GetValue(Path+'CheckboxForBoolean',True);
|
||||||
FBoldNonDefaultValues := ConfigStore.GetValue(Path+'BoldNonDefaultValues',True);
|
FBoldNonDefaultValues := ConfigStore.GetValue(Path+'BoldNonDefaultValues',True);
|
||||||
FDrawGridLines := ConfigStore.GetValue(Path+'DrawGridLines',True);
|
FDrawGridLines := ConfigStore.GetValue(Path+'DrawGridLines',True);
|
||||||
|
FShowPropertyFilter := ConfigStore.GetValue(Path+'ShowPropertyFilter',True);
|
||||||
FShowGutter := ConfigStore.GetValue(Path+'ShowGutter',True);
|
FShowGutter := ConfigStore.GetValue(Path+'ShowGutter',True);
|
||||||
FShowStatusBar := ConfigStore.GetValue(Path+'ShowStatusBar',True);
|
FShowStatusBar := ConfigStore.GetValue(Path+'ShowStatusBar',True);
|
||||||
FShowInfoBox := ConfigStore.GetValue(Path+'ShowInfoBox',True);
|
FShowInfoBox := ConfigStore.GetValue(Path+'ShowInfoBox',True);
|
||||||
@ -4107,6 +4116,7 @@ begin
|
|||||||
ConfigStore.SetDeleteValue(Path+'CheckboxForBoolean',FCheckboxForBoolean, True);
|
ConfigStore.SetDeleteValue(Path+'CheckboxForBoolean',FCheckboxForBoolean, True);
|
||||||
ConfigStore.SetDeleteValue(Path+'BoldNonDefaultValues',FBoldNonDefaultValues, True);
|
ConfigStore.SetDeleteValue(Path+'BoldNonDefaultValues',FBoldNonDefaultValues, True);
|
||||||
ConfigStore.SetDeleteValue(Path+'DrawGridLines',FDrawGridLines, True);
|
ConfigStore.SetDeleteValue(Path+'DrawGridLines',FDrawGridLines, True);
|
||||||
|
ConfigStore.SetDeleteValue(Path+'ShowPropertyFilter',FShowPropertyFilter, True);
|
||||||
ConfigStore.SetDeleteValue(Path+'ShowGutter',FShowGutter, True);
|
ConfigStore.SetDeleteValue(Path+'ShowGutter',FShowGutter, True);
|
||||||
ConfigStore.SetDeleteValue(Path+'ShowStatusBar',FShowStatusBar, True);
|
ConfigStore.SetDeleteValue(Path+'ShowStatusBar',FShowStatusBar, True);
|
||||||
ConfigStore.SetDeleteValue(Path+'ShowInfoBox',FShowInfoBox, True);
|
ConfigStore.SetDeleteValue(Path+'ShowInfoBox',FShowInfoBox, True);
|
||||||
@ -4153,6 +4163,7 @@ begin
|
|||||||
FCheckboxForBoolean := AnObjInspector.FCheckboxForBoolean;
|
FCheckboxForBoolean := AnObjInspector.FCheckboxForBoolean;
|
||||||
FBoldNonDefaultValues := fsBold in AnObjInspector.PropertyGrid.ValueFont.Style;
|
FBoldNonDefaultValues := fsBold in AnObjInspector.PropertyGrid.ValueFont.Style;
|
||||||
FDrawGridLines := AnObjInspector.PropertyGrid.DrawHorzGridLines;
|
FDrawGridLines := AnObjInspector.PropertyGrid.DrawHorzGridLines;
|
||||||
|
FShowPropertyFilter := AnObjInspector.ShowPropertyFilter;
|
||||||
FShowGutter := AnObjInspector.PropertyGrid.ShowGutter;
|
FShowGutter := AnObjInspector.PropertyGrid.ShowGutter;
|
||||||
FShowStatusBar := AnObjInspector.ShowStatusBar;
|
FShowStatusBar := AnObjInspector.ShowStatusBar;
|
||||||
FShowInfoBox := AnObjInspector.ShowInfoBox;
|
FShowInfoBox := AnObjInspector.ShowInfoBox;
|
||||||
@ -4182,6 +4193,7 @@ begin
|
|||||||
AnObjInspector.AutoShow := AutoShow;
|
AnObjInspector.AutoShow := AutoShow;
|
||||||
AnObjInspector.FCheckboxForBoolean := FCheckboxForBoolean;
|
AnObjInspector.FCheckboxForBoolean := FCheckboxForBoolean;
|
||||||
AnObjInspector.ShowComponentTree := ShowComponentTree;
|
AnObjInspector.ShowComponentTree := ShowComponentTree;
|
||||||
|
AnObjInspector.ShowPropertyFilter := ShowPropertyFilter;
|
||||||
AnObjInspector.ShowInfoBox := ShowInfoBox;
|
AnObjInspector.ShowInfoBox := ShowInfoBox;
|
||||||
AnObjInspector.ComponentPanelHeight := ComponentTreeHeight;
|
AnObjInspector.ComponentPanelHeight := ComponentTreeHeight;
|
||||||
AnObjInspector.InfoBoxHeight := InfoBoxHeight;
|
AnObjInspector.InfoBoxHeight := InfoBoxHeight;
|
||||||
@ -4266,6 +4278,7 @@ begin
|
|||||||
FDefaultItemHeight := 0;
|
FDefaultItemHeight := 0;
|
||||||
ComponentPanelHeight := 160;
|
ComponentPanelHeight := 160;
|
||||||
FShowComponentTree := True;
|
FShowComponentTree := True;
|
||||||
|
FShowPropertyFilter := True;
|
||||||
FShowFavorites := False;
|
FShowFavorites := False;
|
||||||
FShowRestricted := False;
|
FShowRestricted := False;
|
||||||
FShowStatusBar := True;
|
FShowStatusBar := True;
|
||||||
@ -4326,6 +4339,11 @@ begin
|
|||||||
,@ShowComponentTreePopupMenuItemClick,FShowComponentTree,true,true);
|
,@ShowComponentTreePopupMenuItemClick,FShowComponentTree,true,true);
|
||||||
ShowComponentTreePopupMenuItem.ShowAlwaysCheckable:=true;
|
ShowComponentTreePopupMenuItem.ShowAlwaysCheckable:=true;
|
||||||
|
|
||||||
|
AddPopupMenuItem(ShowPropertyFilterPopupMenuItem,nil
|
||||||
|
,'ShowPropertyFilterPopupMenuItem',oisShowPropertyFilter, '', ''
|
||||||
|
,@ShowPropertyFilterPopupMenuItemClick,FShowPropertyFilter,true,true);
|
||||||
|
ShowPropertyFilterPopupMenuItem.ShowAlwaysCheckable:=true;
|
||||||
|
|
||||||
AddPopupMenuItem(ShowHintsPopupMenuItem,nil
|
AddPopupMenuItem(ShowHintsPopupMenuItem,nil
|
||||||
,'ShowHintPopupMenuItem',oisShowHints,'Grid hints', ''
|
,'ShowHintPopupMenuItem',oisShowHints,'Grid hints', ''
|
||||||
,@ShowHintPopupMenuItemClick,false,true,true);
|
,@ShowHintPopupMenuItemClick,false,true,true);
|
||||||
@ -4419,13 +4437,26 @@ begin
|
|||||||
Visible := True;
|
Visible := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
PropFilterPanel := TPanel.Create(Self);
|
||||||
|
with PropFilterPanel do
|
||||||
|
begin
|
||||||
|
Name := 'PropFilterPanel';
|
||||||
|
Caption := '';
|
||||||
|
Parent := PropertyPanel;
|
||||||
|
BevelOuter := bvNone;
|
||||||
|
BevelInner := bvNone;
|
||||||
|
AutoSize := true;
|
||||||
|
Align := alTop;
|
||||||
|
Visible := True;
|
||||||
|
end;
|
||||||
|
|
||||||
PropFilterLabel := TLabel.Create(Self);
|
PropFilterLabel := TLabel.Create(Self);
|
||||||
PropFilterEdit:= TListFilterEdit.Create(Self);
|
PropFilterEdit:= TListFilterEdit.Create(Self);
|
||||||
with PropFilterLabel do
|
with PropFilterLabel do
|
||||||
begin
|
begin
|
||||||
Parent := PropertyPanel;
|
Parent := PropFilterPanel;
|
||||||
Left := Scale96ToForm(5);
|
BorderSpacing.Left := Scale96ToForm(5);
|
||||||
Top := Scale96ToForm(7);
|
BorderSpacing.Top := Scale96ToForm(7);
|
||||||
Width := Scale96ToForm(53);
|
Width := Scale96ToForm(53);
|
||||||
Caption := oisBtnProperties;
|
Caption := oisBtnProperties;
|
||||||
FocusControl := PropFilterEdit;
|
FocusControl := PropFilterEdit;
|
||||||
@ -4433,7 +4464,7 @@ begin
|
|||||||
|
|
||||||
with PropFilterEdit do
|
with PropFilterEdit do
|
||||||
begin
|
begin
|
||||||
Parent := PropertyPanel;
|
Parent := PropFilterPanel;
|
||||||
AnchorSideLeft.Control := PropFilterLabel;
|
AnchorSideLeft.Control := PropFilterLabel;
|
||||||
AnchorSideLeft.Side := asrBottom;
|
AnchorSideLeft.Side := asrBottom;
|
||||||
AnchorSideTop.Control := PropFilterLabel;
|
AnchorSideTop.Control := PropFilterLabel;
|
||||||
@ -4444,7 +4475,6 @@ begin
|
|||||||
Anchors := [akTop, akLeft, akRight];
|
Anchors := [akTop, akLeft, akRight];
|
||||||
BorderSpacing.Left := 5;
|
BorderSpacing.Left := 5;
|
||||||
OnAfterFilter := @PropFilterEditAfterFilter;
|
OnAfterFilter := @PropFilterEditAfterFilter;
|
||||||
OnResize := @PropFilterEditResize;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
CreateNoteBook;
|
CreateNoteBook;
|
||||||
@ -4460,6 +4490,7 @@ begin
|
|||||||
FreeAndNil(FComponentEditor);
|
FreeAndNil(FComponentEditor);
|
||||||
FreeAndNil(PropFilterLabel);
|
FreeAndNil(PropFilterLabel);
|
||||||
FreeAndNil(PropFilterEdit);
|
FreeAndNil(PropFilterEdit);
|
||||||
|
FreeAndNil(PropFilterPanel);
|
||||||
FreeAndNil(PropertyPanel);
|
FreeAndNil(PropertyPanel);
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
FreeAndNil(FFavorites);
|
FreeAndNil(FFavorites);
|
||||||
@ -4473,11 +4504,6 @@ begin
|
|||||||
FPropFilterUpdating := False;
|
FPropFilterUpdating := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TObjectInspectorDlg.PropFilterEditResize(Sender: TObject);
|
|
||||||
begin
|
|
||||||
NoteBook.BorderSpacing.Top := PropFilterEdit.BoundsRect.Bottom + 2;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TObjectInspectorDlg.NoteBookPageChange(Sender: TObject);
|
procedure TObjectInspectorDlg.NoteBookPageChange(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
PropFilterEditAfterFilter(Sender);
|
PropFilterEditAfterFilter(Sender);
|
||||||
@ -5258,6 +5284,14 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TObjectInspectorDlg.SetShowPropertyFilter(const AValue: Boolean);
|
||||||
|
begin
|
||||||
|
if FShowPropertyFilter = AValue then exit;
|
||||||
|
FShowPropertyFilter := AValue;
|
||||||
|
PropFilterPanel.Visible := AValue;
|
||||||
|
ShowPropertyFilterPopupMenuItem.Checked := AValue;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TObjectInspectorDlg.SetShowInfoBox(const AValue: Boolean);
|
procedure TObjectInspectorDlg.SetShowInfoBox(const AValue: Boolean);
|
||||||
begin
|
begin
|
||||||
if FShowInfoBox = AValue then exit;
|
if FShowInfoBox = AValue then exit;
|
||||||
@ -5513,10 +5547,10 @@ begin
|
|||||||
begin
|
begin
|
||||||
Name := 'NoteBook';
|
Name := 'NoteBook';
|
||||||
Parent := PropertyPanel;
|
Parent := PropertyPanel;
|
||||||
PropFilterEditResize(nil);
|
|
||||||
Align := alClient;
|
Align := alClient;
|
||||||
PopupMenu := MainPopupMenu;
|
PopupMenu := MainPopupMenu;
|
||||||
OnChange := @NoteBookPageChange;
|
OnChange := @NoteBookPageChange;
|
||||||
|
BorderSpacing.Top := 2;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
AddPage(DefaultOIPageNames[oipgpProperties],oisProperties);
|
AddPage(DefaultOIPageNames[oipgpProperties],oisProperties);
|
||||||
@ -5653,6 +5687,11 @@ begin
|
|||||||
ShowComponentTree:=not ShowComponentTree;
|
ShowComponentTree:=not ShowComponentTree;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TObjectInspectorDlg.ShowPropertyFilterPopupMenuItemClick(Sender: TObject);
|
||||||
|
begin
|
||||||
|
ShowPropertyFilter := not ShowPropertyFilter;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TObjectInspectorDlg.ShowHintPopupMenuItemClick(Sender : TObject);
|
procedure TObjectInspectorDlg.ShowHintPopupMenuItemClick(Sender : TObject);
|
||||||
var
|
var
|
||||||
Page: TObjectInspectorPage;
|
Page: TObjectInspectorPage;
|
||||||
|
@ -58,6 +58,7 @@ resourcestring
|
|||||||
oisShowHints = 'Show Hints';
|
oisShowHints = 'Show Hints';
|
||||||
oisShowInfoBox = 'Show Information Box';
|
oisShowInfoBox = 'Show Information Box';
|
||||||
oisShowStatusBar = 'Show Status Bar';
|
oisShowStatusBar = 'Show Status Bar';
|
||||||
|
oisShowPropertyFilter = 'Show Property Filter';
|
||||||
oisOptions = 'Options';
|
oisOptions = 'Options';
|
||||||
|
|
||||||
// typeinfo, PropEdits
|
// typeinfo, PropEdits
|
||||||
|
@ -216,6 +216,21 @@ object OIOptionsFrame: TOIOptionsFrame
|
|||||||
ShowHint = True
|
ShowHint = True
|
||||||
TabOrder = 8
|
TabOrder = 8
|
||||||
end
|
end
|
||||||
|
object OIShowPropertyFilterCheckBox: TCheckBox
|
||||||
|
AnchorSideLeft.Control = OIOptsCenterLabel
|
||||||
|
AnchorSideTop.Control = OIDrawGridLinesCheckBox
|
||||||
|
AnchorSideTop.Side = asrBottom
|
||||||
|
Left = 335
|
||||||
|
Height = 22
|
||||||
|
Top = 118
|
||||||
|
Width = 207
|
||||||
|
BorderSpacing.Top = 6
|
||||||
|
BorderSpacing.Bottom = 6
|
||||||
|
Caption = 'OIShowPropertyFilterCheckBox'
|
||||||
|
ParentShowHint = False
|
||||||
|
ShowHint = True
|
||||||
|
TabOrder = 9
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object ObjectInspectorSpeedSettingsGroupBox: TGroupBox
|
object ObjectInspectorSpeedSettingsGroupBox: TGroupBox
|
||||||
AnchorSideLeft.Control = ObjectInspectorColorsGroupBox
|
AnchorSideLeft.Control = ObjectInspectorColorsGroupBox
|
||||||
|
@ -61,7 +61,8 @@ type
|
|||||||
ooDrawGridLines,
|
ooDrawGridLines,
|
||||||
ooShowGutter,
|
ooShowGutter,
|
||||||
ooShowStatusBar,
|
ooShowStatusBar,
|
||||||
ooShowInfoBox
|
ooShowInfoBox,
|
||||||
|
ooShowPropertyFilter
|
||||||
);
|
);
|
||||||
|
|
||||||
TSpeedOISettings = record
|
TSpeedOISettings = record
|
||||||
@ -93,6 +94,7 @@ type
|
|||||||
OIShowStatusBarCheckBox: TCheckBox;
|
OIShowStatusBarCheckBox: TCheckBox;
|
||||||
OICheckboxForBooleanCheckBox: TCheckBox;
|
OICheckboxForBooleanCheckBox: TCheckBox;
|
||||||
OIShowInfoBoxCheckBox: TCheckBox;
|
OIShowInfoBoxCheckBox: TCheckBox;
|
||||||
|
OIShowPropertyFilterCheckBox: TCheckBox;
|
||||||
procedure BtnUseDefaultDelphiSettingsClick(Sender: TObject);
|
procedure BtnUseDefaultDelphiSettingsClick(Sender: TObject);
|
||||||
procedure BtnUseDefaultLazarusSettingsClick(Sender: TObject);
|
procedure BtnUseDefaultLazarusSettingsClick(Sender: TObject);
|
||||||
procedure ColorBoxChange(Sender: TObject);
|
procedure ColorBoxChange(Sender: TObject);
|
||||||
@ -140,7 +142,8 @@ const
|
|||||||
{ ooDrawGridLines } True,
|
{ ooDrawGridLines } True,
|
||||||
{ ooShowGutter } True,
|
{ ooShowGutter } True,
|
||||||
{ ooShowStatusBar } True,
|
{ ooShowStatusBar } True,
|
||||||
{ ooShowInfoBox } True
|
{ ooShowInfoBox } True,
|
||||||
|
{ ooShowPropertyFilter } True
|
||||||
);
|
);
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -169,7 +172,8 @@ const
|
|||||||
{ ooDrawGridLines } False,
|
{ ooDrawGridLines } False,
|
||||||
{ ooShowGutter } True,
|
{ ooShowGutter } True,
|
||||||
{ ooShowStatusBar } True,
|
{ ooShowStatusBar } True,
|
||||||
{ ooShowInfoBox } False
|
{ ooShowInfoBox } False,
|
||||||
|
{ ooShowPropertyFilter } True
|
||||||
);
|
);
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -198,6 +202,7 @@ begin
|
|||||||
OIShowStatusBarCheckBox.Hint := lisStatusBarShowsPropertysNameAndClass;
|
OIShowStatusBarCheckBox.Hint := lisStatusBarShowsPropertysNameAndClass;
|
||||||
OIShowHintCheckBox.Caption := lisShowHintsInObjectInspector;
|
OIShowHintCheckBox.Caption := lisShowHintsInObjectInspector;
|
||||||
OIShowHintCheckBox.Hint := lisHintAtPropertysNameShowsDescription;
|
OIShowHintCheckBox.Hint := lisHintAtPropertysNameShowsDescription;
|
||||||
|
OIShowPropertyFilterCheckBox.Caption := lisShowPropertyFilterInObjectInspector;
|
||||||
|
|
||||||
OICheckboxForBooleanCheckBox.Caption := lisUseCheckBoxForBooleanValues;
|
OICheckboxForBooleanCheckBox.Caption := lisUseCheckBoxForBooleanValues;
|
||||||
OICheckboxForBooleanCheckBox.Hint := lisDefaultIsComboboxWithTrueAndFalse;
|
OICheckboxForBooleanCheckBox.Hint := lisDefaultIsComboboxWithTrueAndFalse;
|
||||||
@ -248,6 +253,7 @@ begin
|
|||||||
OIShowGutterCheckBox.Checked := ASettings.Options[ooShowGutter];
|
OIShowGutterCheckBox.Checked := ASettings.Options[ooShowGutter];
|
||||||
OIShowStatusBarCheckBox.Checked := ASettings.Options[ooShowStatusBar];
|
OIShowStatusBarCheckBox.Checked := ASettings.Options[ooShowStatusBar];
|
||||||
OIShowInfoBoxCheckBox.Checked := ASettings.Options[ooShowInfoBox];
|
OIShowInfoBoxCheckBox.Checked := ASettings.Options[ooShowInfoBox];
|
||||||
|
OIShowPropertyFilterCheckBox.Checked := ASettings.Options[ooShowPropertyFilter];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TOIOptionsFrame.ColorBoxChange(Sender: TObject);
|
procedure TOIOptionsFrame.ColorBoxChange(Sender: TObject);
|
||||||
@ -309,6 +315,7 @@ begin
|
|||||||
ASettings.Options[ooShowGutter] := o.ShowGutter;
|
ASettings.Options[ooShowGutter] := o.ShowGutter;
|
||||||
ASettings.Options[ooShowStatusBar] := o.ShowStatusBar;
|
ASettings.Options[ooShowStatusBar] := o.ShowStatusBar;
|
||||||
ASettings.Options[ooShowInfoBox] := o.ShowInfoBox;
|
ASettings.Options[ooShowInfoBox] := o.ShowInfoBox;
|
||||||
|
ASettings.Options[ooShowPropertyFilter] := o.ShowPropertyFilter;
|
||||||
ApplyOISettings(ASettings);
|
ApplyOISettings(ASettings);
|
||||||
OIDefaultItemHeightSpinEdit.Value := o.DefaultItemHeight;
|
OIDefaultItemHeightSpinEdit.Value := o.DefaultItemHeight;
|
||||||
FLoaded := True;
|
FLoaded := True;
|
||||||
@ -341,6 +348,7 @@ begin
|
|||||||
o.ShowGutter := OIShowGutterCheckBox.Checked;
|
o.ShowGutter := OIShowGutterCheckBox.Checked;
|
||||||
o.ShowStatusBar := OIShowStatusBarCheckBox.Checked;
|
o.ShowStatusBar := OIShowStatusBarCheckBox.Checked;
|
||||||
o.ShowInfoBox := OIShowInfoBoxCheckBox.Checked;
|
o.ShowInfoBox := OIShowInfoBoxCheckBox.Checked;
|
||||||
|
o.ShowPropertyFilter := OIShowPropertyFilterCheckBox.Checked;
|
||||||
o.DefaultItemHeight := RoundToInt(OIDefaultItemHeightSpinEdit.Value);
|
o.DefaultItemHeight := RoundToInt(OIDefaultItemHeightSpinEdit.Value);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -1558,6 +1558,7 @@ resourcestring
|
|||||||
lisShowInfoBoxInObjectInspector = 'Show information box';
|
lisShowInfoBoxInObjectInspector = 'Show information box';
|
||||||
lisShowsDescriptionForSelectedProperty = 'A box at the bottom shows '
|
lisShowsDescriptionForSelectedProperty = 'A box at the bottom shows '
|
||||||
+'description for the selected property.';
|
+'description for the selected property.';
|
||||||
|
lisShowPropertyFilterInObjectInspector = 'Show property filter';
|
||||||
dlgEnvBackupHelpNote = 'Notes: Project files are all files in the project directory';
|
dlgEnvBackupHelpNote = 'Notes: Project files are all files in the project directory';
|
||||||
lisEnvOptDlgInvalidDebuggerFilename = 'Invalid debugger filename';
|
lisEnvOptDlgInvalidDebuggerFilename = 'Invalid debugger filename';
|
||||||
lisEnvOptDlgInvalidDebuggerFilenameMsg = 'The debugger file "%s" is not an executable.';
|
lisEnvOptDlgInvalidDebuggerFilenameMsg = 'The debugger file "%s" is not an executable.';
|
||||||
|
Loading…
Reference in New Issue
Block a user