mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-20 11:39:36 +01:00
SourceEditor, fixed accidental removed method from SrcEditorInterface
git-svn-id: trunk@24235 -
This commit is contained in:
parent
bd6c06847e
commit
7b938aafdc
@ -864,6 +864,7 @@ type
|
|||||||
deprecated; // deprecated in 0.9.29 March 2010
|
deprecated; // deprecated in 0.9.29 March 2010
|
||||||
procedure GetDesignerUnit(ADesigner: TDesigner;
|
procedure GetDesignerUnit(ADesigner: TDesigner;
|
||||||
var ActiveSourceEditor: TSourceEditor; var ActiveUnitInfo: TUnitInfo); override;
|
var ActiveSourceEditor: TSourceEditor; var ActiveUnitInfo: TUnitInfo); override;
|
||||||
|
function GetProjectFileForProjectEditor(AEditor: TSourceEditorInterface): TLazProjectFile; override;
|
||||||
function GetDesignerForProjectEditor(AEditor: TSourceEditorInterface;
|
function GetDesignerForProjectEditor(AEditor: TSourceEditorInterface;
|
||||||
LoadForm: boolean): TIDesigner; override;
|
LoadForm: boolean): TIDesigner; override;
|
||||||
function GetDesignerWithProjectFile(AFile: TLazProjectFile;
|
function GetDesignerWithProjectFile(AFile: TLazProjectFile;
|
||||||
@ -11544,6 +11545,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TMainIDE.GetProjectFileForProjectEditor(AEditor: TSourceEditorInterface
|
||||||
|
): TLazProjectFile;
|
||||||
|
begin
|
||||||
|
Result := Project1.UnitWithEditorComponent(AEditor);
|
||||||
|
end;
|
||||||
|
|
||||||
function TMainIDE.GetDesignerForProjectEditor(AEditor: TSourceEditorInterface;
|
function TMainIDE.GetDesignerForProjectEditor(AEditor: TSourceEditorInterface;
|
||||||
LoadForm: boolean): TIDesigner;
|
LoadForm: boolean): TIDesigner;
|
||||||
var
|
var
|
||||||
|
|||||||
@ -53,6 +53,7 @@ uses
|
|||||||
SynPluginSyncronizedEditBase,
|
SynPluginSyncronizedEditBase,
|
||||||
// Intf
|
// Intf
|
||||||
SrcEditorIntf, MenuIntf, LazIDEIntf, PackageIntf, IDEHelpIntf, IDEImagesIntf,
|
SrcEditorIntf, MenuIntf, LazIDEIntf, PackageIntf, IDEHelpIntf, IDEImagesIntf,
|
||||||
|
ProjectIntf,
|
||||||
// IDE units
|
// IDE units
|
||||||
IDEDialogs, LazarusIDEStrConsts, IDECommands, EditorOptions,
|
IDEDialogs, LazarusIDEStrConsts, IDECommands, EditorOptions,
|
||||||
WordCompletion, FindReplaceDialog, IDEProcs, IDEOptionDefs,
|
WordCompletion, FindReplaceDialog, IDEProcs, IDEOptionDefs,
|
||||||
@ -386,6 +387,7 @@ type
|
|||||||
procedure SetLines(const AValue: TStrings); override;
|
procedure SetLines(const AValue: TStrings); override;
|
||||||
|
|
||||||
// context
|
// context
|
||||||
|
function GetProjectFile: TLazProjectFile; override;
|
||||||
procedure UpdateProjectFile; override;
|
procedure UpdateProjectFile; override;
|
||||||
function GetDesigner(LoadForm: boolean): TIDesigner; override;
|
function GetDesigner(LoadForm: boolean): TIDesigner; override;
|
||||||
|
|
||||||
@ -3984,6 +3986,11 @@ begin
|
|||||||
FEditor.Lines:=AValue;
|
FEditor.Lines:=AValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TSourceEditor.GetProjectFile: TLazProjectFile;
|
||||||
|
begin
|
||||||
|
Result:=LazarusIDE.GetProjectFileForProjectEditor(Self);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TSourceEditor.UpdateProjectFile;
|
procedure TSourceEditor.UpdateProjectFile;
|
||||||
begin
|
begin
|
||||||
if Assigned(Manager) and Assigned(Manager.OnEditorMoved)
|
if Assigned(Manager) and Assigned(Manager.OnEditorMoved)
|
||||||
@ -6300,7 +6307,6 @@ end;
|
|||||||
Procedure TSourceNotebook.ReloadEditorOptions;
|
Procedure TSourceNotebook.ReloadEditorOptions;
|
||||||
var
|
var
|
||||||
I: integer;
|
I: integer;
|
||||||
h: TLazSyntaxHighlighter;
|
|
||||||
Begin
|
Begin
|
||||||
for i := 0 to EditorCount-1 do
|
for i := 0 to EditorCount-1 do
|
||||||
Editors[i].RefreshEditorSettings;
|
Editors[i].RefreshEditorSettings;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user