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

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • 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 
27 class K3Spell;
28 
42 class KDE3SUPPORT_EXPORT K3TextEdit : public Q3TextEdit
43 {
44  Q_OBJECT
45 
46 public:
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 
92 public Q_SLOTS:
98  void checkSpelling();
99 
100 protected:
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 
146 protected:
147  virtual void virtual_hook( int id, void* data );
148 
149 private 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 
158 private:
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
QWidget
deleteWordForward
const KShortcut & deleteWordForward()
QWidget::setPalette
void setPalette(const QPalette &)
Q3TextEdit::contentsWheelEvent
virtual void contentsWheelEvent(QWheelEvent *e)
QWheelEvent
name
const char * name(StandardAction id)
Q3TextEdit::setReadOnly
virtual void setReadOnly(bool b)
QPoint
Q3PopupMenu
kde3support_export.h
QWidget::focusInEvent
virtual void focusInEvent(QFocusEvent *event)
Q3TextEdit::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
QString
QStringList
K3TextEdit
A KDE'ified Q3TextEdit.
Definition: k3textedit.h:42
Q3TextEdit
Q3TextEdit::createPopupMenu
virtual Q3PopupMenu * createPopupMenu()
QKeyEvent
deleteWordBack
const KShortcut & deleteWordBack()
QFocusEvent
QPalette
K3Spell
KDE Spellchecker
Definition: k3spell.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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