diff options
author | nyamatongwe <unknown> | 2013-04-21 16:13:28 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-04-21 16:13:28 +1000 |
commit | abbece7c96a9cf85705e09b22239f37f727c5fba (patch) | |
tree | 9c8cb2db529f372c47f4bda3973bca30a66ee2dd /src/Editor.h | |
parent | c377165a857db1c15270ecf673fdd3f323e9bebe (diff) | |
download | scintilla-mirror-abbece7c96a9cf85705e09b22239f37f727c5fba.tar.gz |
Implement commonly needed folding methods based on code from SciTE.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h index 4e6c7aee9..935fe1513 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -569,10 +569,16 @@ protected: // ScintillaBase subclass needs access to much of Editor void SetAnnotationVisible(int visible); - void Expand(int &line, bool doExpand); - void ToggleContraction(int line); + int ExpandLine(int line); + void SetFoldExpanded(int lineDoc, bool expanded); + void FoldLine(int line, int action); + void FoldExpand(int line, int action, int level); int ContractedFoldNext(int lineStart); void EnsureLineVisible(int lineDoc, bool enforcePolicy); + void FoldChanged(int line, int levelNow, int levelPrev); + void NeedShown(int pos, int len); + void FoldAll(int action); + int GetTag(char *tagValue, int tagNumber); int ReplaceTarget(bool replacePatterns, const char *text, int length=-1); |