• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

  • kde3support
  • kdeui
k3textedit.h
Go to the documentation of this file.
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 K3TEXTEDIT_H
21#define K3TEXTEDIT_H
22
23#include <kde3support_export.h>
24
25#include <Qt3Support/Q3TextEdit>
26
27class K3Spell;
28
42class KDE3SUPPORT_EXPORT K3TextEdit : public Q3TextEdit
43{
44 Q_OBJECT
45
46public:
51 K3TextEdit( const QString& text,
52 const QString& context = QString(),
53 QWidget * parent = 0, const char *name = 0 );
59 K3TextEdit( QWidget *parent = 0L, const char *name = 0 );
63 ~K3TextEdit();
64
68 virtual void setReadOnly (bool readOnly);
69
73 virtual void setPalette( const QPalette& palette );
74
80 void setCheckSpellingEnabled( bool check );
81
87 bool checkSpellingEnabled() const;
88
89 void highLightWord( unsigned int length, unsigned int pos );
90
91
92public Q_SLOTS:
98 void checkSpelling();
99
100protected:
104 virtual void keyPressEvent( QKeyEvent * );
105
110 virtual void focusInEvent( QFocusEvent * );
111
116 virtual void contentsWheelEvent( QWheelEvent * );
117
122 virtual void deleteWordBack();
123
128 virtual void deleteWordForward();
129
134 virtual Q3PopupMenu *createPopupMenu( const QPoint &pos );
135
144 virtual Q3PopupMenu *createPopupMenu();
145
146protected:
147 virtual void virtual_hook( int id, void* data );
148
149private Q_SLOTS:
150 void slotSpellCheckReady( K3Spell *s );
151 void slotSpellCheckDone( const QString &s );
152 void spellCheckerMisspelling( const QString &text, const QStringList &, unsigned int pos);
153 void spellCheckerCorrected( const QString &, const QString &, unsigned int );
154 void spellCheckerFinished();
155 void toggleAutoSpellCheck();
156 void slotAllowTab();
157
158private:
159 void posToRowCol( unsigned int pos, unsigned int &line, unsigned int &col );
160
161 class K3TextEditPrivate;
162 K3TextEditPrivate *d;
163};
164
165#endif // KTEXTEDIT_H
K3Spell
KDE Spellchecker
Definition: k3spell.h:47
K3TextEdit
A KDE'ified Q3TextEdit.
Definition: k3textedit.h:43
Q3PopupMenu
Q3TextEdit
QWidget
kde3support_export.h
name
const char * name(StandardAction id)
deleteWordBack
const KShortcut & deleteWordBack()
deleteWordForward
const KShortcut & deleteWordForward()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal