mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-22 09:12:19 -05:00
Compile fix for latest LCL + you can now fold comments.
This commit is contained in:
parent
cd8d3a7a84
commit
4810850ad1
@ -1,14 +1,12 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
<Version Value="7"/>
|
<Version Value="9"/>
|
||||||
<General>
|
<General>
|
||||||
<Flags>
|
<Flags>
|
||||||
<LRSInOutputDirectory Value="False"/>
|
<LRSInOutputDirectory Value="False"/>
|
||||||
</Flags>
|
</Flags>
|
||||||
<SessionStorage Value="InIDEConfig"/>
|
<SessionStorage Value="InIDEConfig"/>
|
||||||
<MainUnit Value="0"/>
|
|
||||||
<TargetFileExt Value=""/>
|
|
||||||
<Title Value="Simba"/>
|
<Title Value="Simba"/>
|
||||||
<ResourceType Value="res"/>
|
<ResourceType Value="res"/>
|
||||||
<UseXPManifest Value="True"/>
|
<UseXPManifest Value="True"/>
|
||||||
@ -17,7 +15,7 @@
|
|||||||
<VersionInfo>
|
<VersionInfo>
|
||||||
<Language Value="0419"/>
|
<Language Value="0419"/>
|
||||||
<CharSet Value="04B0"/>
|
<CharSet Value="04B0"/>
|
||||||
<StringTable Comments="" CompanyName="" FileDescription="" FileVersion="0.0.0.0" InternalName="" LegalCopyright="" LegalTrademarks="" OriginalFilename="" ProductName="" ProductVersion=""/>
|
<StringTable ProductVersion=""/>
|
||||||
</VersionInfo>
|
</VersionInfo>
|
||||||
<PublishOptions>
|
<PublishOptions>
|
||||||
<Version Value="2"/>
|
<Version Value="2"/>
|
||||||
@ -298,7 +296,7 @@
|
|||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
<Version Value="8"/>
|
<Version Value="9"/>
|
||||||
<Target>
|
<Target>
|
||||||
<Filename Value="../../Simba"/>
|
<Filename Value="../../Simba"/>
|
||||||
</Target>
|
</Target>
|
||||||
@ -307,6 +305,11 @@
|
|||||||
<OtherUnitFiles Value="$(ProjPath)/;$(ProjPath)../../Units/MMLCore/;$(ProjPath)../../Units/MMLAddon/;$(ProjPath)../../Units/PascalScript/;$(ProjPath)../../Units/Misc/;$(ProjPath)../../Units/MMLAddon/PSInc/;$(ProjPath)../../Units/Linux/;$(ProjPath)../../Units/Synapse/;$(LazarusDir)/components/mouseandkeyinput/"/>
|
<OtherUnitFiles Value="$(ProjPath)/;$(ProjPath)../../Units/MMLCore/;$(ProjPath)../../Units/MMLAddon/;$(ProjPath)../../Units/PascalScript/;$(ProjPath)../../Units/Misc/;$(ProjPath)../../Units/MMLAddon/PSInc/;$(ProjPath)../../Units/Linux/;$(ProjPath)../../Units/Synapse/;$(LazarusDir)/components/mouseandkeyinput/"/>
|
||||||
<UnitOutputDirectory Value="$(ProjPath)../../build/$(TargetOS)"/>
|
<UnitOutputDirectory Value="$(ProjPath)../../build/$(TargetOS)"/>
|
||||||
</SearchPaths>
|
</SearchPaths>
|
||||||
|
<Parsing>
|
||||||
|
<SyntaxOptions>
|
||||||
|
<UseAnsiStrings Value="False"/>
|
||||||
|
</SyntaxOptions>
|
||||||
|
</Parsing>
|
||||||
<CodeGeneration>
|
<CodeGeneration>
|
||||||
<Optimizations>
|
<Optimizations>
|
||||||
<VariablesInRegisters Value="True"/>
|
<VariablesInRegisters Value="True"/>
|
||||||
|
@ -52,6 +52,30 @@ object ScriptFrame: TScriptFrame
|
|||||||
Option = 0
|
Option = 0
|
||||||
Priority = 0
|
Priority = 0
|
||||||
end>
|
end>
|
||||||
|
RightGutter.Width = 0
|
||||||
|
RightGutter.MouseActions = <
|
||||||
|
item
|
||||||
|
Shift = []
|
||||||
|
ShiftMask = []
|
||||||
|
Button = mbLeft
|
||||||
|
ClickCount = ccAny
|
||||||
|
ClickDir = cdDown
|
||||||
|
Command = 13
|
||||||
|
MoveCaret = False
|
||||||
|
Option = 0
|
||||||
|
Priority = 0
|
||||||
|
end
|
||||||
|
item
|
||||||
|
Shift = []
|
||||||
|
ShiftMask = []
|
||||||
|
Button = mbRight
|
||||||
|
ClickCount = ccSingle
|
||||||
|
ClickDir = cdUp
|
||||||
|
Command = 12
|
||||||
|
MoveCaret = False
|
||||||
|
Option = 0
|
||||||
|
Priority = 0
|
||||||
|
end>
|
||||||
Keystrokes = <
|
Keystrokes = <
|
||||||
item
|
item
|
||||||
Command = ecUp
|
Command = ecUp
|
||||||
@ -600,7 +624,7 @@ object ScriptFrame: TScriptFrame
|
|||||||
OnStatusChange = SynEditStatusChange
|
OnStatusChange = SynEditStatusChange
|
||||||
inline TSynGutterPartList
|
inline TSynGutterPartList
|
||||||
object TSynGutterMarks
|
object TSynGutterMarks
|
||||||
Width = 23
|
Width = 24
|
||||||
end
|
end
|
||||||
object TSynGutterLineNumber
|
object TSynGutterLineNumber
|
||||||
Width = 17
|
Width = 17
|
||||||
@ -705,5 +729,7 @@ object ScriptFrame: TScriptFrame
|
|||||||
end>
|
end>
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
inline SynRightGutterPartList1: TSynRightGutterPartList
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -93,7 +93,7 @@ type
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
uses
|
uses
|
||||||
SimbaUnit, MufasaTypes, SynEditTypes, LCLIntF, StrUtils,framefunctionlist;
|
SimbaUnit, MufasaTypes, SynEditTypes, SynEditHighlighterFoldBase, LCLIntF, StrUtils,framefunctionlist;
|
||||||
|
|
||||||
function WordAtCaret(e: TSynEdit; var sp, ep: Integer; Start: Integer = -1; Offset: Integer = 0): string;
|
function WordAtCaret(e: TSynEdit; var sp, ep: Integer; Start: Integer = -1; Offset: Integer = 0): string;
|
||||||
var
|
var
|
||||||
@ -496,7 +496,7 @@ begin
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
if SimbaForm.CodeCompletionForm.Visible then
|
if SimbaForm.CodeCompletionForm.Visible then
|
||||||
if (scAll in Changes) or (scTopLine in Changes) then
|
if {(scAll in Changes) or} (scTopLine in Changes) then
|
||||||
SimbaForm.CodeCompletionForm.Hide
|
SimbaForm.CodeCompletionForm.Hide
|
||||||
else if (scCaretX in Changes) or (scCaretY in Changes) or (scSelection in Changes) or (scModified in Changes) then
|
else if (scCaretX in Changes) or (scCaretY in Changes) or (scSelection in Changes) or (scModified in Changes) then
|
||||||
begin
|
begin
|
||||||
@ -597,8 +597,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
constructor TScriptFrame.Create(TheOwner: TComponent);
|
constructor TScriptFrame.Create(TheOwner: TComponent);
|
||||||
|
const
|
||||||
|
AdditionalFolds:TPascalCodeFoldBlockTypes = [cfbtSlashComment,cfbtBorCommand,cfbtAnsiComment];
|
||||||
var
|
var
|
||||||
MarkCaret : TSynEditMarkupHighlightAllCaret;
|
MarkCaret : TSynEditMarkupHighlightAllCaret;
|
||||||
|
I : TPascalCodeFoldBlockType;
|
||||||
begin
|
begin
|
||||||
inherited Create(TheOwner);
|
inherited Create(TheOwner);
|
||||||
SyncEdit := TSynPluginSyncroEdit.Create(SynEdit);
|
SyncEdit := TSynPluginSyncroEdit.Create(SynEdit);
|
||||||
@ -618,6 +621,10 @@ begin
|
|||||||
SynEdit.Highlighter := SimbaForm.CurrHighlighter;
|
SynEdit.Highlighter := SimbaForm.CurrHighlighter;
|
||||||
SynEdit.Options := SynEdit.Options + [eoTabIndent, eoKeepCaretX, eoDragDropEditing] - [eoSmartTabs];
|
SynEdit.Options := SynEdit.Options + [eoTabIndent, eoKeepCaretX, eoDragDropEditing] - [eoSmartTabs];
|
||||||
SynEdit.Options2 := SynEdit.Options2 + [eoCaretSkipsSelection];
|
SynEdit.Options2 := SynEdit.Options2 + [eoCaretSkipsSelection];
|
||||||
|
SynEdit.Gutter.CodeFoldPart.MarkupInfo.Background:= clWhite;
|
||||||
|
for i := low(i) to high(i) do
|
||||||
|
if i in AdditionalFolds then
|
||||||
|
TSynCustomFoldHighlighter(SynEdit.Highlighter).FoldConfig[ord(i)].Enabled:= True;
|
||||||
SynEdit.IncrementColor.Background := $30D070;
|
SynEdit.IncrementColor.Background := $30D070;
|
||||||
SynEdit.HighlightAllColor.Background:= clYellow;
|
SynEdit.HighlightAllColor.Background:= clYellow;
|
||||||
SynEdit.HighlightAllColor.Foreground:= clDefault;
|
SynEdit.HighlightAllColor.Foreground:= clDefault;
|
||||||
|
@ -388,7 +388,7 @@ object SimbaForm: TSimbaForm
|
|||||||
end
|
end
|
||||||
object LabeledEditSearch: TLabeledEdit
|
object LabeledEditSearch: TLabeledEdit
|
||||||
Left = 104
|
Left = 104
|
||||||
Height = 23
|
Height = 21
|
||||||
Top = 6
|
Top = 6
|
||||||
Width = 80
|
Width = 80
|
||||||
EditLabel.AnchorSideLeft.Control = LabeledEditSearch
|
EditLabel.AnchorSideLeft.Control = LabeledEditSearch
|
||||||
@ -396,10 +396,10 @@ object SimbaForm: TSimbaForm
|
|||||||
EditLabel.AnchorSideTop.Side = asrCenter
|
EditLabel.AnchorSideTop.Side = asrCenter
|
||||||
EditLabel.AnchorSideRight.Control = LabeledEditSearch
|
EditLabel.AnchorSideRight.Control = LabeledEditSearch
|
||||||
EditLabel.AnchorSideBottom.Control = LabeledEditSearch
|
EditLabel.AnchorSideBottom.Control = LabeledEditSearch
|
||||||
EditLabel.Left = 71
|
EditLabel.Left = 73
|
||||||
EditLabel.Height = 16
|
EditLabel.Height = 14
|
||||||
EditLabel.Top = 9
|
EditLabel.Top = 9
|
||||||
EditLabel.Width = 30
|
EditLabel.Width = 28
|
||||||
EditLabel.Caption = 'Find: '
|
EditLabel.Caption = 'Find: '
|
||||||
EditLabel.ParentColor = False
|
EditLabel.ParentColor = False
|
||||||
LabelPosition = lpLeft
|
LabelPosition = lpLeft
|
||||||
@ -412,9 +412,9 @@ object SimbaForm: TSimbaForm
|
|||||||
end
|
end
|
||||||
object CheckBoxMatchCase: TCheckBox
|
object CheckBoxMatchCase: TCheckBox
|
||||||
Left = 320
|
Left = 320
|
||||||
Height = 19
|
Height = 17
|
||||||
Top = 7
|
Top = 7
|
||||||
Width = 80
|
Width = 72
|
||||||
Caption = 'Match case'
|
Caption = 'Match case'
|
||||||
OnClick = CheckBoxMatchCaseClick
|
OnClick = CheckBoxMatchCaseClick
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
@ -436,24 +436,20 @@ object SimbaForm: TSimbaForm
|
|||||||
OnEndDock = nil
|
OnEndDock = nil
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
inherited FunctionList: TTreeView
|
inherited FunctionList: TTreeView
|
||||||
Height = 319
|
Height = 323
|
||||||
Top = 20
|
|
||||||
Width = 150
|
Width = 150
|
||||||
DefaultItemHeight = 17
|
|
||||||
OnChange = FunctionListChange
|
OnChange = FunctionListChange
|
||||||
OnEnter = FunctionListEnter
|
OnEnter = FunctionListEnter
|
||||||
OnExit = FunctionListExit
|
OnExit = FunctionListExit
|
||||||
end
|
end
|
||||||
inherited editSearchList: TEdit
|
inherited editSearchList: TEdit
|
||||||
Height = 23
|
Top = 341
|
||||||
Top = 339
|
|
||||||
Width = 150
|
Width = 150
|
||||||
OnExit = editSearchListExit
|
OnExit = editSearchListExit
|
||||||
OnKeyDown = editSearchListKeyDown
|
OnKeyDown = editSearchListKeyDown
|
||||||
OnKeyPress = editSearchListKeyPress
|
OnKeyPress = editSearchListKeyPress
|
||||||
end
|
end
|
||||||
inherited FunctionListLabel: TLabel
|
inherited FunctionListLabel: TLabel
|
||||||
Height = 16
|
|
||||||
Width = 146
|
Width = 146
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1263,7 +1259,7 @@ object SimbaForm: TSimbaForm
|
|||||||
OnClick = MenuItemFunctionListClick
|
OnClick = MenuItemFunctionListClick
|
||||||
end
|
end
|
||||||
object MenuItemExtensions: TMenuItem
|
object MenuItemExtensions: TMenuItem
|
||||||
Caption = '&Extensions'
|
Action = ActionExtensions
|
||||||
OnClick = MenuItemExtensionsClick
|
OnClick = MenuItemExtensionsClick
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -2976,6 +2972,11 @@ object SimbaForm: TSimbaForm
|
|||||||
ImageIndex = 27
|
ImageIndex = 27
|
||||||
OnExecute = ActionConsoleExecute
|
OnExecute = ActionConsoleExecute
|
||||||
end
|
end
|
||||||
|
object ActionExtensions: TAction
|
||||||
|
Caption = '&Extensions'
|
||||||
|
OnExecute = ActionExtensionsExecute
|
||||||
|
OnUpdate = ActionExtensionsUpdate
|
||||||
|
end
|
||||||
end
|
end
|
||||||
object DebugTimer: TTimer
|
object DebugTimer: TTimer
|
||||||
OnTimer = ProcessDebugStream
|
OnTimer = ProcessDebugStream
|
||||||
|
Loading…
Reference in New Issue
Block a user