• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

  • Kate
  • SwapFile
Public Slots | Public Member Functions | Protected Slots | List of all members
Kate::SwapFile Class Reference

#include <kateswapfile.h>

Inheritance diagram for Kate::SwapFile:
Inheritance graph
[legend]

Public Slots

void configChanged ()
 
void discard ()
 
void recover ()
 
bool recover (QDataStream &, bool checkDigest=true)
 
void showDiff ()
 
void showSwapFileMessage ()
 

Public Member Functions

 SwapFile (KateDocument *document)
 
 ~SwapFile ()
 
KateDocument * document ()
 
void fileClosed ()
 
QString fileName ()
 
bool shouldRecover () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () 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 modifiedChanged ()
 
void removeText (const KTextEditor::Range &range)
 
void startEditing ()
 
void unwrapLine (int line)
 
void wrapLine (const KTextEditor::Cursor &position)
 
void writeFileToDisk ()
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

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 46 of file kateswapfile.h.

Constructor & Destructor Documentation

Kate::SwapFile::SwapFile ( KateDocument *  document)
explicit

Definition at line 56 of file kateswapfile.cpp.

Kate::SwapFile::~SwapFile ( )

Definition at line 78 of file kateswapfile.cpp.

Member Function Documentation

void Kate::SwapFile::configChanged ( )
slot

Definition at line 86 of file kateswapfile.cpp.

void Kate::SwapFile::discard ( )
slot

Definition at line 527 of file kateswapfile.cpp.

KateDocument * Kate::SwapFile::document ( )

Definition at line 134 of file kateswapfile.cpp.

void Kate::SwapFile::fileClosed ( )

Definition at line 121 of file kateswapfile.cpp.

void Kate::SwapFile::fileLoaded ( const QString &  filename)
protectedslot

Definition at line 162 of file kateswapfile.cpp.

QString Kate::SwapFile::fileName ( )

Definition at line 561 of file kateswapfile.cpp.

void Kate::SwapFile::fileSaved ( const QString &  filename)
protectedslot

Definition at line 412 of file kateswapfile.cpp.

void Kate::SwapFile::finishEditing ( )
protectedslot

Definition at line 451 of file kateswapfile.cpp.

void Kate::SwapFile::insertText ( const KTextEditor::Cursor &  position,
const QString &  text 
)
protectedslot

Definition at line 491 of file kateswapfile.cpp.

void Kate::SwapFile::modifiedChanged ( )
protectedslot

Definition at line 199 of file kateswapfile.cpp.

void Kate::SwapFile::recover ( )
slot

Definition at line 208 of file kateswapfile.cpp.

bool Kate::SwapFile::recover ( QDataStream &  stream,
bool  checkDigest = true 
)
slot

Definition at line 251 of file kateswapfile.cpp.

void Kate::SwapFile::removeText ( const KTextEditor::Range &  range)
protectedslot

Definition at line 503 of file kateswapfile.cpp.

bool Kate::SwapFile::shouldRecover ( ) const

Definition at line 518 of file kateswapfile.cpp.

void Kate::SwapFile::showDiff ( )
slot

Definition at line 622 of file kateswapfile.cpp.

void Kate::SwapFile::showSwapFileMessage ( )
slot

Definition at line 601 of file kateswapfile.cpp.

void Kate::SwapFile::startEditing ( )
protectedslot

Definition at line 423 of file kateswapfile.cpp.

void Kate::SwapFile::unwrapLine ( int  line)
protectedslot

Definition at line 479 of file kateswapfile.cpp.

void Kate::SwapFile::wrapLine ( const KTextEditor::Cursor &  position)
protectedslot

Definition at line 467 of file kateswapfile.cpp.

void Kate::SwapFile::writeFileToDisk ( )
protectedslot

Definition at line 585 of file kateswapfile.cpp.


The documentation for this class was generated from the following files:
  • kateswapfile.h
  • kateswapfile.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:57:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal