Kate
Kate::SwapFile Class Reference
Class for tracking editing actions. More...
#include <kateswapfile.h>

Public Slots | |
| void | configChanged () |
| void | discard () |
| bool | recover (QDataStream &) |
| void | recover () |
Signals | |
| void | swapFileBroken () |
| void | swapFileFound () |
| void | swapFileHandled () |
Public Member Functions | |
| SwapFile (KateDocument *document) | |
| ~SwapFile () | |
| void | fileClosed () |
| QString | fileName () |
| bool | shouldRecover () const |
Protected Slots | |
| void | fileLoaded (const QString &filename) |
| void | fileSaved (const QString &filename) |
| void | finishEditing () |
| void | insertText (const KTextEditor::Cursor &position, const QString &text) |
| void | removeText (const KTextEditor::Range &range) |
| void | startEditing () |
| void | unwrapLine (int line) |
| void | wrapLine (const KTextEditor::Cursor &position) |
| void | writeFileToDisk () |
Detailed Description
Class for tracking editing actions.
In case Kate crashes, this can be used to replay all edit actions to recover the lost data.
Definition at line 44 of file kateswapfile.h.
Constructor & Destructor Documentation
| Kate::SwapFile::SwapFile | ( | KateDocument * | document | ) | [explicit] |
Definition at line 49 of file kateswapfile.cpp.
| Kate::SwapFile::~SwapFile | ( | ) |
Definition at line 70 of file kateswapfile.cpp.
Member Function Documentation
| void Kate::SwapFile::configChanged | ( | ) | [slot] |
Definition at line 75 of file kateswapfile.cpp.
| void Kate::SwapFile::discard | ( | ) | [slot] |
Definition at line 400 of file kateswapfile.cpp.
| void Kate::SwapFile::fileClosed | ( | ) |
Definition at line 109 of file kateswapfile.cpp.
| void Kate::SwapFile::fileLoaded | ( | const QString & | filename | ) | [protected, slot] |
Definition at line 118 of file kateswapfile.cpp.
| QString Kate::SwapFile::fileName | ( | ) |
Definition at line 429 of file kateswapfile.cpp.
| void Kate::SwapFile::fileSaved | ( | const QString & | filename | ) | [protected, slot] |
Definition at line 289 of file kateswapfile.cpp.
| void Kate::SwapFile::finishEditing | ( | ) | [protected, slot] |
Definition at line 325 of file kateswapfile.cpp.
| void Kate::SwapFile::insertText | ( | const KTextEditor::Cursor & | position, |
| const QString & | text | ||
| ) | [protected, slot] |
Definition at line 364 of file kateswapfile.cpp.
| bool Kate::SwapFile::recover | ( | QDataStream & | stream | ) | [slot] |
Definition at line 177 of file kateswapfile.cpp.
| void Kate::SwapFile::recover | ( | ) | [slot] |
Definition at line 140 of file kateswapfile.cpp.
| void Kate::SwapFile::removeText | ( | const KTextEditor::Range & | range | ) | [protected, slot] |
Definition at line 376 of file kateswapfile.cpp.
| bool Kate::SwapFile::shouldRecover | ( | ) | const |
Definition at line 391 of file kateswapfile.cpp.
| void Kate::SwapFile::startEditing | ( | ) | [protected, slot] |
Definition at line 300 of file kateswapfile.cpp.
| void Kate::SwapFile::swapFileBroken | ( | ) | [signal] |
| void Kate::SwapFile::swapFileFound | ( | ) | [signal] |
| void Kate::SwapFile::swapFileHandled | ( | ) | [signal] |
| void Kate::SwapFile::unwrapLine | ( | int | line | ) | [protected, slot] |
Definition at line 352 of file kateswapfile.cpp.
| void Kate::SwapFile::wrapLine | ( | const KTextEditor::Cursor & | position | ) | [protected, slot] |
Definition at line 340 of file kateswapfile.cpp.
| void Kate::SwapFile::writeFileToDisk | ( | ) | [protected, slot] |
Definition at line 453 of file kateswapfile.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference