Kate
kateundo.cpp
Go to the documentation of this file.
41 KateEditInsertTextUndo::KateEditInsertTextUndo (KateDocument *document, int line, int col, const QString &text)
49 KateEditRemoveTextUndo::KateEditRemoveTextUndo (KateDocument *document, int line, int col, const QString &text)
57 KateEditWrapLineUndo::KateEditWrapLineUndo (KateDocument *document, int line, int col, int len, bool newLine)
66 KateEditUnWrapLineUndo::KateEditUnWrapLineUndo (KateDocument *document, int line, int col, int len, bool removeLine)
75 KateEditInsertLineUndo::KateEditInsertLineUndo (KateDocument *document, int line, const QString &text)
82 KateEditRemoveLineUndo::KateEditRemoveLineUndo (KateDocument *document, int line, const QString &text)
238 KateUndoGroup::KateUndoGroup (KateUndoManager *manager, const KTextEditor::Cursor &cursorPosition, const KTextEditor::Range &selectionRange)
299 void KateUndoGroup::editEnd(const KTextEditor::Cursor &cursorPosition, const KTextEditor::Range selectionRange)
virtual bool mergeWith(const KateUndo *undo)
merge an undo item Saves a bit of memory and potentially many calls when undo/redoing.
Definition: kateundo.cpp:105
Definition: kateundo.h:121
Definition: kateundo.h:124
Definition: kateundo.h:126
QString & prepend(QChar ch)
bool merge(KateUndoGroup *newGroup, bool complex)
merge this group with an other
Definition: kateundo.cpp:315
Definition: kateundo.h:190
Definition: kateundo.h:150
Definition: kateundo.h:125
Definition: kateundo.h:128
int size() const
Definition: kateundo.h:122
void append(const T &value)
KateEditInsertTextUndo(KateDocument *document, int line, int col, const QString &text)
Definition: kateundo.cpp:41
bool editInsertText(int line, int col, const QString &s)
Add a string in the given line/column.
Definition: katedocument.cpp:971
Definition: kateundo.h:123
bool isEmpty() const
Definition: kateundo.h:68
KateEditInsertLineUndo(KateDocument *document, int line, const QString &text)
Definition: kateundo.cpp:75
virtual void updateRedoSavedOnDiskFlag(QBitArray &lines)
Definition: kateundo.h:144
KateEditUnWrapLineUndo(KateDocument *document, int line, int col, int len, bool removeLine)
Definition: kateundo.cpp:66
KateEditRemoveTextUndo(KateDocument *document, int line, int col, const QString &text)
Definition: kateundo.cpp:49
Definition: katedocument.h:74
void editEnd(const KTextEditor::Cursor &cursorPosition, const KTextEditor::Range selectionRange)
Definition: kateundo.cpp:299
KateEditWrapLineUndo(KateDocument *document, int line, int col, int len, bool newLine)
Definition: kateundo.cpp:57
void flagSavedAsModified()
Change all LineSaved flags to LineModified of the line modification system.
Definition: kateundo.cpp:345
bool editWrapLine(int line, int col, bool newLine=true, bool *newLineAdded=0)
Wrap line.
Definition: katedocument.cpp:1083
bool editRemoveText(int line, int col, int len)
Remove a string in the given line/column.
Definition: katedocument.cpp:1012
Definition: kateundo.h:127
T takeFirst()
virtual void updateUndoSavedOnDiskFlag(QBitArray &lines)
Definition: kateundo.h:143
T & last()
KateEditRemoveLineUndo(KateDocument *document, int line, const QString &text)
Definition: kateundo.cpp:82
bool editUnWrapLine(int line, bool removeLine=true, int length=0)
Unwrap line.
Definition: katedocument.cpp:1153
bool editInsertLine(int line, const QString &s)
Insert a string at the given line.
Definition: katedocument.cpp:1223
bool editMarkLineAutoWrapped(int line, bool autowrapped)
Mark line as autowrapped.
Definition: katedocument.cpp:1056
KateUndoGroup(KateUndoManager *manager, const KTextEditor::Cursor &cursorPosition, const KTextEditor::Range &selectionRange)
Constructor.
Definition: kateundo.cpp:238
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.