IDE: remove DoAutoAdjustLayout from r56956 #b6077f9686, issue #32924

git-svn-id: trunk@56959 -
This commit is contained in:
ondrej 2018-01-05 03:36:46 +00:00
parent 5a62be57d3
commit e384a1c48a
3 changed files with 0 additions and 39 deletions

View File

@ -58,8 +58,6 @@ type
procedure DoImport(Sender: TObject);
procedure DoExport(Sender: TObject);
protected
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
const AXProportion, {%H-}AYProportion: Double); override;
procedure DoSaveSettings(AOptions: TAbstractIDEOptions);
procedure UpdateTargetFileLabel;
public
@ -327,18 +325,6 @@ begin
OnSaveIDEOptions(Self, FCompilerOpts);
end;
procedure TCompilerPathOptionsFrame.DoAutoAdjustLayout(
const AMode: TLayoutAdjustmentPolicy; const AXProportion, AYProportion: Double);
begin
if AMode = lapAutoAdjustForDPI then begin
OtherUnitsPathEditBtn.Width := round(OtherUnitsPathEditBtn.Height * AXProportion);
IncludeFilesPathEditBtn.Width := round(IncludeFilesPathEditBtn.Height * AXProportion);
OtherSourcesPathEditBtn.Width := round(OtherSourcesPathEditBtn.Height * AXProportion);
LibrariesPathEditBtn.Width := round(LibrariesPathEditBtn.Height * AXProportion);
DebugPathEditBtn.Width := round(DebugPathEditBtn.Height * AXProportion);
end;
end;
procedure TCompilerPathOptionsFrame.DoSaveSettings(AOptions: TAbstractIDEOptions);
begin
if Assigned(OnSaveIDEOptions) then

View File

@ -35,9 +35,6 @@ type
procedure SetSelectedPkgType(PkgType: TLazPackageType);
function ShowMsgPackageTypeMustBeDesign: boolean;
function GetFPDocPkgNameEditValue: string;
protected
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
const AXProportion, AYProportion: Double); override;
public
function Check: Boolean; override;
function GetTitle: string; override;
@ -137,14 +134,6 @@ begin
Result := lisPckOptsIDEIntegration;
end;
procedure TPackageIntegrationOptionsFrame.DoAutoAdjustLayout(
const AMode: TLayoutAdjustmentPolicy; const AXProportion, AYProportion: Double);
begin
if AMode = lapAutoAdjustForDPI then begin
FPDocPathButton.Width := round(FPDocPathButton.Height * AXProportion);
end;
end;
procedure TPackageIntegrationOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog);
begin
PkgTypeGroupBox.Caption := lisPckOptsPackageType;

View File

@ -37,9 +37,6 @@ type
LibraryPathButton: TPathEditorButton;
FLazPackage: TLazPackage;
function PathEditBtnExecuted({%H-}Context: String; var NewPath: String): Boolean;
protected
procedure DoAutoAdjustLayout(const AMode: TLayoutAdjustmentPolicy;
const AXProportion, AYProportion: Double); override;
public
function GetTitle: string; override;
procedure Setup({%H-}ADialog: TAbstractOptionsEditorDialog); override;
@ -95,17 +92,6 @@ begin
Result := lisPckOptsUsage;
end;
procedure TPackageUsageOptionsFrame.DoAutoAdjustLayout(
const AMode: TLayoutAdjustmentPolicy; const AXProportion, AYProportion: Double);
begin
if AMode = lapAutoAdjustForDPI then begin
UnitPathButton.Width := round(UnitPathButton.Height * AXProportion);
IncludePathButton.Width := round(IncludePathButton.Height * AXProportion);
ObjectPathButton.Width := round(ObjectPathButton.Height * AXProportion);
LibraryPathButton.Width := round(LibraryPathButton.Height * AXProportion);
end;
end;
procedure TPackageUsageOptionsFrame.Setup(ADialog: TAbstractOptionsEditorDialog);
begin
AddPathsGroupBox.Caption := lisPckOptsAddPathsToDependentPackagesProjects;