mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:29:28 +02:00
IDE: need build info: escape key
git-svn-id: trunk@36656 -
This commit is contained in:
parent
4e8e6440dc
commit
8dfdbe1013
@ -9,6 +9,7 @@ object IDEInfoNeedBuildDlg: TIDEInfoNeedBuildDlg
|
|||||||
OnClose = FormClose
|
OnClose = FormClose
|
||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnDestroy = FormDestroy
|
OnDestroy = FormDestroy
|
||||||
|
OnKeyDown = FormKeyDown
|
||||||
Position = poScreenCenter
|
Position = poScreenCenter
|
||||||
LCLVersion = '1.1'
|
LCLVersion = '1.1'
|
||||||
object TargetLabel: TLabel
|
object TargetLabel: TLabel
|
||||||
@ -44,7 +45,7 @@ object IDEInfoNeedBuildDlg: TIDEInfoNeedBuildDlg
|
|||||||
AnchorSideTop.Control = TargetComboBox
|
AnchorSideTop.Control = TargetComboBox
|
||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 389
|
Height = 341
|
||||||
Top = 39
|
Top = 39
|
||||||
Width = 543
|
Width = 543
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
@ -57,4 +58,20 @@ object IDEInfoNeedBuildDlg: TIDEInfoNeedBuildDlg
|
|||||||
ScrollBars = ssAutoBoth
|
ScrollBars = ssAutoBoth
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
end
|
end
|
||||||
|
object ButtonPanel1: TButtonPanel
|
||||||
|
Left = 6
|
||||||
|
Height = 42
|
||||||
|
Top = 386
|
||||||
|
Width = 543
|
||||||
|
OKButton.Name = 'OKButton'
|
||||||
|
OKButton.DefaultCaption = True
|
||||||
|
HelpButton.Name = 'HelpButton'
|
||||||
|
HelpButton.DefaultCaption = True
|
||||||
|
CloseButton.Name = 'CloseButton'
|
||||||
|
CloseButton.DefaultCaption = True
|
||||||
|
CancelButton.Name = 'CancelButton'
|
||||||
|
CancelButton.DefaultCaption = True
|
||||||
|
TabOrder = 2
|
||||||
|
ShowButtons = [pbClose]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@ -31,7 +31,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, AvgLvlTree, FileProcs, Forms, Controls, Graphics,
|
Classes, SysUtils, FileUtil, AvgLvlTree, FileProcs, Forms, Controls, Graphics,
|
||||||
Dialogs, StdCtrls,
|
Dialogs, StdCtrls, Buttons, ButtonPanel, LCLType,
|
||||||
IDEWindowIntf, LazIDEIntf, ProjectIntf,
|
IDEWindowIntf, LazIDEIntf, ProjectIntf,
|
||||||
LazarusIDEStrConsts, PackageDefs, PackageSystem, Project, InputHistory,
|
LazarusIDEStrConsts, PackageDefs, PackageSystem, Project, InputHistory,
|
||||||
EnvironmentOpts, IDEProcs, BuildManager;
|
EnvironmentOpts, IDEProcs, BuildManager;
|
||||||
@ -56,12 +56,14 @@ type
|
|||||||
{ TIDEInfoNeedBuildDlg }
|
{ TIDEInfoNeedBuildDlg }
|
||||||
|
|
||||||
TIDEInfoNeedBuildDlg = class(TForm)
|
TIDEInfoNeedBuildDlg = class(TForm)
|
||||||
|
ButtonPanel1: TButtonPanel;
|
||||||
MainMemo: TMemo;
|
MainMemo: TMemo;
|
||||||
TargetComboBox: TComboBox;
|
TargetComboBox: TComboBox;
|
||||||
TargetLabel: TLabel;
|
TargetLabel: TLabel;
|
||||||
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
procedure FormDestroy(Sender: TObject);
|
procedure FormDestroy(Sender: TObject);
|
||||||
|
procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
|
||||||
procedure OnIdle(Sender: TObject; var Done: Boolean);
|
procedure OnIdle(Sender: TObject; var Done: Boolean);
|
||||||
procedure TargetComboBoxChange(Sender: TObject);
|
procedure TargetComboBoxChange(Sender: TObject);
|
||||||
private
|
private
|
||||||
@ -154,6 +156,13 @@ begin
|
|||||||
MainTarget:=nil;
|
MainTarget:=nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TIDEInfoNeedBuildDlg.FormKeyDown(Sender: TObject; var Key: Word;
|
||||||
|
Shift: TShiftState);
|
||||||
|
begin
|
||||||
|
if Key=VK_ESCAPE then
|
||||||
|
ModalResult:=mrCancel;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TIDEInfoNeedBuildDlg.OnIdle(Sender: TObject; var Done: Boolean);
|
procedure TIDEInfoNeedBuildDlg.OnIdle(Sender: TObject; var Done: Boolean);
|
||||||
begin
|
begin
|
||||||
if CheckNeedBuild(false) then
|
if CheckNeedBuild(false) then
|
||||||
|
@ -3623,6 +3623,8 @@ begin
|
|||||||
s:=s+' -Fi'+SwitchPathDelims(IncPath,pdsUnix);
|
s:=s+' -Fi'+SwitchPathDelims(IncPath,pdsUnix);
|
||||||
if CustomOptions<>'' then
|
if CustomOptions<>'' then
|
||||||
s:=s+' '+CustomOptions;
|
s:=s+' '+CustomOptions;
|
||||||
|
// do no write the unit output directory
|
||||||
|
// it is not needed because it is the location of the Makefile.compiled
|
||||||
s:=s+' '+SwitchPathDelims(CreateRelativePath(APackage.GetSrcFilename,APackage.Directory),pdsUnix);
|
s:=s+' '+SwitchPathDelims(CreateRelativePath(APackage.GetSrcFilename,APackage.Directory),pdsUnix);
|
||||||
|
|
||||||
//debugln(['TLazPackageGraph.WriteMakeFile IncPath="',IncPath,'" UnitPath="',UnitPath,'" Custom="',CustomOptions,'" Out="',UnitOutputPath,'"']);
|
//debugln(['TLazPackageGraph.WriteMakeFile IncPath="',IncPath,'" UnitPath="',UnitPath,'" Custom="',CustomOptions,'" Out="',UnitOutputPath,'"']);
|
||||||
|
Loading…
Reference in New Issue
Block a user