mirror of
https://github.com/moparisthebest/Simba
synced 2025-02-07 02:30:19 -05:00
Fixed issue with function list.
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@534 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
ff42373876
commit
7f150e1204
@ -23,6 +23,7 @@ object FunctionListFrame: TFunctionListFrame
|
|||||||
OnDblClick = FunctionListDblClick
|
OnDblClick = FunctionListDblClick
|
||||||
OnDeletion = FunctionListDeletion
|
OnDeletion = FunctionListDeletion
|
||||||
OnMouseDown = FunctionListMouseDown
|
OnMouseDown = FunctionListMouseDown
|
||||||
|
OnMouseUp = FunctionListMouseUp
|
||||||
Options = [tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips]
|
Options = [tvoAutoItemHeight, tvoHideSelection, tvoKeepCollapsedNodes, tvoReadOnly, tvoShowButtons, tvoShowLines, tvoShowRoot, tvoToolTips]
|
||||||
end
|
end
|
||||||
object editSearchList: TEdit
|
object editSearchList: TEdit
|
||||||
|
@ -8,20 +8,20 @@ LazarusResources.Add('TFunctionListFrame','FORMDATA',[
|
|||||||
+'Left'#2#0#6'Height'#3#227#1#3'Top'#2#18#5'Width'#3#182#0#5'Align'#7#8'alCli'
|
+'Left'#2#0#6'Height'#3#227#1#3'Top'#2#18#5'Width'#3#182#0#5'Align'#7#8'alCli'
|
||||||
+'ent'#17'DefaultItemHeight'#2#15#8'ReadOnly'#9#10'ScrollBars'#7#10'ssAutoBot'
|
+'ent'#17'DefaultItemHeight'#2#15#8'ReadOnly'#9#10'ScrollBars'#7#10'ssAutoBot'
|
||||||
+'h'#8'TabOrder'#2#0#10'OnDblClick'#7#20'FunctionListDblClick'#10'OnDeletion'
|
+'h'#8'TabOrder'#2#0#10'OnDblClick'#7#20'FunctionListDblClick'#10'OnDeletion'
|
||||||
+#7#20'FunctionListDeletion'#11'OnMouseDown'#7#21'FunctionListMouseDown'#7'Op'
|
+#7#20'FunctionListDeletion'#11'OnMouseDown'#7#21'FunctionListMouseDown'#9'On'
|
||||||
+'tions'#11#17'tvoAutoItemHeight'#16'tvoHideSelection'#21'tvoKeepCollapsedNod'
|
+'MouseUp'#7#19'FunctionListMouseUp'#7'Options'#11#17'tvoAutoItemHeight'#16't'
|
||||||
+'es'#11'tvoReadOnly'#14'tvoShowButtons'#12'tvoShowLines'#11'tvoShowRoot'#11
|
+'voHideSelection'#21'tvoKeepCollapsedNodes'#11'tvoReadOnly'#14'tvoShowButton'
|
||||||
+'tvoToolTips'#0#0#0#5'TEdit'#14'editSearchList'#4'Left'#2#0#6'Height'#2#21#3
|
+'s'#12'tvoShowLines'#11'tvoShowRoot'#11'tvoToolTips'#0#0#0#5'TEdit'#14'editS'
|
||||||
+'Top'#3#245#1#5'Width'#3#182#0#5'Align'#7#8'alBottom'#8'OnChange'#7#20'editS'
|
+'earchList'#4'Left'#2#0#6'Height'#2#21#3'Top'#3#245#1#5'Width'#3#182#0#5'Ali'
|
||||||
+'earchListChange'#8'TabOrder'#2#1#0#0#6'TLabel'#17'FunctionListLabel'#4'Left'
|
+'gn'#7#8'alBottom'#8'OnChange'#7#20'editSearchListChange'#8'TabOrder'#2#1#0#0
|
||||||
+#2#2#6'Height'#2#14#3'Top'#2#2#5'Width'#3#178#0#5'Align'#7#5'alTop'#9'Alignm'
|
+#6'TLabel'#17'FunctionListLabel'#4'Left'#2#2#6'Height'#2#14#3'Top'#2#2#5'Wid'
|
||||||
+'ent'#7#8'taCenter'#20'BorderSpacing.Around'#2#2#7'Caption'#6#12'Functionlis'
|
+'th'#3#178#0#5'Align'#7#5'alTop'#9'Alignment'#7#8'taCenter'#20'BorderSpacing'
|
||||||
+'t'#10'Font.Style'#11#6'fsBold'#0#11'ParentColor'#8#10'ParentFont'#8#11'OnMo'
|
+'.Around'#2#2#7'Caption'#6#12'Functionlist'#10'Font.Style'#11#6'fsBold'#0#11
|
||||||
+'useDown'#7#26'FunctionListLabelMouseDown'#0#0#12'TSpeedButton'#11'CloseButt'
|
+'ParentColor'#8#10'ParentFont'#8#11'OnMouseDown'#7#26'FunctionListLabelMouse'
|
||||||
+'on'#4'Left'#3#134#0#6'Height'#2#16#3'Top'#2#2#5'Width'#2#16#7'Anchors'#11#5
|
+'Down'#0#0#12'TSpeedButton'#11'CloseButton'#4'Left'#3#134#0#6'Height'#2#16#3
|
||||||
+'akTop'#7'akRight'#0#5'Color'#7#9'clBtnFace'#4'Flat'#9#10'Glyph.Data'#10':'#9
|
+'Top'#2#2#5'Width'#2#16#7'Anchors'#11#5'akTop'#7'akRight'#0#5'Color'#7#9'clB'
|
||||||
+#0#0'6'#9#0#0'BM6'#9#0#0#0#0#0#0'6'#0#0#0'('#0#0#0#24#0#0#0#24#0#0#0#1#0' '#0
|
+'tnFace'#4'Flat'#9#10'Glyph.Data'#10':'#9#0#0'6'#9#0#0'BM6'#9#0#0#0#0#0#0'6'
|
||||||
+#0#0#0#0#0#9#0#0'd'#0#0#0'd'#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
+#0#0#0'('#0#0#0#24#0#0#0#24#0#0#0#1#0' '#0#0#0#0#0#0#9#0#0'd'#0#0#0'd'#0#0#0
|
||||||
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
||||||
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
||||||
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#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0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
||||||
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
||||||
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
|
||||||
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#9'NumGlyphs'#2#0#7'OnClick'#7#16'CloseButtonC'
|
+#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#9
|
||||||
+'lick'#0#0#0
|
+'NumGlyphs'#2#0#7'OnClick'#7#16'CloseButtonClick'#0#0#0
|
||||||
]);
|
]);
|
||||||
|
@ -27,6 +27,8 @@ type
|
|||||||
Shift: TShiftState; X, Y: Integer);
|
Shift: TShiftState; X, Y: Integer);
|
||||||
procedure DockFormOnClose(Sender: TObject; var CloseAction: TCloseAction);
|
procedure DockFormOnClose(Sender: TObject; var CloseAction: TCloseAction);
|
||||||
procedure CloseButtonClick(Sender: TObject);
|
procedure CloseButtonClick(Sender: TObject);
|
||||||
|
procedure FunctionListMouseUp(Sender: TObject; Button: TMouseButton;
|
||||||
|
Shift: TShiftState; X, Y: Integer);
|
||||||
private
|
private
|
||||||
FFilterTree : TTreeView;
|
FFilterTree : TTreeView;
|
||||||
procedure FilterTreeVis(Vis : boolean);
|
procedure FilterTreeVis(Vis : boolean);
|
||||||
@ -127,6 +129,31 @@ begin
|
|||||||
Form1.MenuItemFunctionList.Checked := False;
|
Form1.MenuItemFunctionList.Checked := False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TFunctionListFrame.FunctionListMouseUp(Sender: TObject;
|
||||||
|
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
||||||
|
var
|
||||||
|
N: TTreeNode;
|
||||||
|
MethodInfo : TMethodInfo;
|
||||||
|
begin
|
||||||
|
if InCodeCompletion then
|
||||||
|
begin;
|
||||||
|
Writeln('Not yet implemented');
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
if not (Sender is TTreeView) then
|
||||||
|
exit;
|
||||||
|
N := TTreeView(Sender).GetNodeAt(x, y);
|
||||||
|
if(N = nil)then
|
||||||
|
exit;
|
||||||
|
if button = mbRight then
|
||||||
|
if N.Data <> nil then
|
||||||
|
begin
|
||||||
|
MethodInfo := PMethodInfo(N.data)^;
|
||||||
|
if (MethodInfo.BeginPos > 0) then
|
||||||
|
Form1.CurrScript.SynEdit.SelStart := MethodInfo.BeginPos + 1;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TFunctionListFrame.FilterTreeVis(Vis: boolean);
|
procedure TFunctionListFrame.FilterTreeVis(Vis: boolean);
|
||||||
begin
|
begin
|
||||||
FunctionList.Visible:= not Vis;
|
FunctionList.Visible:= not Vis;
|
||||||
@ -334,6 +361,8 @@ procedure TFunctionListFrame.FunctionListMouseDown(Sender: TObject;
|
|||||||
var
|
var
|
||||||
N: TTreeNode;
|
N: TTreeNode;
|
||||||
begin
|
begin
|
||||||
|
if button = mbRight then
|
||||||
|
exit;
|
||||||
if InCodeCompletion then
|
if InCodeCompletion then
|
||||||
begin;
|
begin;
|
||||||
Writeln('Not yet implemented');
|
Writeln('Not yet implemented');
|
||||||
|
@ -102,7 +102,7 @@ procedure TScriptFrame.SynEditDragDrop(Sender, Source: TObject; X, Y: Integer);
|
|||||||
begin
|
begin
|
||||||
if Source is TFunctionListFrame then
|
if Source is TFunctionListFrame then
|
||||||
if TFunctionListFrame(Source).DraggingNode.Data <> nil then
|
if TFunctionListFrame(Source).DraggingNode.Data <> nil then
|
||||||
SynEdit.InsertTextAtCaret( GetMethodName(PChar(TFunctionListFrame(Source).DraggingNode.Data),true));
|
SynEdit.InsertTextAtCaret( GetMethodName(PMethodInfo(TFunctionListFrame(Source).DraggingNode.Data)^.MethodStr,true));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TScriptFrame.SynEditDragOver(Sender, Source: TObject; X, Y: Integer;
|
procedure TScriptFrame.SynEditDragOver(Sender, Source: TObject; X, Y: Integer;
|
||||||
@ -323,7 +323,7 @@ begin
|
|||||||
ScriptErrorLine:= -1;
|
ScriptErrorLine:= -1;
|
||||||
OwnerSheet.Caption:= ScriptName;
|
OwnerSheet.Caption:= ScriptName;
|
||||||
SynEdit.Options:= SynEdit.Options- [eoGroupUndo];
|
SynEdit.Options:= SynEdit.Options- [eoGroupUndo];
|
||||||
SynEdit.Options:= SynEdit.Options+ [eoGroupUndo];
|
SynEdit.Options:= SynEdit.Options+ [eoGroupUndo,eoPersistentCaret];
|
||||||
SynEdit.IncrementColor.Background := $30D070;
|
SynEdit.IncrementColor.Background := $30D070;
|
||||||
SynEdit.HighlightAllColor.Background:= clYellow;
|
SynEdit.HighlightAllColor.Background:= clYellow;
|
||||||
SynEdit.HighlightAllColor.Foreground:= clDefault;
|
SynEdit.HighlightAllColor.Foreground:= clDefault;
|
||||||
@ -353,4 +353,4 @@ initialization
|
|||||||
{$I framescript.lrs}
|
{$I framescript.lrs}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -430,7 +430,6 @@ object Form1: TForm1
|
|||||||
Height = 257
|
Height = 257
|
||||||
Width = 150
|
Width = 150
|
||||||
OnChange = FunctionListChange
|
OnChange = FunctionListChange
|
||||||
OnDeletion = nil
|
|
||||||
OnEnter = FunctionListEnter
|
OnEnter = FunctionListEnter
|
||||||
OnExit = FunctionListExit
|
OnExit = FunctionListExit
|
||||||
end
|
end
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -43,7 +43,7 @@ uses
|
|||||||
ColorBox , about, framefunctionlist, ocr, updateform, simbasettings;
|
ColorBox , about, framefunctionlist, ocr, updateform, simbasettings;
|
||||||
|
|
||||||
const
|
const
|
||||||
SimbaVersion = 533;
|
SimbaVersion = 534;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -1240,11 +1240,6 @@ begin
|
|||||||
begin
|
begin
|
||||||
MethodInfo := PMethodInfo(node.Data)^;
|
MethodInfo := PMethodInfo(node.Data)^;
|
||||||
StatusBar.Panels[Panel_ScriptPath].Text := MethodInfo.MethodStr;
|
StatusBar.Panels[Panel_ScriptPath].Text := MethodInfo.MethodStr;
|
||||||
if MethodInfo.BeginPos > 0 then
|
|
||||||
begin
|
|
||||||
CurrScript.SynEdit.SelStart := MethodInfo.BeginPos;
|
|
||||||
CurrScript.SynEdit.SetFocus;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
if Node.level = 0 then
|
if Node.level = 0 then
|
||||||
StatusBar.Panels[Panel_ScriptPath].Text := 'Section: ' + Node.Text;
|
StatusBar.Panels[Panel_ScriptPath].Text := 'Section: ' + Node.Text;
|
||||||
|
Loading…
Reference in New Issue
Block a user