Skip to content

Commit

Permalink
Some more features and bug-fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
LongDirtyAnimAlf committed Nov 23, 2016
1 parent 373d5b4 commit 9e0ec28
Show file tree
Hide file tree
Showing 14 changed files with 395 additions and 367 deletions.
Binary file added chimp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
283 changes: 173 additions & 110 deletions extrasettings.lfm

Large diffs are not rendered by default.

52 changes: 11 additions & 41 deletions extrasettings.pas
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,16 @@ TCrossUtil = record
TForm2 = class(TForm)
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
btnCygwin: TButton;
btnSelectLibDir: TButton;
btnSelectBinDir: TButton;
btnOSXCross: TButton;
CheckIncludeFPCIDE1: TCheckBox;
CheckIncludeFPCIDE: TCheckBox;
CheckIncludeHelp: TCheckBox;
CheckIncludeLCL: TCheckBox;
CheckUpdateOnly: TCheckBox;
CheckRepo: TCheckBox;
CheckPackageRepo: TCheckBox;
ComboBoxOS: TComboBox;
ComboBoxCPU: TComboBox;
EditOSXCrossLocation: TEdit;
EditCygwinLocation: TEdit;
EditFPCbranch: TEdit;
EditFPCrevision: TEdit;
EditLazarusbranch: TEdit;
Expand All @@ -57,7 +54,6 @@ TForm2 = class(TForm)
EditHTTPProxyPort: TEdit;
EditHTTPProxyUser: TEdit;
EditHTTPProxyPassword: TEdit;
GroupBox5: TGroupBox;
GroupBoxFPCLazBranchRevision: TGroupBox;
Label1: TLabel;
Label2: TLabel;
Expand All @@ -71,7 +67,6 @@ TForm2 = class(TForm)
RadioGroupNPLazarusbranch: TRadioGroup;
RadioGroup3: TRadioGroup;
SelectDirectoryDialog1: TSelectDirectoryDialog;
procedure OSXCrossSelect(Sender: TObject);
procedure ComboBoxCPUOSChange(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure FormDestroy(Sender: TObject);
Expand All @@ -83,12 +78,11 @@ TForm2 = class(TForm)
function GetPackageRepo:boolean;
function GetUpdateOnly:boolean;
function GetIncludeLCL:boolean;
function GetIncludeHelp:boolean;
function GetHTTPProxyHost:string;
function GetHTTPProxyPort:integer;
function GetHTTPProxyUser:string;
function GetHTTPProxyPass:string;
function GetCygwinLocation:string;
function GetOSXCrossLocation:string;
public
function GetLibraryDirectory(aCPU,aOS:string):string;
function GetToolsDirectory(aCPU,aOS:string):string;
Expand All @@ -99,15 +93,12 @@ TForm2 = class(TForm)
property UpdateOnly:boolean read GetUpdateOnly;

property IncludeLCL:boolean read GetIncludeLCL;
property IncludeHelp:boolean read GetIncludeHelp;

property HTTPProxyHost:string read GetHTTPProxyHost;
property HTTPProxyPort:integer read GetHTTPProxyPort;
property HTTPProxyUser:string read GetHTTPProxyUser;
property HTTPProxyPass:string read GetHTTPProxyPass;

property CygwinLocation:string read GetCygwinLocation;
property OSXCrossLocation:string read GetOSXCrossLocation;

end;

var
Expand Down Expand Up @@ -166,6 +157,7 @@ procedure TForm2.FormCreate(Sender: TObject);
try
CheckRepo.Checked:=ReadBool('General','GetRepo',True);
CheckPackageRepo.Checked:=ReadBool('General','GetPackageRepo',False);
CheckIncludeHelp.Checked:=ReadBool('General','IncludeHelp',True);

CheckIncludeLCL.Checked:=ReadBool('Cross','IncludeLCL',False);

Expand All @@ -174,9 +166,6 @@ procedure TForm2.FormCreate(Sender: TObject);
EditHTTPProxyUser.Text:=ReadString('ProxySettings','HTTPProxyUser','');
EditHTTPProxyPassword.Text:=ReadString('ProxySettings','HTTPProxyPass','');

EditOSXCrossLocation.Text:=ReadString('OSXCross','OSXCrossLocation','');
EditCygwinLocation.Text:=ReadString('OSXCross','CygwinLocation','');

for OS := Low(TOS) to High(TOS) do
begin
for CPU := Low(TCPU) to High(TCPU) do
Expand Down Expand Up @@ -209,17 +198,6 @@ procedure TForm2.ComboBoxCPUOSChange(Sender: TObject);
end;
end;

procedure TForm2.OSXCrossSelect(Sender: TObject);
begin
if Sender=btnOSXCross then SelectDirectoryDialog1.InitialDir:=EditOSXCrossLocation.Text;
if Sender=btnCygwin then SelectDirectoryDialog1.InitialDir:=EditCygwinLocation.Text;
if SelectDirectoryDialog1.Execute then
begin
if Sender=btnOSXCross then EditOSXCrossLocation.Text:=SelectDirectoryDialog1.FileName;
if Sender=btnCygwin then EditCygwinLocation.Text:=SelectDirectoryDialog1.FileName;
end;
end;

procedure TForm2.FormDestroy(Sender: TObject);
var
CPU:TCPU;
Expand All @@ -230,6 +208,7 @@ procedure TForm2.FormDestroy(Sender: TObject);
try
WriteBool('General','GetRepo',CheckRepo.Checked);
WriteBool('General','GetPackageRepo',CheckPackageRepo.Checked);
WriteBool('General','IncludeHelp',CheckIncludeHelp.Checked);

WriteBool('Cross','IncludeLCL',CheckIncludeLCL.Checked);

Expand All @@ -238,9 +217,6 @@ procedure TForm2.FormDestroy(Sender: TObject);
WriteString('ProxySettings','HTTPProxyUser',EditHTTPProxyUser.Text);
WriteString('ProxySettings','HTTPProxyPass',EditHTTPProxyPassword.Text);

WriteString('OSXCross','OSXCrossLocation',EditOSXCrossLocation.Text);
WriteString('OSXCross','CygwinLocation',EditCygwinLocation.Text);

for OS := Low(TOS) to High(TOS) do
begin
for CPU := Low(TCPU) to High(TCPU) do
Expand Down Expand Up @@ -342,6 +318,11 @@ function TForm2.GetIncludeLCL:boolean;
result:=CheckIncludeLCL.Checked;
end;

function TForm2.GetIncludeHelp:boolean;
begin
result:=CheckIncludeHelp.Checked;
end;

function TForm2.GetHTTPProxyHost:string;
begin
result:=EditHTTPProxyHost.Text;
Expand All @@ -362,16 +343,5 @@ function TForm2.GetHTTPProxyPass:string;
result:=EditHTTPProxyPassword.Text;
end;

function TForm2.GetCygwinLocation:string;
begin
result:=EditCygwinLocation.Text;
end;

function TForm2.GetOSXCrossLocation:string;
begin
result:=EditOSXCrossLocation.Text;
end;


end.

14 changes: 7 additions & 7 deletions fpclazup.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$(TargetCPU)-$(TargetOS)\fpclazup"/>
<Filename Value="bin\debug-$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand Down Expand Up @@ -89,7 +89,7 @@ end;"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$(TargetCPU)-$(TargetOS)\fpclazup"/>
<Filename Value="bin\$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand Down Expand Up @@ -124,7 +124,7 @@ end;"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$(TargetCPU)-$(TargetOS)\fpclazup64"/>
<Filename Value="bin\$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand Down Expand Up @@ -160,7 +160,7 @@ end;"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$(TargetCPU)-$(TargetOS)\fpclazup_linux_x86"/>
<Filename Value="bin\$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand Down Expand Up @@ -199,7 +199,7 @@ end;"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$(TargetCPU)-$(TargetOS)\fpclazup_linux_x64"/>
<Filename Value="bin\$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand Down Expand Up @@ -238,7 +238,7 @@ end;"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$(TargetCPU)-$(TargetOS)\fpclazup_linux_aarch64"/>
<Filename Value="bin\$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand Down Expand Up @@ -497,7 +497,7 @@ end;"/>
<Version Value="11"/>
<PathDelim Value="\"/>
<Target>
<Filename Value="bin\$(TargetCPU)-$(TargetOS)\fpclazup"/>
<Filename Value="bin\$NameOnly($(ProjFile))-$(TargetCPU)-$(TargetOS)"/>
</Target>
<SearchPaths>
<IncludeFiles Value="$(ProjOutDir)"/>
Expand Down
15 changes: 8 additions & 7 deletions fpcup.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
; ... and you can define your own, like below:

[fpcupinfo]
inifileversion=1.0.0.4
inifileversion=1.0.0.5

[ALIASfpcURL]
default=http://svn.freepascal.org/svn/fpc/tags/release_3_0_0
Expand Down Expand Up @@ -284,7 +284,7 @@ SVNURL=svn://svn.code.sf.net/p/lazarus-ccr/svn
;AddPackage23=$(Installdir)\components\chelper\chelper.lpk <<<<<<<<<< fpcup problem
;lclextensions is needed by vtv
;trunk version of lclextensions is needed by trunk vtv
AddPackage24=$(Installdir)\components\lclextensions\lclextensions_package.lpk
; AddPackage24=$(Installdir)\components\lclextensions\lclextensions_package.lpk
AddPackage25=$(Installdir)\components\cmdline\cmdbox.lpk
AddPackage26=$(Installdir)\components\colorpalette\lazcolorpalette.lpk
; At this moment, epiktimer does not compile, due to illegal characters in the lpk-files.
Expand Down Expand Up @@ -385,7 +385,8 @@ UnInstall=rm -Rf $(Installdir)
Name=virtualtreeview
Description="Virtual Treeview 4.8"
Installdir=$(fpcdir)/../ccr/$(name)
Requires=lclextensions
; Requires=lclextensions
Requires=luipack
Enabled=0
SVNURL=svn://svn.code.sf.net/p/lazarus-ccr/svn/components/virtualtreeview-new
AddPackage=$(Installdir)/branches/4.8/virtualtreeview_package.lpk
Expand All @@ -397,14 +398,13 @@ UnInstall=rm -Rf $(Installdir)
; some room for extra (separate) lazarus-ccr modules

[FPCUpModule18]
Name=luipacknew
Name=luipack
Description="Extensive library and control set for Lazarus."
Installdir=$(fpcdir)/../ccr/$(name)
Enabled=0
Requires=lclextensions
GitURL=https://github.com/blikblum/luipack
ArchiveURL=https://github.com/blikblum/luipack/archive/master.zip
; AddPackage1=$(Installdir)/lclextensions/lclextensions_package.lpk
AddPackage=$(Installdir)/lclextensions/lclextensions_package.lpk
; sqlite3 is needed for luicomponents !!
; AddPackage2=$(Installdir)/luicomponents/luicomponents.lpk
; AddPackage3=$(Installdir)/luicontrols/luicontrols.lpk
Expand All @@ -415,7 +415,8 @@ UnInstall=rm -Rf $(Installdir)
Name=virtualtreeviewnew
Description="New Virtual Treeview"
Installdir=$(fpcdir)/../ccr/$(name)
Requires=lclextensions
; Requires=lclextensions
Requires=luipack
Enabled=0
; vtv trunk needs lclextensions trunk
GITURL=https://github.com/blikblum/VirtualTreeView-Lazarus
Expand Down
Loading

0 comments on commit 9e0ec28

Please # to comment.