author | mickeyl <mickeyl> | 2005-05-17 10:17:02 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-17 10:17:02 (UTC) |
commit | c31a425a9a080238569f7c04372f10fc6cc10383 (patch) (unidiff) | |
tree | 7cf1b6fca77e5fdddf12c08c922108a65177f406 | |
parent | 28503944437feb62c0f2c0a8314385bbca3e9eaf (diff) | |
download | opie-c31a425a9a080238569f7c04372f10fc6cc10383.zip opie-c31a425a9a080238569f7c04372f10fc6cc10383.tar.gz opie-c31a425a9a080238569f7c04372f10fc6cc10383.tar.bz2 |
gcc4 compile fix
-rw-r--r-- | noncore/apps/tinykate/libkate/document/katebuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/tinykate/libkate/document/katebuffer.h b/noncore/apps/tinykate/libkate/document/katebuffer.h index 9088498..c8b718e 100644 --- a/noncore/apps/tinykate/libkate/document/katebuffer.h +++ b/noncore/apps/tinykate/libkate/document/katebuffer.h | |||
@@ -1,97 +1,97 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KWrite | 2 | This file is part of KWrite |
3 | Copyright (c) 2000 Waldo Bastian <bastian@kde.org> | 3 | Copyright (c) 2000 Waldo Bastian <bastian@kde.org> |
4 | Copyright (c) 2002 Joseph Wenninger <jowenn@kde.org> | 4 | Copyright (c) 2002 Joseph Wenninger <jowenn@kde.org> |
5 | 5 | ||
6 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or |
7 | modify it under the terms of the GNU Library General Public | 7 | modify it under the terms of the GNU Library General Public |
8 | License version 2 as published by the Free Software Foundation. | 8 | License version 2 as published by the Free Software Foundation. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
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., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef _KWBUFFER_H_ | 21 | #ifndef _KWBUFFER_H_ |
22 | #define _KWBUFFER_H_ | 22 | #define _KWBUFFER_H_ |
23 | 23 | ||
24 | #include <qstring.h> | 24 | #include <qstring.h> |
25 | #include <qstringlist.h> | 25 | #include <qstringlist.h> |
26 | #include <qlist.h> | 26 | #include <qlist.h> |
27 | #include <qobject.h> | 27 | #include <qobject.h> |
28 | #include <qtimer.h> | 28 | #include <qtimer.h> |
29 | 29 | ||
30 | #include "katetextline.h" | 30 | #include "katetextline.h" |
31 | 31 | ||
32 | class QTextCodec; | 32 | class QTextCodec; |
33 | 33 | class KWBufBlock; | |
34 | /** | 34 | /** |
35 | * The KWBuffer class maintains a collections of lines. | 35 | * The KWBuffer class maintains a collections of lines. |
36 | * It allows to maintain state information in a lazy way. | 36 | * It allows to maintain state information in a lazy way. |
37 | * It handles swapping out of data using secondary storage. | 37 | * It handles swapping out of data using secondary storage. |
38 | * | 38 | * |
39 | * It is designed to handle large amounts of text-data efficiently | 39 | * It is designed to handle large amounts of text-data efficiently |
40 | * with respect to CPU and memory usage. | 40 | * with respect to CPU and memory usage. |
41 | * | 41 | * |
42 | * @author Waldo Bastian <bastian@kde.org> | 42 | * @author Waldo Bastian <bastian@kde.org> |
43 | */ | 43 | */ |
44 | class KWBuffer : public QObject | 44 | class KWBuffer : public QObject |
45 | { | 45 | { |
46 | Q_OBJECT | 46 | Q_OBJECT |
47 | public: | 47 | public: |
48 | /** | 48 | /** |
49 | * Create an empty buffer. | 49 | * Create an empty buffer. |
50 | */ | 50 | */ |
51 | KWBuffer(); | 51 | KWBuffer(); |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * Insert a file at line @p line in the buffer. | 54 | * Insert a file at line @p line in the buffer. |
55 | * Using @p codec to decode the file. | 55 | * Using @p codec to decode the file. |
56 | */ | 56 | */ |
57 | void insertFile(int line, const QString &file, QTextCodec *codec); | 57 | void insertFile(int line, const QString &file, QTextCodec *codec); |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Insert a block of data at line @p line in the buffer. | 60 | * Insert a block of data at line @p line in the buffer. |
61 | * Using @p codec to decode the file. | 61 | * Using @p codec to decode the file. |
62 | */ | 62 | */ |
63 | void insertData(int line, const QByteArray &data, QTextCodec *codec); | 63 | void insertData(int line, const QByteArray &data, QTextCodec *codec); |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Return the total number of lines in the buffer. | 66 | * Return the total number of lines in the buffer. |
67 | */ | 67 | */ |
68 | int count(); | 68 | int count(); |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Return line @p i | 71 | * Return line @p i |
72 | */ | 72 | */ |
73 | TextLine::Ptr line(int i); | 73 | TextLine::Ptr line(int i); |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * Insert @p line in front of line @p i | 76 | * Insert @p line in front of line @p i |
77 | */ | 77 | */ |
78 | void insertLine(int i, TextLine::Ptr line); | 78 | void insertLine(int i, TextLine::Ptr line); |
79 | 79 | ||
80 | /** | 80 | /** |
81 | * Remove line @p i | 81 | * Remove line @p i |
82 | */ | 82 | */ |
83 | void removeLine(int i); | 83 | void removeLine(int i); |
84 | 84 | ||
85 | /** | 85 | /** |
86 | * Change line @p i | 86 | * Change line @p i |
87 | */ | 87 | */ |
88 | void changeLine(int i); | 88 | void changeLine(int i); |
89 | 89 | ||
90 | /** | 90 | /** |
91 | * Clear the buffer. | 91 | * Clear the buffer. |
92 | */ | 92 | */ |
93 | void clear(); | 93 | void clear(); |
94 | 94 | ||
95 | signals: | 95 | signals: |
96 | 96 | ||
97 | void textChanged(); | 97 | void textChanged(); |