Skip to content

Commit 64b6fa8

Browse files
ver. 2.3.2
- Added auto-create file linked, if not exists - Fixed Splitter View Opening a File - Fixed Refresh content after load
1 parent 7103f62 commit 64b6fa8

File tree

177 files changed

+12788
-6659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+12788
-6659
lines changed

Ext/MarkdownProcessor/source/MarkdownCommonMark.pas

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@
5555
interface
5656

5757
uses
58-
SysUtils, Classes, TypInfo,
59-
MarkdownProcessor, MarkdownDaringFireball, MarkdownUtils;
58+
System.SysUtils
59+
, System.Classes
60+
, System.TypInfo
61+
, MarkdownProcessor
62+
, MarkdownDaringFireball
63+
, MarkdownUtils
64+
;
6065

6166
Type
6267

Ext/MarkdownProcessor/source/MarkdownDaringFireball.pas

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@
4646
interface
4747

4848
uses
49-
SysUtils, Classes, TypInfo,
50-
MarkdownProcessor, MarkdownUtils, MarkdownTables;
49+
System.SysUtils
50+
, System.Classes
51+
, System.TypInfo
52+
, MarkdownProcessor
53+
, MarkdownUtils
54+
, MarkdownTables
55+
;
5156

5257
type
5358

Ext/MarkdownProcessor/source/MarkdownProcessor.pas

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@
5555
interface
5656

5757
uses
58-
Classes, SysUtils, MarkdownUtils;
58+
System.Classes
59+
, System.SysUtils
60+
, MarkdownUtils
61+
;
5962

6063
Type
6164

@@ -79,9 +82,10 @@ interface
7982
implementation
8083

8184
uses
82-
MarkdownDaringFireball,
83-
MarkdownCommonMark,
84-
MarkdownTxtMark;
85+
MarkdownDaringFireball
86+
, MarkdownCommonMark
87+
, MarkdownTxtMark
88+
;
8589

8690
{ TMarkdownProcessor }
8791

Ext/MarkdownProcessor/source/MarkdownTxtMark.pas

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828
interface
2929

3030
uses
31-
SysUtils, Classes, TypInfo,
32-
MarkdownDaringFireball, MarkdownUtils;
31+
System.SysUtils
32+
, System.Classes
33+
, System.TypInfo
34+
, MarkdownDaringFireball
35+
, MarkdownUtils;
3336

3437
Type
3538

Ext/MarkdownProcessor/source/MarkdownUtils.pas

Lines changed: 9 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@
2828
interface
2929

3030
uses
31-
SysUtils, StrUtils, Classes, Character, TypInfo, Math;
31+
System.SysUtils
32+
, System.StrUtils
33+
, System.Classes
34+
, System.Character
35+
, System.TypInfo
36+
, System.Math
37+
;
3238

3339
Type
3440
TMarkdownProcessorDialect = (mdDaringFireball, mdCommonMark, mdTxtMark);
@@ -2984,7 +2990,7 @@ procedure TBlock.removeListIndent(config: TConfiguration);
29842990
line.value := Copy(line.value, pos(')', line.value) + 2);
29852991
else
29862992
// line.value := line.value.substring(Math.min(line.leading, 4)); pstfix
2987-
line.value := Copy(line.value, Math.Min(line.leading + 1, 5));
2993+
line.value := Copy(line.value, System.Math.Min(line.leading + 1, 5));
29882994
end;
29892995
line.InitLeading();
29902996
end;
@@ -3079,60 +3085,7 @@ procedure TBlock.transfromHeadline;
30793085
line.leading := 0;
30803086
line.trailing := 0;
30813087
end;
3082-
self.hlDepth := Math.min(level, 6);
3088+
self.hlDepth := System.Math.min(level, 6);
30833089
end;
30843090

