mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 00:59:30 +02:00
MG: fixed source ediotr statusbar filename
git-svn-id: trunk@323 -
This commit is contained in:
parent
1d13fae63c
commit
891500728f
@ -2190,6 +2190,7 @@ begin
|
||||
NewSrcEdit.EditorComponent.CaretXY:=NewUnitInfo.CursorPos;
|
||||
NewSrcEdit.EditorComponent.TopLine:=NewUnitInfo.TopLine;
|
||||
NewSrcEdit.EditorComponent.LeftChar:=1;
|
||||
NewSrcEdit.Filename:=NewUnitInfo.Filename;
|
||||
|
||||
NewUnitInfo.Loaded:=true;
|
||||
// read form data
|
||||
@ -2270,8 +2271,9 @@ begin
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
SourceNoteBook.UpdateStatusBar;
|
||||
Result:=mrOk;
|
||||
//writeln('TMainIDE.DoOpenEditorFile END "',AFilename,'"');
|
||||
//writeln('TMainIDE.DoOpenEditorFile END "',AFilename,'" NewSrcEdit.Filename=',NewSrcEdit.Filename);
|
||||
end;
|
||||
|
||||
function TMainIDE.DoOpenMainUnit(ProjectLoading: boolean): TModalResult;
|
||||
@ -3721,8 +3723,8 @@ end.
|
||||
{ =============================================================================
|
||||
|
||||
$Log$
|
||||
Revision 1.112 2001/07/31 18:40:23 lazarus
|
||||
MG: added unit info, arrow xpms, and many changes from jens arm
|
||||
Revision 1.113 2001/07/31 18:57:48 lazarus
|
||||
MG: fixed source ediotr statusbar filename
|
||||
|
||||
Revision 1.111 2001/07/29 20:33:23 lazarus
|
||||
MG: bugfixed event propeditor, DoJumpToMethod with searchpath
|
||||
|
@ -250,7 +250,6 @@ type
|
||||
|
||||
Procedure NextEditor;
|
||||
Procedure PrevEditor;
|
||||
procedure UpdateStatusBar;
|
||||
MarksImgList : TImageList;
|
||||
Procedure ProcessParentCommand(Sender: TObject;
|
||||
var Command: TSynEditorCommand; var AChar: char; Data: pointer);
|
||||
@ -275,6 +274,7 @@ type
|
||||
Function SetSourceForUnit(UnitName : String; NewSource : TStrings) : Boolean;
|
||||
Function FindUniquePageName(FileName:string; IgnorePageIndex:integer):string;
|
||||
function SomethingModified: boolean;
|
||||
procedure UpdateStatusBar;
|
||||
|
||||
Procedure DisplayFormforActivePage;
|
||||
Procedure DisplayCodeforControl(Control : TObject);
|
||||
@ -2357,7 +2357,8 @@ begin
|
||||
TempEditor := GetActiveSE;
|
||||
if TempEditor = nil then Exit;
|
||||
TempEditor.ErrorLine:=-1;
|
||||
Statusbar.Panels[3].Text := ExtractFileName(TempEditor.Filename);
|
||||
writeln('TSourceNotebook.UpdateStatusBar ',TempEditor.Filename);
|
||||
Statusbar.Panels[3].Text := TempEditor.Filename;
|
||||
|
||||
If TempEditor.Modified then
|
||||
StatusBar.Panels[1].Text := 'Modified'
|
||||
|
Loading…
Reference in New Issue
Block a user