kateundo.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef kate_undo_h
00022
#define kate_undo_h
00023
00024
#include <qptrlist.h>
00025
#include <qstring.h>
00026
00027
class KateDocument;
00028
00029
class KateUndoGroup
00030 {
00031
public:
00032 KateUndoGroup (KateDocument *doc);
00033 ~KateUndoGroup ();
00034
00035
void undo ();
00036
void redo ();
00037
00038
void addItem (uint type, uint line, uint col, uint len,
const QString &text);
00039
00040
bool merge(KateUndoGroup* newGroup);
00041
00042
enum types
00043 {
00044 editInsertText,
00045 editRemoveText,
00046 editWrapLine,
00047 editUnWrapLine,
00048 editInsertLine,
00049 editRemoveLine,
00050 editMarkLineAutoWrapped,
00051 editInvalid
00052 };
00053
00054
private:
00055
00056 uint singleType();
00057
bool isOnlyType(uint type);
00058
00059
void addItem(
class KateUndo* u);
00060
00061 KateDocument *m_doc;
00062
QPtrList<KateUndo> m_items;
00063 };
00064
00065
#endif
This file is part of the documentation for kate Library Version 3.2.3.