3085-
{$IFDEF FPC}
3086-
{ TStringBuilder }
3087-
3088-
constructor TStringBuilder.Create;
3089-
begin
3090-
Inherited;
3091-
FBufferSize := BUFFER_INCREMENT_SIZE;
3092-
end;
3093-
3094-
procedure TStringBuilder.Append(value: TStringBuilder);
3095-
begin
3096-
append(value.ToString);
3097-
end;
3098-
3099-
procedure TStringBuilder.Append(value: integer);
3100-
begin
3101-
append(inttostr(value));
3102-
end;
3103-
3104-
procedure TStringBuilder.Append(value: String);
3105-
begin
3106-
If (value <> '') Then
3107-
Begin
3108-
If FLength + System.Length(value) > System.Length(FContent) Then
3109-
SetLength(FContent, System.Length(FContent) + Math.Max(FBufferSize, System.Length(value)));
3110-
3111-
Move(value[1], FContent[FLength + 1], System.Length(value) * SizeOf(Char));
3112-
3113-
Inc(FLength, System.Length(value));
3114-
End;
3115-
end;
3116-
3117-
procedure TStringBuilder.Clear;
3118-
begin
3119-
FContent := '';
3120-
FLength := 0;
3121-
end;
3122-
3123-
function TStringBuilder.GetChar(index: integer): char;
3124-
begin
3125-
if (index < 0) or (index >= Length) then
3126-
raise Exception.Create('Out of bounds');
3127-
result := FContent[index+1];
3128-
end;
3129-
3130-
3131-
function TStringBuilder.toString: String;
3132-
begin
3133-
Result := Copy(FContent, 1, FLength);
3134-
end;
3135-
3136-
{$ENDIF}
3137-
31383091
end.

