diff options
author | nyamatongwe <devnull@localhost> | 2013-04-21 16:13:28 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-04-21 16:13:28 +1000 |
commit | 341e163afa67923ca42e083d176c726ea5ed5d3e (patch) | |
tree | cd5b0bc6f9bfd31848397972e4644a6ceb0b05ae /src/Editor.h | |
parent | b4c56acc3db4184664ce16ea80cbe6ea8d806bf4 (diff) | |
download | scintilla-mirror-341e163afa67923ca42e083d176c726ea5ed5d3e.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); |