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

KDE3Support

Public Slots | Public Member Functions | Protected Member Functions | List of all members
K3TextEdit Class Reference

#include <k3textedit.h>

Inheritance diagram for K3TextEdit:
Inheritance graph
[legend]

Public Slots

void checkSpelling ()
 

Public Member Functions

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

Protected Member Functions

virtual void contentsWheelEvent (QWheelEvent *)
 
virtual Q3PopupMenu * createPopupMenu (const QPoint &pos)
 
virtual Q3PopupMenu * createPopupMenu ()
 
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 pfeif.nosp@m.fer@.nosp@m.kde.o.nosp@m.rg

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)
protectedvirtual

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

Definition at line 254 of file k3textedit.cpp.

Q3PopupMenu * K3TextEdit::createPopupMenu ( const QPoint &  pos)
protectedvirtual

Reimplemented from Q3TextEdit to add spelling related items when appropriate.

Definition at line 214 of file k3textedit.cpp.

Q3PopupMenu * K3TextEdit::createPopupMenu ( )
protectedvirtual

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.

void K3TextEdit::deleteWordBack ( )
protectedvirtual

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

Definition at line 195 of file k3textedit.cpp.

void K3TextEdit::deleteWordForward ( )
protectedvirtual

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

Definition at line 202 of file k3textedit.cpp.

void K3TextEdit::focusInEvent ( QFocusEvent *  e)
protectedvirtual

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)
protectedvirtual

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 
)
protectedvirtual

Definition at line 342 of file k3textedit.cpp.


The documentation for this class was generated from the following files:
  • k3textedit.h
  • k3textedit.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • 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