Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdeui
kdeui
kdeui
ktextedit.h
1
/* This file is part of the KDE libraries
2
Copyright (C) 2002 Carsten Pfeiffer <pfeiffer@kde.org>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License as published by the Free Software Foundation; either
7
version 2 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Library General Public License for more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
18
*/
19
20
#ifndef KTEXTEDIT_H
21
#define KTEXTEDIT_H
22
23
#include <tqtextedit.h>
24
25
#include <kdelibs_export.h>
26
27
class
KSpell
;
28
43
class
KDEUI_EXPORT
KTextEdit
:
public
TQTextEdit
44
{
45
Q_OBJECT
46
47
public
:
52
KTextEdit
(
const
TQString& text,
53
const
TQString& context = TQString::null,
54
TQWidget * parent = 0,
const
char
*name = 0 );
60
KTextEdit
( TQWidget *parent = 0L,
const
char
*name = 0 );
64
~
KTextEdit
();
65
69
virtual
void
setReadOnly (
bool
readOnly);
70
74
virtual
void
setPalette(
const
TQPalette& palette );
75
85
void
setCheckSpellingEnabled(
bool
check );
86
95
bool
checkSpellingEnabled()
const
;
96
97
void
highLightWord(
unsigned
int
length,
unsigned
int
pos );
98
99
100
public
slots:
107
void
checkSpelling();
108
109
protected
:
113
virtual
void
keyPressEvent( TQKeyEvent * );
114
119
virtual
void
focusInEvent( TQFocusEvent * );
120
125
virtual
void
contentsWheelEvent( TQWheelEvent * );
126
131
virtual
void
deleteWordBack();
132
137
virtual
void
deleteWordForward();
138
143
virtual
TQPopupMenu *createPopupMenu(
const
TQPoint &pos );
144
153
virtual
TQPopupMenu *createPopupMenu();
154
155
protected
:
156
virtual
void
virtual_hook(
int
id
,
void
* data );
157
158
private
slots:
159
void
slotSpellCheckReady(
KSpell
*s );
160
void
slotSpellCheckDone(
const
TQString &s );
161
void
spellCheckerMisspelling(
const
TQString &text,
const
TQStringList &,
unsigned
int
pos);
162
void
spellCheckerCorrected(
const
TQString &,
const
TQString &,
unsigned
int
);
163
void
spellCheckerFinished();
164
void
toggleAutoSpellCheck();
165
void
slotAllowTab();
166
167
private
:
168
void
posToRowCol(
unsigned
int
pos,
unsigned
int
&line,
unsigned
int
&col );
169
170
class
KTextEditPrivate;
171
KTextEditPrivate *d;
172
};
173
174
#endif // KTEXTEDIT_H
KSpell
KDE Spellchecker
Definition:
kspell.h:46
KTextEdit
A KDE'ified QTextEdit.
Definition:
ktextedit.h:43
kdeui
Skip menu "kdeui"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
kdeui
Skip menu "kdeui"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver