mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 10:42:20 -05:00
Merge ssh://villavu.com:54367/simba
This commit is contained in:
commit
9b2683d61b
@ -1,7 +1,7 @@
|
|||||||
object SimbaForm: TSimbaForm
|
object SimbaForm: TSimbaForm
|
||||||
Left = 143
|
Left = 483
|
||||||
Height = 623
|
Height = 623
|
||||||
Top = 115
|
Top = 95
|
||||||
Width = 660
|
Width = 660
|
||||||
AllowDropFiles = True
|
AllowDropFiles = True
|
||||||
Caption = 'THA FUKING Simba'
|
Caption = 'THA FUKING Simba'
|
||||||
@ -3098,10 +3098,11 @@ object SimbaForm: TSimbaForm
|
|||||||
NumberAttri.Foreground = clNavy
|
NumberAttri.Foreground = clNavy
|
||||||
StringAttri.Foreground = clBlue
|
StringAttri.Foreground = clBlue
|
||||||
SymbolAttri.Foreground = clRed
|
SymbolAttri.Foreground = clRed
|
||||||
|
CaseLabelAttri.Style = [fsItalic]
|
||||||
DirectiveAttri.Foreground = clRed
|
DirectiveAttri.Foreground = clRed
|
||||||
DirectiveAttri.Style = [fsBold]
|
DirectiveAttri.Style = [fsBold]
|
||||||
CompilerMode = pcmObjFPC
|
CompilerMode = pcmObjFPC
|
||||||
NestedComments = True
|
NestedComments = False
|
||||||
left = 528
|
left = 528
|
||||||
top = 200
|
top = 200
|
||||||
end
|
end
|
||||||
@ -3112,7 +3113,7 @@ object SimbaForm: TSimbaForm
|
|||||||
NumberAttri.Foreground = clHotLight
|
NumberAttri.Foreground = clHotLight
|
||||||
StringAttri.Foreground = clFuchsia
|
StringAttri.Foreground = clFuchsia
|
||||||
CompilerMode = pcmObjFPC
|
CompilerMode = pcmObjFPC
|
||||||
NestedComments = True
|
NestedComments = False
|
||||||
left = 568
|
left = 568
|
||||||
top = 200
|
top = 200
|
||||||
end
|
end
|
||||||
|
@ -46,7 +46,7 @@ uses
|
|||||||
CastaliaSimplePasPar, v_AutoCompleteForm, PSDump;
|
CastaliaSimplePasPar, v_AutoCompleteForm, PSDump;
|
||||||
|
|
||||||
const
|
const
|
||||||
SimbaVersion = 675;
|
SimbaVersion = 676;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -24,13 +24,13 @@
|
|||||||
function ps_FindDTM(DTM: Integer; var x, y: Integer; xs, ys, xe, ye: Integer): Boolean; extdecl;
|
function ps_FindDTM(DTM: Integer; var x, y: Integer; xs, ys, xe, ye: Integer): Boolean; extdecl;
|
||||||
begin
|
begin
|
||||||
with CurrThread.Client do
|
with CurrThread.Client do
|
||||||
result := MFinder.FindDTM(MDTM.GetDTM(DTM),x,y,xs,ys,xe,ye);
|
result := MFinder.FindDTM(MDTM.GetDTM(DTM)^,x,y,xs,ys,xe,ye);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ps_FindDTMs(DTM: Integer; var p: TPointArray; xs, ys, xe, ye: Integer): Boolean; extdecl;
|
function ps_FindDTMs(DTM: Integer; var p: TPointArray; xs, ys, xe, ye: Integer): Boolean; extdecl;
|
||||||
begin
|
begin
|
||||||
with CurrThread.Client do
|
with CurrThread.Client do
|
||||||
result := MFinder.FindDTMs(MDTM.GetDTM(DTM), p, xs, ys, xe, ye);
|
result := MFinder.FindDTMs(MDTM.GetDTM(DTM)^, p, xs, ys, xe, ye);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ps_FindDTMRotatedAlternating(DTM: Integer; var x, y: Integer; xs, ys, xe, ye:
|
function ps_FindDTMRotatedAlternating(DTM: Integer; var x, y: Integer; xs, ys, xe, ye:
|
||||||
@ -38,7 +38,7 @@ function ps_FindDTMRotatedAlternating(DTM: Integer; var x, y: Integer; xs, ys, x
|
|||||||
var aFound: Extended): Boolean; extdecl;
|
var aFound: Extended): Boolean; extdecl;
|
||||||
begin
|
begin
|
||||||
with CurrThread.Client do
|
with CurrThread.Client do
|
||||||
result := MFinder.FindDTMRotated(MDTM.GetDTM(DTM), x,y, xs, ys, xe, ye, sAngle, eAngle, aStep, aFound,true);
|
result := MFinder.FindDTMRotated(MDTM.GetDTM(DTM)^, x,y, xs, ys, xe, ye, sAngle, eAngle, aStep, aFound,true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ps_FindDTMRotatedSE(DTM: Integer; var x, y: Integer; xs, ys, xe, ye:
|
function ps_FindDTMRotatedSE(DTM: Integer; var x, y: Integer; xs, ys, xe, ye:
|
||||||
@ -46,20 +46,20 @@ function ps_FindDTMRotatedSE(DTM: Integer; var x, y: Integer; xs, ys, xe, ye:
|
|||||||
var aFound: Extended): Boolean; extdecl;
|
var aFound: Extended): Boolean; extdecl;
|
||||||
begin
|
begin
|
||||||
with CurrThread.Client do
|
with CurrThread.Client do
|
||||||
result := MFinder.FindDTMRotated(MDTM.GetDTM(DTM), x, y, xs, ys, xe, ye, sAngle, eAngle, aStep, aFound,false);
|
result := MFinder.FindDTMRotated(MDTM.GetDTM(DTM)^, x, y, xs, ys, xe, ye, sAngle, eAngle, aStep, aFound,false);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ps_FindDTMsRotatedAlternating(DTM: Integer; var Points: TPointArray; xs, ys, xe, ye: Integer; sAngle, eAngle, aStep: Extended; var aFound: T2DExtendedArray): Boolean; extdecl;
|
function ps_FindDTMsRotatedAlternating(DTM: Integer; var Points: TPointArray; xs, ys, xe, ye: Integer; sAngle, eAngle, aStep: Extended; var aFound: T2DExtendedArray): Boolean; extdecl;
|
||||||
begin
|
begin
|
||||||
with CurrThread.Client do
|
with CurrThread.Client do
|
||||||
result := MFinder.FindDTMsRotated(MDTM.GetDTM(DTM), Points, xs, ys, xe, ye,
|
result := MFinder.FindDTMsRotated(MDTM.GetDTM(DTM)^, Points, xs, ys, xe, ye,
|
||||||
sAngle, eAngle, aStep, aFound, true);
|
sAngle, eAngle, aStep, aFound, true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ps_FindDTMsRotatedSE(DTM: Integer; var Points: TPointArray; xs, ys, xe, ye: Integer; sAngle, eAngle, aStep: Extended; var aFound: T2DExtendedArray): Boolean; extdecl;
|
function ps_FindDTMsRotatedSE(DTM: Integer; var Points: TPointArray; xs, ys, xe, ye: Integer; sAngle, eAngle, aStep: Extended; var aFound: T2DExtendedArray): Boolean; extdecl;
|
||||||
begin
|
begin
|
||||||
with CurrThread.Client do
|
with CurrThread.Client do
|
||||||
result := MFinder.FindDTMsRotated(MDTM.GetDTM(DTM), Points, xs, ys, xe, ye,
|
result := MFinder.FindDTMsRotated(MDTM.GetDTM(DTM)^, Points, xs, ys, xe, ye,
|
||||||
sAngle, eAngle, aStep, aFound, false);
|
sAngle, eAngle, aStep, aFound, false);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ end;
|
|||||||
|
|
||||||
function ps_GetDTM(index: Integer) : pDTM; extdecl;
|
function ps_GetDTM(index: Integer) : pDTM; extdecl;
|
||||||
begin
|
begin
|
||||||
result := CurrThread.Client.MDTM.GetDTM(index);
|
result := CurrThread.Client.MDTM.GetDTM(index)^;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function ps_AddDTM(const d: TDTM): Integer; extdecl;
|
function ps_AddDTM(const d: TDTM): Integer; extdecl;
|
||||||
|
@ -587,7 +587,8 @@ procedure TPSThread.OnProcessDirective(Sender: TPSPreProcessor;
|
|||||||
Parser: TPSPascalPreProcessorParser; const Active: Boolean;
|
Parser: TPSPascalPreProcessorParser; const Active: Boolean;
|
||||||
const DirectiveName, DirectiveParam: string; var Continue: Boolean);
|
const DirectiveName, DirectiveParam: string; var Continue: Boolean);
|
||||||
begin
|
begin
|
||||||
Continue := ProcessDirective(DirectiveName, DirectiveParam);
|
if CompareText(DirectiveName, 'LOADLIB') = 0 then
|
||||||
|
Continue := not ProcessDirective(DirectiveName,DirectiveParam);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TPSThread.PSScriptFindUnknownFile(Sender: TObject;
|
function TPSThread.PSScriptFindUnknownFile(Sender: TObject;
|
||||||
|
@ -43,9 +43,10 @@ type
|
|||||||
public
|
public
|
||||||
function AddDTM(const d: TDTM): Integer;
|
function AddDTM(const d: TDTM): Integer;
|
||||||
function AddpDTM(const d: pDTM): Integer;
|
function AddpDTM(const d: pDTM): Integer;
|
||||||
function GetDTM(index: Integer) :pDTM;
|
function GetDTM(index: Integer) :ppDTM;
|
||||||
procedure FreeDTM(DTM: Integer);
|
procedure FreeDTM(DTM: Integer);
|
||||||
function StringToDTM(const S: String): pDTM;
|
function StringToDTM(const S: String): pDTM;
|
||||||
|
function DTMToString(const DTM : PDTM) : string;
|
||||||
procedure SetDTMName(DTM: Integer;const S: String);
|
procedure SetDTMName(DTM: Integer;const S: String);
|
||||||
constructor Create(Owner: TObject);
|
constructor Create(Owner: TObject);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
@ -169,6 +170,15 @@ begin
|
|||||||
result.l := length(result.p);
|
result.l := length(result.p);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
function TMDTM.DTMToString(const DTM: PDTM): string;
|
||||||
|
var
|
||||||
|
i : integer;
|
||||||
|
begin
|
||||||
|
if DTM.l = 0 then
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TMDTM.CheckIndex(index: integer);
|
procedure TMDTM.CheckIndex(index: integer);
|
||||||
begin
|
begin
|
||||||
if (index < 0) or (index >= Length(DTMList)) or (DTMList[Index] = nil) then
|
if (index < 0) or (index >= Length(DTMList)) or (DTMList[Index] = nil) then
|
||||||
@ -210,10 +220,10 @@ end;
|
|||||||
Returns true is succesfull, false if the dtm does not exist.
|
Returns true is succesfull, false if the dtm does not exist.
|
||||||
/\}
|
/\}
|
||||||
|
|
||||||
function TMDTM.GetDTM(index: Integer) :pDTM;
|
function TMDTM.GetDTM(index: Integer) :ppDTM;
|
||||||
begin
|
begin
|
||||||
CheckIndex(index);
|
CheckIndex(index);
|
||||||
result := DTMList[index]^;
|
result := DTMList[index];
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TMDTM.SetDTMName(DTM: Integer;const s: string);
|
procedure TMDTM.SetDTMName(DTM: Integer;const s: string);
|
||||||
|
Loading…
Reference in New Issue
Block a user