From ab19b9dde0342c268d49d19777ca811b14810523 Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 16 Apr 2010 17:11:58 +0000 Subject: [PATCH] EditorOpts: Fold config for diff git-svn-id: trunk@24651 - --- ide/editoroptions.pp | 21 ++++++++++++++++++++- ide/lazarusidestrconsts.pas | 4 ++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/ide/editoroptions.pp b/ide/editoroptions.pp index d2c986518d..984eae6343 100644 --- a/ide/editoroptions.pp +++ b/ide/editoroptions.pp @@ -690,6 +690,25 @@ const ) ); + EditorOptionsFoldInfoDiff: Array [0..2] of TEditorOptionsFoldInfo + = ( + ( Name: dlgFoldDiffFile; + Xml: 'File'; + Index: ord(cfbtDiffFile); + Enabled: True + ), + ( Name: dlgFoldDiffChunk; + Xml: 'Chunk'; + Index: ord(cfbtDiffChunk); + Enabled: True + ), + ( Name: dlgFoldDiffChunkSect; + Xml: 'ChunkSect'; + Index: ord(cfbtDiffChunkSect); + Enabled: True + ) + ); + EditorOptionsFoldDefaults: array[TLazSyntaxHighlighter] of TEditorOptionsFoldRecord = ( (Count: 0; Info: nil), // none @@ -707,7 +726,7 @@ const (Count: 0; Info: nil), // php (Count: 0; Info: nil), // sql (Count: 0; Info: nil), // jscript - (Count: 0; Info: nil) // Diff + (Count: 3; Info: {$IFDEF FPC}@{$ENDIF}EditorOptionsFoldInfoDiff[0]) // Diff ); const diff --git a/ide/lazarusidestrconsts.pas b/ide/lazarusidestrconsts.pas index 73d3206e69..87e175bef7 100644 --- a/ide/lazarusidestrconsts.pas +++ b/ide/lazarusidestrconsts.pas @@ -1464,6 +1464,10 @@ resourcestring dlgFoldHtmlComment = 'Comment'; dlgFoldHtmlAsp = 'ASP'; + dlgFoldDiffFile = 'File'; + dlgFoldDiffChunk = 'Chunk'; + dlgFoldDiffChunkSect = 'Chunk section'; + dlgMouseFoldExpFoldOne = 'Fold One (All Expanded)'; dlgMouseFoldExpFoldAll = 'Fold All (All Expanded)'; dlgMouseFoldColFoldOne = 'Fold One (Some Colapsed)';