You've already forked lazarus-ccr
To 0.2.5.0: BugFix: regression error: CreateUniqueINIFile
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5497 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -28,7 +28,8 @@
|
|||||||
<UseVersionInfo Value="True"/>
|
<UseVersionInfo Value="True"/>
|
||||||
<AutoIncrementBuild Value="True"/>
|
<AutoIncrementBuild Value="True"/>
|
||||||
<MinorVersionNr Value="2"/>
|
<MinorVersionNr Value="2"/>
|
||||||
<RevisionNr Value="4"/>
|
<RevisionNr Value="5"/>
|
||||||
|
<BuildNr Value="1"/>
|
||||||
<StringTable Comments="Buld configured for Win Linux and Darwin" FileDescription="An editor for OnlinePackageManager update JSON files" InternalName="jsoneditor" LegalCopyright="(c)2016 usernames lainz and minesadorada @ forum.lazarus.freepascal.org" LegalTrademarks="GPL code" OriginalFilename="jsoneditor" ProductName="Lazarus and Freepascal" ProductVersion="1.x and 3.x"/>
|
<StringTable Comments="Buld configured for Win Linux and Darwin" FileDescription="An editor for OnlinePackageManager update JSON files" InternalName="jsoneditor" LegalCopyright="(c)2016 usernames lainz and minesadorada @ forum.lazarus.freepascal.org" LegalTrademarks="GPL code" OriginalFilename="jsoneditor" ProductName="Lazarus and Freepascal" ProductVersion="1.x and 3.x"/>
|
||||||
</VersionInfo>
|
</VersionInfo>
|
||||||
<BuildModes Count="6">
|
<BuildModes Count="6">
|
||||||
@ -55,7 +56,6 @@
|
|||||||
<Linking>
|
<Linking>
|
||||||
<Debugging>
|
<Debugging>
|
||||||
<GenerateDebugInfo Value="False"/>
|
<GenerateDebugInfo Value="False"/>
|
||||||
<UseLineInfoUnit Value="False"/>
|
|
||||||
</Debugging>
|
</Debugging>
|
||||||
<LinkSmart Value="True"/>
|
<LinkSmart Value="True"/>
|
||||||
<Options>
|
<Options>
|
||||||
@ -65,6 +65,7 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
|
<CustomOptions Value="-dIGNOREPICTURE"/>
|
||||||
<OtherDefines Count="1">
|
<OtherDefines Count="1">
|
||||||
<Define0 Value="IGNOREPICTURE"/>
|
<Define0 Value="IGNOREPICTURE"/>
|
||||||
</OtherDefines>
|
</OtherDefines>
|
||||||
@ -102,7 +103,8 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CustomOptions Value="-FcUTF8"/>
|
<CustomOptions Value="-FcUTF8
|
||||||
|
-dIGNOREPICTURE"/>
|
||||||
<OtherDefines Count="1">
|
<OtherDefines Count="1">
|
||||||
<Define0 Value="IGNOREPICTURE"/>
|
<Define0 Value="IGNOREPICTURE"/>
|
||||||
</OtherDefines>
|
</OtherDefines>
|
||||||
@ -140,7 +142,8 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CustomOptions Value="-FcUTF8"/>
|
<CustomOptions Value="-FcUTF8
|
||||||
|
-dIGNOREPICTURE"/>
|
||||||
<OtherDefines Count="1">
|
<OtherDefines Count="1">
|
||||||
<Define0 Value="IGNOREPICTURE"/>
|
<Define0 Value="IGNOREPICTURE"/>
|
||||||
</OtherDefines>
|
</OtherDefines>
|
||||||
@ -178,7 +181,8 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CustomOptions Value="-FcUTF8"/>
|
<CustomOptions Value="-FcUTF8
|
||||||
|
-dIGNOREPICTURE"/>
|
||||||
</Other>
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
</Item5>
|
</Item5>
|
||||||
@ -302,6 +306,7 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
|
<CustomOptions Value="-dIGNOREPICTURE"/>
|
||||||
<OtherDefines Count="1">
|
<OtherDefines Count="1">
|
||||||
<Define0 Value="IGNOREPICTURE"/>
|
<Define0 Value="IGNOREPICTURE"/>
|
||||||
</OtherDefines>
|
</OtherDefines>
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
<ProjectSession>
|
<ProjectSession>
|
||||||
<PathDelim Value="\"/>
|
<PathDelim Value="\"/>
|
||||||
<Version Value="10"/>
|
<Version Value="10"/>
|
||||||
<BuildModes Active="Linux64"/>
|
<BuildModes Active="Win32"/>
|
||||||
<Units Count="47">
|
<Units Count="47">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="jsonpackage.lpr"/>
|
<Filename Value="jsonpackage.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<EditorIndex Value="3"/>
|
<EditorIndex Value="3"/>
|
||||||
<CursorPos X="15" Y="19"/>
|
<CursorPos X="15" Y="19"/>
|
||||||
<UsageCount Value="162"/>
|
<UsageCount Value="164"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit0>
|
</Unit0>
|
||||||
<Unit1>
|
<Unit1>
|
||||||
@ -20,8 +20,8 @@
|
|||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<IsVisibleTab Value="True"/>
|
<IsVisibleTab Value="True"/>
|
||||||
<TopLine Value="38"/>
|
<TopLine Value="37"/>
|
||||||
<CursorPos X="23" Y="62"/>
|
<CursorPos X="59" Y="57"/>
|
||||||
<ExtraEditorCount Value="1"/>
|
<ExtraEditorCount Value="1"/>
|
||||||
<ExtraEditor1>
|
<ExtraEditor1>
|
||||||
<EditorIndex Value="-1"/>
|
<EditorIndex Value="-1"/>
|
||||||
@ -29,11 +29,11 @@
|
|||||||
<TopLine Value="311"/>
|
<TopLine Value="311"/>
|
||||||
<CursorPos Y="498"/>
|
<CursorPos Y="498"/>
|
||||||
</ExtraEditor1>
|
</ExtraEditor1>
|
||||||
<UsageCount Value="162"/>
|
<UsageCount Value="164"/>
|
||||||
<Bookmarks Count="3">
|
<Bookmarks Count="3">
|
||||||
<Item0 Y="858" ID="1"/>
|
<Item0 Y="880" ID="1"/>
|
||||||
<Item1 Y="804"/>
|
<Item1 Y="818"/>
|
||||||
<Item2 Y="660" ID="2"/>
|
<Item2 Y="661" ID="2"/>
|
||||||
</Bookmarks>
|
</Bookmarks>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
<LoadedDesigner Value="True"/>
|
<LoadedDesigner Value="True"/>
|
||||||
@ -41,7 +41,7 @@
|
|||||||
<Unit2>
|
<Unit2>
|
||||||
<Filename Value="ugenericcollection.pas"/>
|
<Filename Value="ugenericcollection.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UsageCount Value="162"/>
|
<UsageCount Value="164"/>
|
||||||
</Unit2>
|
</Unit2>
|
||||||
<Unit3>
|
<Unit3>
|
||||||
<Filename Value="C:\NewPascal\projects\MDSUM\CryptINI\lockini.pas"/>
|
<Filename Value="C:\NewPascal\projects\MDSUM\CryptINI\lockini.pas"/>
|
||||||
@ -49,7 +49,7 @@
|
|||||||
<UnitName Value="LockIni"/>
|
<UnitName Value="LockIni"/>
|
||||||
<EditorIndex Value="-1"/>
|
<EditorIndex Value="-1"/>
|
||||||
<CursorPos X="40" Y="9"/>
|
<CursorPos X="40" Y="9"/>
|
||||||
<UsageCount Value="80"/>
|
<UsageCount Value="82"/>
|
||||||
</Unit3>
|
</Unit3>
|
||||||
<Unit4>
|
<Unit4>
|
||||||
<Filename Value="D:\Lazarusprojects\golfml\egacalculator\source\umainform.pas"/>
|
<Filename Value="D:\Lazarusprojects\golfml\egacalculator\source\umainform.pas"/>
|
||||||
@ -352,18 +352,18 @@
|
|||||||
</Unit44>
|
</Unit44>
|
||||||
<Unit45>
|
<Unit45>
|
||||||
<Filename Value="C:\trunklatest\lazarus\lcl\include\customform.inc"/>
|
<Filename Value="C:\trunklatest\lazarus\lcl\include\customform.inc"/>
|
||||||
<EditorIndex Value="2"/>
|
<EditorIndex Value="1"/>
|
||||||
<TopLine Value="992"/>
|
<TopLine Value="910"/>
|
||||||
<CursorPos Y="1012"/>
|
<CursorPos Y="932"/>
|
||||||
<UsageCount Value="29"/>
|
<UsageCount Value="30"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit45>
|
</Unit45>
|
||||||
<Unit46>
|
<Unit46>
|
||||||
<Filename Value="C:\trunklatest\fpc\packages\fcl-base\src\fileinfo.pp"/>
|
<Filename Value="C:\trunklatest\fpc\packages\fcl-base\src\fileinfo.pp"/>
|
||||||
<EditorIndex Value="1"/>
|
<EditorIndex Value="2"/>
|
||||||
<TopLine Value="88"/>
|
<TopLine Value="88"/>
|
||||||
<CursorPos X="26" Y="110"/>
|
<CursorPos X="26" Y="110"/>
|
||||||
<UsageCount Value="28"/>
|
<UsageCount Value="29"/>
|
||||||
<Loaded Value="True"/>
|
<Loaded Value="True"/>
|
||||||
</Unit46>
|
</Unit46>
|
||||||
</Units>
|
</Units>
|
||||||
@ -373,123 +373,123 @@
|
|||||||
<JumpHistory Count="30" HistoryIndex="29">
|
<JumpHistory Count="30" HistoryIndex="29">
|
||||||
<Position1>
|
<Position1>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="900" Column="3" TopLine="898"/>
|
<Caret Line="774" TopLine="753"/>
|
||||||
</Position1>
|
</Position1>
|
||||||
<Position2>
|
<Position2>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="1124" TopLine="1104"/>
|
<Caret Line="775" Column="44" TopLine="753"/>
|
||||||
</Position2>
|
</Position2>
|
||||||
<Position3>
|
<Position3>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="839" Column="9" TopLine="831"/>
|
<Caret Line="815" TopLine="778"/>
|
||||||
</Position3>
|
</Position3>
|
||||||
<Position4>
|
<Position4>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="580" Column="39" TopLine="566"/>
|
<Caret Line="813" TopLine="781"/>
|
||||||
</Position4>
|
</Position4>
|
||||||
<Position5>
|
<Position5>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="255" Column="17" TopLine="254"/>
|
<Caret Line="777" TopLine="755"/>
|
||||||
</Position5>
|
</Position5>
|
||||||
<Position6>
|
<Position6>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="480" Column="67" TopLine="471"/>
|
<Caret Line="805" Column="17" TopLine="779"/>
|
||||||
</Position6>
|
</Position6>
|
||||||
<Position7>
|
<Position7>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="647" Column="23" TopLine="629"/>
|
<Caret Line="777" Column="5" TopLine="755"/>
|
||||||
</Position7>
|
</Position7>
|
||||||
<Position8>
|
<Position8>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="1090" Column="18" TopLine="1065"/>
|
<Caret Line="813" TopLine="792"/>
|
||||||
</Position8>
|
</Position8>
|
||||||
<Position9>
|
<Position9>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="697" Column="69" TopLine="683"/>
|
<Caret Line="794" Column="7" TopLine="773"/>
|
||||||
</Position9>
|
</Position9>
|
||||||
<Position10>
|
<Position10>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="695" Column="9" TopLine="675"/>
|
<Caret Line="813" TopLine="776"/>
|
||||||
</Position10>
|
</Position10>
|
||||||
<Position11>
|
<Position11>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="5" Column="23"/>
|
<Caret Line="814" TopLine="777"/>
|
||||||
</Position11>
|
</Position11>
|
||||||
<Position12>
|
<Position12>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="274" Column="17" TopLine="242"/>
|
<Caret Line="804" Column="34" TopLine="783"/>
|
||||||
</Position12>
|
</Position12>
|
||||||
<Position13>
|
<Position13>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="1133" Column="30" TopLine="1120"/>
|
<Caret Line="813" TopLine="783"/>
|
||||||
</Position13>
|
</Position13>
|
||||||
<Position14>
|
<Position14>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="1060" Column="50" TopLine="1022"/>
|
<Caret Line="814" TopLine="783"/>
|
||||||
</Position14>
|
</Position14>
|
||||||
<Position15>
|
<Position15>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="951"/>
|
<Caret Line="772" Column="14" TopLine="759"/>
|
||||||
</Position15>
|
</Position15>
|
||||||
<Position16>
|
<Position16>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="1100" Column="79" TopLine="1070"/>
|
<Caret Line="821" TopLine="760"/>
|
||||||
</Position16>
|
</Position16>
|
||||||
<Position17>
|
<Position17>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="59" Column="47" TopLine="49"/>
|
<Caret Line="772" TopLine="760"/>
|
||||||
</Position17>
|
</Position17>
|
||||||
<Position18>
|
<Position18>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="730" Column="31" TopLine="726"/>
|
<Caret Line="777" TopLine="766"/>
|
||||||
</Position18>
|
</Position18>
|
||||||
<Position19>
|
<Position19>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="733" Column="8" TopLine="711"/>
|
<Caret Line="778" TopLine="766"/>
|
||||||
</Position19>
|
</Position19>
|
||||||
<Position20>
|
<Position20>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="732" Column="31" TopLine="712"/>
|
<Caret Line="779" TopLine="766"/>
|
||||||
</Position20>
|
</Position20>
|
||||||
<Position21>
|
<Position21>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="767" Column="41" TopLine="86"/>
|
<Caret Line="780" TopLine="766"/>
|
||||||
</Position21>
|
</Position21>
|
||||||
<Position22>
|
<Position22>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="3" Column="28"/>
|
<Caret Line="770" TopLine="762"/>
|
||||||
</Position22>
|
</Position22>
|
||||||
<Position23>
|
<Position23>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="793" Column="24" TopLine="761"/>
|
<Caret Line="771" TopLine="762"/>
|
||||||
</Position23>
|
</Position23>
|
||||||
<Position24>
|
<Position24>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="789" Column="30" TopLine="767"/>
|
<Caret Line="772" TopLine="762"/>
|
||||||
</Position24>
|
</Position24>
|
||||||
<Position25>
|
<Position25>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="374" Column="40" TopLine="366"/>
|
<Caret Line="793" Column="10" TopLine="762"/>
|
||||||
</Position25>
|
</Position25>
|
||||||
<Position26>
|
<Position26>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="379" Column="18" TopLine="363"/>
|
<Caret Line="840" Column="27" TopLine="779"/>
|
||||||
</Position26>
|
</Position26>
|
||||||
<Position27>
|
<Position27>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="304" Column="19" TopLine="254"/>
|
<Caret Line="226" TopLine="193"/>
|
||||||
</Position27>
|
</Position27>
|
||||||
<Position28>
|
<Position28>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="113" Column="26" TopLine="73"/>
|
<Caret Line="1266" Column="35" TopLine="1186"/>
|
||||||
</Position28>
|
</Position28>
|
||||||
<Position29>
|
<Position29>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="1163" TopLine="1133"/>
|
<Caret Line="1000" TopLine="975"/>
|
||||||
</Position29>
|
</Position29>
|
||||||
<Position30>
|
<Position30>
|
||||||
<Filename Value="umain.pas"/>
|
<Filename Value="umain.pas"/>
|
||||||
<Caret Line="930" TopLine="923"/>
|
<Caret Line="771" Column="29" TopLine="745"/>
|
||||||
</Position30>
|
</Position30>
|
||||||
</JumpHistory>
|
</JumpHistory>
|
||||||
</ProjectSession>
|
</ProjectSession>
|
||||||
|
Binary file not shown.
@ -63,7 +63,8 @@ unit umain;
|
|||||||
0.2.2.0: Hints and Validation updated (minesadorada)
|
0.2.2.0: Hints and Validation updated (minesadorada)
|
||||||
0.2.3.0: ResourceStrings Updated (minesadorada)
|
0.2.3.0: ResourceStrings Updated (minesadorada)
|
||||||
0.2.4.0: Bugfix: regression error: DisableInOPM (minesadorada)
|
0.2.4.0: Bugfix: regression error: DisableInOPM (minesadorada)
|
||||||
0.2.5.0: ??
|
0.2.5.0: BugFix: regression error: CreateUniqueINIFile (minesadorada)
|
||||||
|
0.2.6.0: ??
|
||||||
}
|
}
|
||||||
{$mode objfpc}{$H+}
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
@ -71,7 +72,7 @@ interface
|
|||||||
|
|
||||||
{DefaultTranslator not used}
|
{DefaultTranslator not used}
|
||||||
uses
|
uses
|
||||||
Classes, Forms, Controls, StdCtrls, Menus, ActnList, StdActns, Grids,
|
Classes, Forms, Controls, StdCtrls, Menus, ActnList, StdActns,
|
||||||
Graphics, Buttons, fileutil, LazFileUtils, fileinfo, ugenericcollection,
|
Graphics, Buttons, fileutil, LazFileUtils, fileinfo, ugenericcollection,
|
||||||
fpjsonrtti, Dialogs, LCLTranslator, PopupNotifier, SysUtils, inifiles,
|
fpjsonrtti, Dialogs, LCLTranslator, PopupNotifier, SysUtils, inifiles,
|
||||||
lclintf, lclVersion, LResources, Spin, {$IFDEF PO_BUILTINRES}LazUTF8Classes{$ENDIF};
|
lclintf, lclVersion, LResources, Spin, {$IFDEF PO_BUILTINRES}LazUTF8Classes{$ENDIF};
|
||||||
@ -167,7 +168,7 @@ type
|
|||||||
sb_PackageFiles: TScrollBox;
|
sb_PackageFiles: TScrollBox;
|
||||||
spd_CheckURL: TSpeedButton;
|
spd_CheckURL: TSpeedButton;
|
||||||
procedure chk_DisableInOPMMouseUp(Sender: TObject; Button: TMouseButton;
|
procedure chk_DisableInOPMMouseUp(Sender: TObject; Button: TMouseButton;
|
||||||
Shift: TShiftState; X, Y: Integer);
|
Shift: TShiftState; X, Y: integer);
|
||||||
procedure cmd_AddPackageFileClick(Sender: TObject);
|
procedure cmd_AddPackageFileClick(Sender: TObject);
|
||||||
procedure cmd_RemoveLastPackageFileClick(Sender: TObject);
|
procedure cmd_RemoveLastPackageFileClick(Sender: TObject);
|
||||||
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
procedure FormCloseQuery(Sender: TObject; var CanClose: boolean);
|
||||||
@ -215,15 +216,15 @@ type
|
|||||||
procedure AddNewControlArray;
|
procedure AddNewControlArray;
|
||||||
procedure DestroyControlArrays;
|
procedure DestroyControlArrays;
|
||||||
procedure RemoveLastControlArray;
|
procedure RemoveLastControlArray;
|
||||||
function ValidationFailed: boolean;
|
|
||||||
procedure ProcessNotify(Sender: TObject; Button: TMouseButton;
|
procedure ProcessNotify(Sender: TObject; Button: TMouseButton;
|
||||||
Shift: TShiftState; X, Y: integer);
|
Shift: TShiftState; X, Y: integer);
|
||||||
procedure CtrlShowPopup(Sender: TObject);
|
procedure CtrlShowPopup(Sender: TObject);
|
||||||
procedure CtrlHidePopup(Sender: TObject);
|
procedure CtrlHidePopup(Sender: TObject);
|
||||||
procedure CtrlSetUpPopupHandlers;
|
procedure CtrlSetUpPopupHandlers;
|
||||||
procedure CtrlMakeDirty(Sender: TObject);
|
procedure CtrlMakeDirty(Sender: TObject);
|
||||||
|
procedure CreateUniqueINI(var aCount: integer);
|
||||||
|
function ValidationFailed: boolean;
|
||||||
function FoundADuplicateLPK: boolean;
|
function FoundADuplicateLPK: boolean;
|
||||||
function CreateUniqueINI(var aCount: integer): boolean;
|
|
||||||
public
|
public
|
||||||
{ public declarations }
|
{ public declarations }
|
||||||
end;
|
end;
|
||||||
@ -411,7 +412,7 @@ var
|
|||||||
begin
|
begin
|
||||||
// Callked on Form_Destroy
|
// Callked on Form_Destroy
|
||||||
for i := 0 to High(ArrayGrpBox) do
|
for i := 0 to High(ArrayGrpBox) do
|
||||||
Begin
|
begin
|
||||||
FreeAndNil(ArraySpinEditInternalVersion[i]);
|
FreeAndNil(ArraySpinEditInternalVersion[i]);
|
||||||
FreeAndNil(ArrayLblPackageInternalVersion[i]);
|
FreeAndNil(ArrayLblPackageInternalVersion[i]);
|
||||||
FreeAndNil(ArrayChkBoxForceNotify[i]);
|
FreeAndNil(ArrayChkBoxForceNotify[i]);
|
||||||
@ -600,7 +601,8 @@ begin
|
|||||||
OnMouseEnter := @CtrlShowPopup;
|
OnMouseEnter := @CtrlShowPopup;
|
||||||
OnMouseLeave := @CtrlHidePopup;
|
OnMouseLeave := @CtrlHidePopup;
|
||||||
OnClick := @CtrlHidePopup;
|
OnClick := @CtrlHidePopup;
|
||||||
Hint := Format('%s%s%s %s', [rsInternalVers,LineEnding,rsUseInCombina,rsNotifyUpdate]);
|
Hint := Format('%s%s%s %s',
|
||||||
|
[rsInternalVers, LineEnding, rsUseInCombina, rsNotifyUpdate]);
|
||||||
Parent := ArrayGrpBox[iNumLpkFilesVisible];
|
Parent := ArrayGrpBox[iNumLpkFilesVisible];
|
||||||
end;
|
end;
|
||||||
// SpinEdit Internal Version
|
// SpinEdit Internal Version
|
||||||
@ -615,7 +617,8 @@ begin
|
|||||||
OnMouseLeave := @CtrlHidePopup;
|
OnMouseLeave := @CtrlHidePopup;
|
||||||
OnClick := @CtrlHidePopup;
|
OnClick := @CtrlHidePopup;
|
||||||
OnChange := @CtrlMakeDirty;
|
OnChange := @CtrlMakeDirty;
|
||||||
Hint := Format('%s%s%s %s', [rsInternalVers,LineEnding,rsUseInCombina,rsNotifyUpdate]);
|
Hint := Format('%s%s%s %s',
|
||||||
|
[rsInternalVers, LineEnding, rsUseInCombina, rsNotifyUpdate]);
|
||||||
Parent := ArrayGrpBox[iNumLpkFilesVisible];
|
Parent := ArrayGrpBox[iNumLpkFilesVisible];
|
||||||
end;
|
end;
|
||||||
// This sets the subcontrols up correctly
|
// This sets the subcontrols up correctly
|
||||||
@ -734,13 +737,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.chk_DisableInOPMMouseUp(Sender: TObject;
|
procedure TfrmMain.chk_DisableInOPMMouseUp(Sender: TObject;
|
||||||
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
Button: TMouseButton; Shift: TShiftState; X, Y: integer);
|
||||||
begin
|
begin
|
||||||
// Warn user about DisableInOPM
|
// Warn user about DisableInOPM
|
||||||
If chk_DisableInOPM.Checked=TRUE then
|
if chk_DisableInOPM.Checked = True then
|
||||||
if MessageDlg(Format(rsThisWillDisa, [LineEnding]),
|
if MessageDlg(Format(rsThisWillDisa, [LineEnding]),
|
||||||
mtWarning,[MBYES,MBNO],0,MBNO) = mrNo then
|
mtWarning, [mbYes, mbNo], 0, mbNo) = mrNo then
|
||||||
chk_DisableInOPM.Checked:=FALSE;
|
chk_DisableInOPM.Checked := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.cmd_RemoveLastPackageFileClick(Sender: TObject);
|
procedure TfrmMain.cmd_RemoveLastPackageFileClick(Sender: TObject);
|
||||||
@ -755,8 +758,8 @@ begin
|
|||||||
begin
|
begin
|
||||||
if MessageDlg(rsFileMayBeUns, mtConfirmation, [mbYes, mbNo], 0, mbNo) = mrNo then
|
if MessageDlg(rsFileMayBeUns, mtConfirmation, [mbYes, mbNo], 0, mbNo) = mrNo then
|
||||||
CanClose := False;
|
CanClose := False;
|
||||||
end
|
end;
|
||||||
else
|
if CanClose = True then
|
||||||
begin
|
begin
|
||||||
CFG.WriteBool('Options', 'Virgin', False); // Suppresses PopUp hints on next run
|
CFG.WriteBool('Options', 'Virgin', False); // Suppresses PopUp hints on next run
|
||||||
CFG.WriteBool('Options', 'DiableWarnings', bDisableWarnings);
|
CFG.WriteBool('Options', 'DiableWarnings', bDisableWarnings);
|
||||||
@ -764,21 +767,34 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TfrmMain.CreateUniqueINI(var aCount: integer): boolean;
|
procedure TfrmMain.CreateUniqueINI(var aCount: integer);
|
||||||
// Recursively loop until correct INI found, or new one created
|
// Recursively loop until correct INI found, or new one created
|
||||||
// Based on Executable's path location
|
// Based on Executable's path location
|
||||||
begin
|
begin
|
||||||
Result := False;
|
|
||||||
INIFilePath := GetAppConfigFile(False) + IntToStr(aCount);
|
INIFilePath := GetAppConfigFile(False) + IntToStr(aCount);
|
||||||
|
If C_DEBUGMESSAGES then ShowMessage(INIFilePath);
|
||||||
|
if FileExistsUTF8(INIFilePath) then
|
||||||
|
begin
|
||||||
CFG := TIniFile.Create(INIFilePath);
|
CFG := TIniFile.Create(INIFilePath);
|
||||||
CFG.CacheUpdates := True;
|
CFG.CacheUpdates := True;
|
||||||
if CFG.ReadString('Options', 'AppPath', ProgramDirectory) <> ProgramDirectory then
|
if CFG.ReadString('Options', 'AppPath', 'unknown') = ProgramDirectory then
|
||||||
|
begin
|
||||||
|
Exit;
|
||||||
|
end
|
||||||
|
else
|
||||||
begin
|
begin
|
||||||
FreeAndNil(CFG); // Ditch the old one
|
FreeAndNil(CFG); // Ditch the old one
|
||||||
Inc(aCount);
|
Inc(aCount);
|
||||||
Result := True;
|
|
||||||
CreateUniqueINI(aCount); // Make a new one
|
CreateUniqueINI(aCount); // Make a new one
|
||||||
end;
|
end;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
CFG := TIniFile.Create(INIFilePath);
|
||||||
|
CFG.CacheUpdates := True;
|
||||||
|
CFG.WriteString('Options', 'AppPath', ProgramDirectory);
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TfrmMain.FormCreate(Sender: TObject);
|
procedure TfrmMain.FormCreate(Sender: TObject);
|
||||||
@ -811,8 +827,16 @@ begin
|
|||||||
// If program location is different, create a new CFG file
|
// If program location is different, create a new CFG file
|
||||||
// Because each component's location might be different
|
// Because each component's location might be different
|
||||||
iIniCount := 0;
|
iIniCount := 0;
|
||||||
if CreateUniqueINI(iIniCount) then
|
// First time run anywhere on the system
|
||||||
|
INIFilePath := GetAppConfigFile(False) + '0';
|
||||||
|
if not FileExistsUTF8(INIFilePath) then
|
||||||
|
begin
|
||||||
|
CFG := TIniFile.Create(INIFilePath);
|
||||||
CFG.WriteString('Options', 'AppPath', ProgramDirectory);
|
CFG.WriteString('Options', 'AppPath', ProgramDirectory);
|
||||||
|
end
|
||||||
|
else // Make a new INI if this is a new location
|
||||||
|
CreateUniqueINI(iIniCount);
|
||||||
|
|
||||||
CFG.UpdateFile;
|
CFG.UpdateFile;
|
||||||
|
|
||||||
if C_DEBUGMESSAGES = True then // Dev only
|
if C_DEBUGMESSAGES = True then // Dev only
|
||||||
@ -1116,8 +1140,8 @@ begin
|
|||||||
Result := True;
|
Result := True;
|
||||||
end;
|
end;
|
||||||
// Check Forcenotify version isn't zero
|
// Check Forcenotify version isn't zero
|
||||||
If ArrayChkBoxForceNotify[iCount].Checked = TRUE then
|
if ArrayChkBoxForceNotify[iCount].Checked = True then
|
||||||
If ArraySpinEditInternalVersion[iCount].Value = 0 then
|
if ArraySpinEditInternalVersion[iCount].Value = 0 then
|
||||||
begin
|
begin
|
||||||
ArraySpinEditInternalVersion[iCount].Color := clYellow;
|
ArraySpinEditInternalVersion[iCount].Color := clYellow;
|
||||||
slErrorList.Add(Format(rsInternalVers2, [LineEnding]));
|
slErrorList.Add(Format(rsInternalVers2, [LineEnding]));
|
||||||
@ -1226,7 +1250,7 @@ procedure TfrmMain.spd_CheckURLClick(Sender: TObject);
|
|||||||
// Show a popup notification because it takes time to open a browser window
|
// Show a popup notification because it takes time to open a browser window
|
||||||
var
|
var
|
||||||
bTemp: boolean;
|
bTemp: boolean;
|
||||||
sOldHint:String;
|
sOldHint: string;
|
||||||
begin
|
begin
|
||||||
if OpenURL(edt_DownloadZipURL.Text) then
|
if OpenURL(edt_DownloadZipURL.Text) then
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user