Changeset View
Changeset View
Standalone View
Standalone View
src/buffer/katetexthistory.h
Show All 15 Lines | |||||
16 | * along with this library; see the file COPYING.LIB. If not, write to | 16 | * along with this library; see the file COPYING.LIB. If not, write to | ||
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef KATE_TEXTHISTORY_H | 21 | #ifndef KATE_TEXTHISTORY_H | ||
22 | #define KATE_TEXTHISTORY_H | 22 | #define KATE_TEXTHISTORY_H | ||
23 | 23 | | |||
24 | #include <QList> | 24 | #include <vector> | ||
25 | 25 | | |||
26 | #include <ktexteditor/range.h> | 26 | #include <ktexteditor/range.h> | ||
27 | 27 | | |||
28 | #include <ktexteditor_export.h> | 28 | #include <ktexteditor_export.h> | ||
29 | #include "katetextrange.h" | 29 | #include "katetextrange.h" | ||
30 | 30 | | |||
31 | namespace Kate | 31 | namespace Kate | ||
32 | { | 32 | { | ||
▲ Show 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | 220 | private: | |||
225 | 225 | | |||
226 | /** | 226 | /** | ||
227 | * Last revision the buffer got saved | 227 | * Last revision the buffer got saved | ||
228 | */ | 228 | */ | ||
229 | qint64 m_lastSavedRevision; | 229 | qint64 m_lastSavedRevision; | ||
230 | 230 | | |||
231 | /** | 231 | /** | ||
232 | * history of edits | 232 | * history of edits | ||
233 | * needs no sharing, small entries | ||||
233 | */ | 234 | */ | ||
234 | QList<Entry> m_historyEntries; | 235 | std::vector<Entry> m_historyEntries; | ||
235 | 236 | | |||
236 | /** | 237 | /** | ||
237 | * offset for the first entry in m_history, to which revision it really belongs? | 238 | * offset for the first entry in m_history, to which revision it really belongs? | ||
238 | */ | 239 | */ | ||
239 | qint64 m_firstHistoryEntryRevision; | 240 | qint64 m_firstHistoryEntryRevision; | ||
240 | }; | 241 | }; | ||
241 | 242 | | |||
242 | } | 243 | } | ||
243 | 244 | | |||
244 | #endif | 245 | #endif |