mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 20:29:35 +02:00
IDE: save sessio, changin folding in editor marks session as changed
git-svn-id: trunk@42426 -
This commit is contained in:
parent
a2561585c7
commit
4daf47a75d
@ -185,6 +185,7 @@ type
|
||||
// Todo: FCustomHighlighter is only ever set to false, and not stored in XML
|
||||
FCustomHighlighter: boolean; // do not change highlighter on file extension change
|
||||
FSyntaxHighlighter: TLazSyntaxHighlighter;
|
||||
procedure SetFoldState(AValue: String);
|
||||
procedure SetPageIndex(const AValue: Integer);
|
||||
procedure SetIsVisibleTab(const AValue: Boolean);
|
||||
procedure SetWindowIndex(const AValue: Integer);
|
||||
@ -204,7 +205,7 @@ type
|
||||
property WindowID: Integer read FWindowID write SetWindowIndex;
|
||||
property TopLine: Integer read FTopLine write FTopLine;
|
||||
property CursorPos: TPoint read FCursorPos write FCursorPos;
|
||||
property FoldState: String read FFoldState write FFoldState;
|
||||
property FoldState: String read FFoldState write SetFoldState;
|
||||
property IsLocked: Boolean read FIsLocked write FIsLocked;
|
||||
property CustomHighlighter: Boolean read FCustomHighlighter write FCustomHighlighter; // SetCustomHighlighter
|
||||
property SyntaxHighlighter: TLazSyntaxHighlighter read FSyntaxHighlighter write FSyntaxHighlighter; // SetSyntaxHighlighter
|
||||
@ -1189,6 +1190,13 @@ begin
|
||||
FUnitInfo.SessionModified := True;
|
||||
end;
|
||||
|
||||
procedure TUnitEditorInfo.SetFoldState(AValue: String);
|
||||
begin
|
||||
if FFoldState = AValue then Exit;
|
||||
FFoldState := AValue;
|
||||
FUnitInfo.SessionModified := True;
|
||||
end;
|
||||
|
||||
procedure TUnitEditorInfo.SetIsVisibleTab(const AValue: Boolean);
|
||||
begin
|
||||
if FIsVisibleTab = AValue then exit;
|
||||
|
Loading…
Reference in New Issue
Block a user