Ext/SVGIconImageList/Image32/source/Clipper.Core.pas

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(*******************************************************************************
44
* Author : Angus Johnson *
5-
* Date : 12 August 2024 *
5+
* Date : 22 November 2024 *
66
* Website : http://www.angusj.com *
77
* Copyright : Angus Johnson 2010-2024 *
88
* Purpose : Core Clipper Library module *
@@ -19,23 +19,22 @@ interface
1919

2020
type
2121
{$IFDEF USINGZ}
22-
Ztype = type double;//Int64;//
23-
PZtype = ^Ztype;
22+
ZType = Int64; // or alternatively, ZType = double
2423
{$ENDIF}
2524

2625
PPoint64 = ^TPoint64;
2726
TPoint64 = record
2827
X, Y: Int64;
2928
{$IFDEF USINGZ}
30-
Z: Ztype;
29+
Z: ZType;
3130
{$ENDIF}
3231
end;
3332

3433
PPointD = ^TPointD;
3534
TPointD = record
3635
X, Y: double;
3736
{$IFDEF USINGZ}
38-
Z: Ztype;
37+
Z: ZType;
3938
{$ENDIF}
4039
end;
4140

@@ -125,6 +124,7 @@ TListEx = class
125124
fCount : integer;
126125
fCapacity : integer;
127126
fList : TPointerList;
127+
fSorted : Boolean;
128128
protected
129129
function UnsafeGet(idx: integer): Pointer; // no range checking
130130
procedure UnsafeSet(idx: integer; val: Pointer);
@@ -134,14 +134,16 @@ TListEx = class
134134
destructor Destroy; override;
135135
procedure Clear; virtual;
136136
function Add(item: Pointer): integer;
137+
procedure DeleteLast;
137138
procedure Swap(idx1, idx2: integer);
138-
procedure Sort(Compare: TListSortCompare);
139+
procedure Sort(Compare: TListSortCompareFunc);
139140
procedure Resize(count: integer);
140141
property Count: integer read fCount;
142+
property Sorted: Boolean read fSorted;
141143
property Item[idx: integer]: Pointer read UnsafeGet; default;
142144
end;
143145

144-
TClipType = (ctNone, ctIntersection, ctUnion, ctDifference, ctXor);
146+
TClipType = (ctNoClip, ctIntersection, ctUnion, ctDifference, ctXor);
145147

146148
TPointInPolygonResult = (pipOn, pipInside, pipOutside);
147149

@@ -544,6 +546,7 @@ procedure TListEx.Clear;
544546
fList := nil;
545547
fCount := 0;
546548
fCapacity := 0;
549+
fSorted := false;
547550
end;
548551
//------------------------------------------------------------------------------
549552

@@ -559,6 +562,13 @@ function TListEx.Add(item: Pointer): integer;
559562
fList[fCount] := item;
560563
Result := fCount;
561564
inc(fCount);
565+
fSorted := false;
566+
end;
567+
//------------------------------------------------------------------------------
568+
569+
procedure TListEx.DeleteLast;
570+
begin
571+
dec(fCount);
562572
end;
563573
//------------------------------------------------------------------------------
564574

@@ -615,10 +625,11 @@ procedure QuickSort(SortList: TPointerList; L, R: Integer;
615625
end;
616626
//------------------------------------------------------------------------------
617627

618-
procedure TListEx.Sort(Compare: TListSortCompare);
628+
procedure TListEx.Sort(Compare: TListSortCompareFunc);
619629
begin
620630
if fCount < 2 then Exit;
621631
QuickSort(FList, 0, fCount - 1, Compare);
632+
fSorted := true;
622633
end;
623634
//------------------------------------------------------------------------------
624635

@@ -658,6 +669,7 @@ procedure TListEx.Swap(idx1, idx2: integer);
658669
p := fList[idx1];
659670
fList[idx1] := fList[idx2];
660671
fList[idx2] := p;
672+
fSorted := false;
661673
end;
662674

663675
//------------------------------------------------------------------------------

Ext/SVGIconImageList/Image32/source/Clipper.Engine.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(*******************************************************************************
44
* Author : Angus Johnson *
5-
* Date : 12 August 2024 *
5+
* Date : 22 November 2024 *
66
* Website : http://www.angusj.com *
77
* Copyright : Angus Johnson 2010-2024 *
88
* Purpose : This is the main polygon clipping module *
@@ -2845,7 +2845,7 @@ procedure TClipperBase.ExecuteInternal(clipType: TClipType;
28452845
Y: Int64;
28462846
e: PActive;
28472847
begin
2848-
if clipType = ctNone then Exit;
2848+
if clipType = ctNoClip then Exit;
28492849
FFillRule := fillRule;
28502850
FClipType := clipType;
28512851
Reset;

Ext/SVGIconImageList/Image32/source/Clipper.Offset.pas

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(*******************************************************************************
44
* Author : Angus Johnson *
5-
* Date : 12 August 2024 *
5+
* Date : 22 November 2024 *
66
* Website : http://www.angusj.com *
77
* Copyright : Angus Johnson 2010-2024 *
88
* Purpose : Path Offset (Inflate/Shrink) *
@@ -997,15 +997,11 @@ procedure TClipperOffset.DoRound(j, k: Integer; angle: double);
997997
// (ie over-shrunk paths) are removed.
998998
{$IFDEF USINGZ}
999999
AddPoint(GetPerpendic(fInPath[j], fNorms[k], fGroupDelta), fInPath[j].Z);
1000-
{$ELSE}
1001-
AddPoint(GetPerpendic(fInPath[j], fNorms[k], fGroupDelta));
1002-
{$ENDIF}
1003-
// when the angle is almost flat (cos_a ~= 1),
1004-
// it's safe to skip inserting this middle point
1005-
if (cosA < 0.999) then AddPoint(fInPath[j]); // (#405, #873)
1006-
{$IFDEF USINGZ}
1000+
AddPoint(fInPath[j]); // (#405, #873)
10071001
AddPoint(GetPerpendic(fInPath[j], fNorms[j], fGroupDelta), fInPath[j].Z);
10081002
{$ELSE}
1003+
AddPoint(GetPerpendic(fInPath[j], fNorms[k], fGroupDelta));
1004+
AddPoint(fInPath[j]); // (#405, #873)
10091005
AddPoint(GetPerpendic(fInPath[j], fNorms[j], fGroupDelta));
10101006
{$ENDIF}
10111007
end

Ext/SVGIconImageList/Image32/source/Clipper.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface
5252
etSquare = Clipper.Offset.etSquare;
5353
etRound = Clipper.Offset.etRound;
5454

55-
ctNone = Clipper.Core.ctNone;
55+
ctNone = Clipper.Core.ctNoClip;
5656
ctIntersection = Clipper.Core.ctIntersection;
5757
ctUnion = Clipper.Core.ctUnion;
5858
ctDifference = Clipper.Core.ctDifference;

0 commit comments

Comments
 (0)