• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
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 <tdelibs_export.h>
26
27class KSpell;
28
43class TDEUI_EXPORT KTextEdit : public TQTextEdit
44{
45 TQ_OBJECT
46
47public:
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
100public slots:
107 void checkSpelling();
108
109protected:
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
155protected:
156 virtual void virtual_hook( int id, void* data );
157
158private 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
167private:
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: tdespell.h:47
KTextEdit
A KDE'ified QTextEdit.
Definition: ktextedit.h:44

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.