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

KDE3Support

K3TextEdit Class Reference

A KDE'ified Q3TextEdit. More...

#include <k3textedit.h>

Inheritance diagram for K3TextEdit:
Q3TextEdit

List of all members.

Public Slots

void checkSpelling ()

Public Member Functions

bool checkSpellingEnabled () const
void highLightWord (unsigned int length, unsigned int pos)
 K3TextEdit (QWidget *parent=0L, const char *name=0)
 K3TextEdit (const QString &text, const QString &context=QString(), QWidget *parent=0, const char *name=0)
void setCheckSpellingEnabled (bool check)
virtual void setPalette (const QPalette &palette)
virtual void setReadOnly (bool readOnly)
 ~K3TextEdit ()

Protected Member Functions

virtual void contentsWheelEvent (QWheelEvent *)
virtual Q3PopupMenu * createPopupMenu ()
virtual Q3PopupMenu * createPopupMenu (const QPoint &pos)
virtual void deleteWordBack ()
virtual void deleteWordForward ()
virtual void focusInEvent (QFocusEvent *)
virtual void keyPressEvent (QKeyEvent *)
virtual void virtual_hook (int id, void *data)

Detailed Description

A KDE'ified Q3TextEdit.

This is just a little subclass of Q3TextEdit, implementing some standard KDE features, like Cursor auto-hiding, configurable wheelscrolling (fast-scroll or zoom) and deleting of entire words with Ctrl-Backspace or Ctrl-Delete.

Basic rule: whenever you want to use Q3TextEdit, use K3TextEdit!

See also:
Q3TextEdit
Author:
Carsten Pfeiffer <pfeiffer@kde.org>

Definition at line 42 of file k3textedit.h.


Constructor & Destructor Documentation

K3TextEdit::K3TextEdit ( const QString &  text,
const QString &  context = QString(),
QWidget *  parent = 0,
const char *  name = 0 
)

Constructs a K3TextEdit object.

See Q3TextEdit::Q3TextEdit for details.

Definition at line 55 of file k3textedit.cpp.

K3TextEdit::K3TextEdit ( QWidget *  parent = 0L,
const char *  name = 0 
)

Constructs a K3TextEdit object.

See Q3TextEdit::Q3TextEdit for details.

Definition at line 63 of file k3textedit.cpp.

K3TextEdit::~K3TextEdit (  ) 

Destroys the K3TextEdit object.

Definition at line 70 of file k3textedit.cpp.


Member Function Documentation

void K3TextEdit::checkSpelling (  )  [slot]

Create a modal dialog to check the spelling.

This slot will not return until spell checking has been completed.

Definition at line 345 of file k3textedit.cpp.

bool K3TextEdit::checkSpellingEnabled (  )  const

Returns true if spell checking is enabled for this text edit.

See also:
setCheckSpellingEnabled()

Definition at line 305 of file k3textedit.cpp.

void K3TextEdit::contentsWheelEvent ( QWheelEvent *  e  )  [protected, virtual]

Reimplemented to allow fast-wheelscrolling with Ctrl-Wheel or zoom.

Definition at line 254 of file k3textedit.cpp.

Q3PopupMenu * K3TextEdit::createPopupMenu (  )  [protected, virtual]

This is just a reimplementation of a deprecated method from Q3TextEdit and is just here to keep source compatibility.

This should not be used in new code. Specifically reimplementing this method will probably not do what you expect. See the method above.

Deprecated:

Definition at line 249 of file k3textedit.cpp.

Q3PopupMenu * K3TextEdit::createPopupMenu ( const QPoint &  pos  )  [protected, virtual]

Reimplemented from Q3TextEdit to add spelling related items when appropriate.

Definition at line 214 of file k3textedit.cpp.

void K3TextEdit::deleteWordBack (  )  [protected, virtual]

Deletes a word backwards from the current cursor position, if available.

Definition at line 195 of file k3textedit.cpp.

void K3TextEdit::deleteWordForward (  )  [protected, virtual]

Deletes a word forwards from the current cursor position, if available.

Definition at line 202 of file k3textedit.cpp.

void K3TextEdit::focusInEvent ( QFocusEvent *  e  )  [protected, virtual]

Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.

Definition at line 297 of file k3textedit.cpp.

void K3TextEdit::highLightWord ( unsigned int  length,
unsigned int  pos 
)

Definition at line 406 of file k3textedit.cpp.

void K3TextEdit::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

Reimplemented to catch "delete word" key events.

Definition at line 75 of file k3textedit.cpp.

void K3TextEdit::setCheckSpellingEnabled ( bool  check  ) 

Turns spell checking for this text edit on or off.

See also:
checkSpellingEnabled()

Definition at line 275 of file k3textedit.cpp.

void K3TextEdit::setPalette ( const QPalette &  palette  )  [virtual]

Reimplemented for tracking custom palettes.

Definition at line 262 of file k3textedit.cpp.

void K3TextEdit::setReadOnly ( bool  readOnly  )  [virtual]

Reimplemented to set a proper "deactivated" background color.

Definition at line 310 of file k3textedit.cpp.

void K3TextEdit::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 342 of file k3textedit.cpp.


The documentation for this class was generated from the following files:
  • k3textedit.h
  • k3textedit.cpp

KDE3Support

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal