mirror of https://gitlab.com/basile.b/dexed.git
compilers paths, pops dialog on the current dirs
This commit is contained in:
parent
72d0f95851
commit
5610d15158
|
@ -43,6 +43,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selDMDrt: TDirectoryEdit
|
object selDMDrt: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -58,6 +59,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selDMDstd: TDirectoryEdit
|
object selDMDstd: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -73,6 +75,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object StaticText1: TStaticText
|
object StaticText1: TStaticText
|
||||||
Left = 0
|
Left = 0
|
||||||
|
@ -130,6 +133,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selGDCrt: TDirectoryEdit
|
object selGDCrt: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -145,6 +149,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selGDCstd: TDirectoryEdit
|
object selGDCstd: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -160,6 +165,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object StaticText4: TStaticText
|
object StaticText4: TStaticText
|
||||||
Left = 0
|
Left = 0
|
||||||
|
@ -217,6 +223,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selLDCrt: TDirectoryEdit
|
object selLDCrt: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -232,6 +239,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selLDCstd: TDirectoryEdit
|
object selLDCstd: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -247,6 +255,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object StaticText7: TStaticText
|
object StaticText7: TStaticText
|
||||||
Left = 0
|
Left = 0
|
||||||
|
@ -303,6 +312,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selUSER1rt: TDirectoryEdit
|
object selUSER1rt: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -317,6 +327,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selUSER1std: TDirectoryEdit
|
object selUSER1std: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -331,6 +342,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object StaticText10: TStaticText
|
object StaticText10: TStaticText
|
||||||
Left = 0
|
Left = 0
|
||||||
|
@ -387,6 +399,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selUSER2rt: TDirectoryEdit
|
object selUSER2rt: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -401,6 +414,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object selUSER2std: TDirectoryEdit
|
object selUSER2std: TDirectoryEdit
|
||||||
Left = 2
|
Left = 2
|
||||||
|
@ -415,6 +429,7 @@ object Form1: TForm1
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
MaxLength = 0
|
MaxLength = 0
|
||||||
TabOrder = 2
|
TabOrder = 2
|
||||||
|
OnButtonClick = dialogOpen
|
||||||
end
|
end
|
||||||
object StaticText13: TStaticText
|
object StaticText13: TStaticText
|
||||||
Left = 0
|
Left = 0
|
||||||
|
|
|
@ -114,6 +114,7 @@ type
|
||||||
StaticText7: TStaticText;
|
StaticText7: TStaticText;
|
||||||
StaticText8: TStaticText;
|
StaticText8: TStaticText;
|
||||||
StaticText9: TStaticText;
|
StaticText9: TStaticText;
|
||||||
|
procedure dialogOpen(sender: TObject);
|
||||||
strict private
|
strict private
|
||||||
fPaths: TCompilersPaths;
|
fPaths: TCompilersPaths;
|
||||||
fPathsBackup: TCompilersPaths;
|
fPathsBackup: TCompilersPaths;
|
||||||
|
@ -150,7 +151,7 @@ var
|
||||||
const
|
const
|
||||||
optFname = 'compilerspaths.txt';
|
optFname = 'compilerspaths.txt';
|
||||||
|
|
||||||
{$REGION Standard Object/COmponents things -------------------------------------}
|
{$REGION Standard Object/Components things -------------------------------------}
|
||||||
constructor TForm1.create(aOwner: TComponent);
|
constructor TForm1.create(aOwner: TComponent);
|
||||||
var
|
var
|
||||||
fname: string;
|
fname: string;
|
||||||
|
@ -523,6 +524,26 @@ begin
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TForm1.dialogOpen(sender: TObject);
|
||||||
|
var
|
||||||
|
fne: TFileNameEdit;
|
||||||
|
dre: TDirectoryEdit;
|
||||||
|
begin
|
||||||
|
if sender is TFileNameEdit then
|
||||||
|
begin
|
||||||
|
fne := TFileNameEdit(sender);
|
||||||
|
fne.InitialDir:=fne.FileName.extractFileDir;
|
||||||
|
fne.DialogTitle:='Select a D compiler';
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
dre := TDirectoryEdit(sender);
|
||||||
|
dre.RootDir:=dre.Directory;
|
||||||
|
dre.ShowHidden:=true;
|
||||||
|
dre.DialogTitle:='Select a library path';
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TForm1.selectedExe(sender: TObject; var value: string);
|
procedure TForm1.selectedExe(sender: TObject; var value: string);
|
||||||
var
|
var
|
||||||
ctrl: TWinControl;
|
ctrl: TWinControl;
|
||||||
|
|
Loading…
Reference in New Issue