KTextEditor
katetextfolding.h
68 * @return on success, id of new range >= 0, else -1, we return no pointer as folding ranges might be auto-deleted internally!
69 * the ids are stable for one Kate::TextFolding, e.g. you can rely in unit tests that you get 0,1,.... for successfully created ranges!
94 * @param remove should the range be removed from the folding after unfolding? ranges that are not persistent auto-remove themself on unfolding
104 * @param foldedRangeId if the line is not visible and that pointer is not 0, will be filled with id of range hiding the line or -1
155 QList<QPair<qint64, FoldingRangeFlags>> foldingRangesForParentRange(qint64 parentRangeId = -1) const;
271 static void exportFoldingRanges(const TextFolding::FoldingRange::Vector &ranges, QJsonArray &folds);
291 * @return success, if false, newRange should be deleted afterwards, else it is registered internally
294 bool insertNewFoldingRange(FoldingRange *parent, TextFolding::FoldingRange::Vector &existingRanges, TextFolding::FoldingRange *newRange);
298 * @param newRange new folding range that was inserted, will already contain its new nested ranges, if any!
306 * @param oldRange new folding range that is removed, will still contain its new nested ranges, if any!
318 void appendFoldedRanges(TextFolding::FoldingRange::Vector &newFoldedFoldingRanges, const TextFolding::FoldingRange::Vector &ranges) const;
353 * Internal helper that queries which folding ranges start at the given line and returns the id + flags for all
360 void foldingRangesStartingOnLine(QList<QPair<qint64, FoldingRangeFlags>> &results, const TextFolding::FoldingRange::Vector &ranges, int line) const;
An object representing a section of text, from one Cursor to another.
Definition include/ktexteditor/range.h:49
void foldingRangesChanged()
If the folding state of existing ranges changes or ranges are added/removed, this signal is emitted.
TextFolding(TextBuffer &buffer)
Create folding object for given buffer.
Definition katetextfolding.cpp:34
Q_SCRIPTABLE QString start(QString train="")
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.