Kate
kateundomanager.cpp
Go to the documentation of this file.
41 connect(doc, SIGNAL(viewCreated(KTextEditor::Document*,KTextEditor::View*)), SLOT(viewCreated(KTextEditor::Document*,KTextEditor::View*)));
62 connect(newView, SIGNAL(cursorPositionChanged(KTextEditor::View*,KTextEditor::Cursor)), SLOT(undoCancel()));
73 const KTextEditor::Cursor cursorPosition = activeView() ? activeView()->cursorPosition() : KTextEditor::Cursor::invalid();
74 const KTextEditor::Range selectionRange = activeView() ? activeView()->selectionRange() : KTextEditor::Range::invalid();
90 const KTextEditor::Cursor cursorPosition = activeView() ? activeView()->cursorPosition() : KTextEditor::Cursor::invalid();
91 const KTextEditor::Range selectionRange = activeView() ? activeView()->selectionRange() : KTextEditor::Range::invalid();
236 Q_ASSERT(m_editCurrentUndo == 0); // undo is not supported while we care about notifications (call editEnd() first)
253 Q_ASSERT(m_editCurrentUndo == 0); // redo is not supported while we care about notifications (call editEnd() first)
void undoStart(KTextEditor::Document *)
static Cursor invalid()
void slotTextInserted(int line, int col, const QString &s)
Notify KateUndoManager that text was inserted.
Definition: kateundomanager.cpp:139
void setUndoCursor(const KTextEditor::Cursor &cursor)
Set the undo cursor to cursor.
Definition: kateundo.h:434
virtual KTextEditor::View * activeView() const
Definition: katedocument.h:156
Definition: katemodifiedundo.h:45
Definition: katemodifiedundo.h:102
void slotTextRemoved(int line, int col, const QString &s)
Notify KateUndoManager that text was removed.
Definition: kateundomanager.cpp:145
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: katemodifiedundo.h:120
void setRedoCursor(const KTextEditor::Cursor &cursor)
Set the redo cursor to cursor.
Definition: kateundo.h:440
void slotLineInserted(int line, const QString &s)
Notify KateUndoManager that a line was inserted.
Definition: kateundomanager.cpp:169
static Range invalid()
void setUndoRedoCursorsOfLastGroup(const KTextEditor::Cursor undoCursor, const KTextEditor::Cursor redoCursor)
Used by the swap file recovery, this function afterwards manipulates the undo/redo cursors of the las...
Definition: kateundomanager.cpp:403
virtual Cursor cursorPosition() const =0
uint redoCount() const
Returns how many redo() actions can be performed.
Definition: kateundomanager.cpp:229
Definition: katedocument.h:74
void updateLineModifications()
Definition: kateundomanager.cpp:382
void editEnd(const KTextEditor::Cursor &cursorPosition, const KTextEditor::Range selectionRange)
Definition: kateundo.cpp:299
Definition: katemodifiedundo.h:26
void flagSavedAsModified()
Change all LineSaved flags to LineModified of the line modification system.
Definition: kateundo.cpp:345
void undoSafePoint()
Prevent latest KateUndoGroup from being merged with the next one.
Definition: kateundomanager.cpp:190
void undoEnd(KTextEditor::Document *)
Definition: katemodifiedundo.h:64
void redoEnd(KTextEditor::Document *)
KTextEditor::Cursor lastRedoCursor() const
Returns the redo cursor of the last undo group.
Definition: kateundomanager.cpp:414
virtual const Range & selectionRange() const =0
void isActiveChanged(bool enabled)
void undoChanged()
void slotLineWrapped(int line, int col, int length, bool newLine)
Notify KateUndoManager that a line was wrapped.
Definition: kateundomanager.cpp:157
Definition: kateundo.h:230
void slotMarkLineAutoWrapped(int line, bool autowrapped)
Notify KateUndoManager that a line was marked as autowrapped.
Definition: kateundomanager.cpp:151
void redoStart(KTextEditor::Document *)
uint undoCount() const
Returns how many undo() actions can be performed.
Definition: kateundomanager.cpp:224
void editStart()
Enclose editor actions with editStart() and editEnd() to group them.
Definition: katedocument.cpp:776
void setAllowComplexMerge(bool allow)
Allows or disallows merging of "complex" undo groups.
Definition: kateundomanager.cpp:429
void editStart()
Notify KateUndoManager about the beginning of an edit.
Definition: kateundomanager.cpp:65
void slotLineRemoved(int line, const QString &s)
Notify KateUndoManager that a line was removed.
Definition: kateundomanager.cpp:175
Definition: katemodifiedundo.h:83
void slotLineUnWrapped(int line, int col, int length, bool lineRemoved)
Notify KateUndoManager that a line was un-wrapped.
Definition: kateundomanager.cpp:163
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.