mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 14:40:25 +02:00
IDEIntf: TIDEDockMaster can now show the simple layout options
git-svn-id: trunk@31122 -
This commit is contained in:
parent
a452810bf5
commit
bca9900c3f
@ -215,6 +215,7 @@ begin
|
|||||||
IDEAnchorDockMaster:=Self;
|
IDEAnchorDockMaster:=Self;
|
||||||
DockMaster.OnCreateControl:=@DockMasterCreateControl;
|
DockMaster.OnCreateControl:=@DockMasterCreateControl;
|
||||||
DockMaster.OnShowOptions:=@ShowAnchorDockOptions;
|
DockMaster.OnShowOptions:=@ShowAnchorDockOptions;
|
||||||
|
FHideSimpleLayoutOptions:=true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TIDEAnchorDockMaster.Destroy;
|
destructor TIDEAnchorDockMaster.Destroy;
|
||||||
|
@ -65,6 +65,7 @@ type
|
|||||||
private
|
private
|
||||||
FLayouts: TSimpleWindowLayoutList;
|
FLayouts: TSimpleWindowLayoutList;
|
||||||
FLayout: TSimpleWindowLayout;
|
FLayout: TSimpleWindowLayout;
|
||||||
|
FShowSimpleLayout: boolean;
|
||||||
function GetPlacementRadioButtons(APlacement: TIDEWindowPlacement): TRadioButton;
|
function GetPlacementRadioButtons(APlacement: TIDEWindowPlacement): TRadioButton;
|
||||||
procedure SetLayout(const AValue: TSimpleWindowLayout);
|
procedure SetLayout(const AValue: TSimpleWindowLayout);
|
||||||
procedure SetWindowPositionsItem(Index: integer);
|
procedure SetWindowPositionsItem(Index: integer);
|
||||||
@ -122,12 +123,11 @@ begin
|
|||||||
HideMessagesIconsCheckBox.Checked := HideMessagesIcons;
|
HideMessagesIconsCheckBox.Checked := HideMessagesIcons;
|
||||||
TitleStartsWithProjectCheckBox.Checked:=IDETitleStartsWithProject;
|
TitleStartsWithProjectCheckBox.Checked:=IDETitleStartsWithProject;
|
||||||
ProjectDirInIdeTitleCheckBox.Checked:=IDEProjectDirectoryInIdeTitle;
|
ProjectDirInIdeTitleCheckBox.Checked:=IDEProjectDirectoryInIdeTitle;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
FLayouts.Assign(IDEWindowCreators.SimpleLayoutStorage);
|
FLayouts.Assign(IDEWindowCreators.SimpleLayoutStorage);
|
||||||
|
|
||||||
if IDEDockMaster=nil then begin
|
if FShowSimpleLayout then begin
|
||||||
// Window Positions
|
// Window Positions
|
||||||
FLayouts.Assign(IDEWindowCreators.SimpleLayoutStorage);
|
FLayouts.Assign(IDEWindowCreators.SimpleLayoutStorage);
|
||||||
WindowPositionsGroupBox.Parent:=Self;
|
WindowPositionsGroupBox.Parent:=Self;
|
||||||
@ -380,6 +380,7 @@ constructor TWindowOptionsFrame.Create(TheOwner: TComponent);
|
|||||||
begin
|
begin
|
||||||
inherited Create(TheOwner);
|
inherited Create(TheOwner);
|
||||||
FLayouts:=TSimpleWindowLayoutList.Create;
|
FLayouts:=TSimpleWindowLayoutList.Create;
|
||||||
|
FShowSimpleLayout:=(IDEDockMaster=nil) or (not IDEDockMaster.HideSimpleLayoutOptions);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TWindowOptionsFrame.Destroy;
|
destructor TWindowOptionsFrame.Destroy;
|
||||||
|
@ -293,7 +293,6 @@ type
|
|||||||
TIDEWindowCreatorList = class
|
TIDEWindowCreatorList = class
|
||||||
private
|
private
|
||||||
fItems: TFPList; // list of TIDEWindowCreator
|
fItems: TFPList; // list of TIDEWindowCreator
|
||||||
FOnShowForm: TShowIDEWindowEvent;
|
|
||||||
FSimpleLayoutStorage: TSimpleWindowLayoutList;
|
FSimpleLayoutStorage: TSimpleWindowLayoutList;
|
||||||
function GetItems(Index: integer): TIDEWindowCreator;
|
function GetItems(Index: integer): TIDEWindowCreator;
|
||||||
procedure ErrorIfFormExists(FormName: string);
|
procedure ErrorIfFormExists(FormName: string);
|
||||||
@ -340,12 +339,15 @@ type
|
|||||||
{ TIDEDockMaster }
|
{ TIDEDockMaster }
|
||||||
|
|
||||||
TIDEDockMaster = class
|
TIDEDockMaster = class
|
||||||
|
protected
|
||||||
|
FHideSimpleLayoutOptions: boolean;
|
||||||
public
|
public
|
||||||
procedure MakeIDEWindowDockable(AControl: TWinControl); virtual; abstract; // make AControl dockable, it can be docked and other dockable windows can be docked to it, this does not make it visible
|
procedure MakeIDEWindowDockable(AControl: TWinControl); virtual; abstract; // make AControl dockable, it can be docked and other dockable windows can be docked to it, this does not make it visible
|
||||||
procedure MakeIDEWindowDockSite(AForm: TCustomForm; ASides: TDockSides = [alBottom]); virtual; abstract; // make AForm a dock site, AForm can not be docked, its Parent must be kept nil, this does not make it visible
|
procedure MakeIDEWindowDockSite(AForm: TCustomForm; ASides: TDockSides = [alBottom]); virtual; abstract; // make AForm a dock site, AForm can not be docked, its Parent must be kept nil, this does not make it visible
|
||||||
procedure ShowForm(AForm: TCustomForm; BringToFront: boolean); virtual; abstract; // make a form visible, set BringToFront=true if form should be shown on active screen and on front of other windows, normally this focus the form
|
procedure ShowForm(AForm: TCustomForm; BringToFront: boolean); virtual; abstract; // make a form visible, set BringToFront=true if form should be shown on active screen and on front of other windows, normally this focus the form
|
||||||
function AddableInWindowMenu(AForm: TCustomForm): boolean; virtual;
|
function AddableInWindowMenu(AForm: TCustomForm): boolean; virtual;
|
||||||
procedure CloseAll; virtual; // close all forms, called after IDE has saved all and shuts down
|
procedure CloseAll; virtual; // close all forms, called after IDE has saved all and shuts down
|
||||||
|
property HideSimpleLayoutOptions: boolean read FHideSimpleLayoutOptions;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user