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

tdeui

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

#include <ktextedit.h>

Inherits TQTextEdit.

Public Slots

void checkSpelling ()
 

Public Member Functions

 KTextEdit (const TQString &text, const TQString &context=TQString::null, TQWidget *parent=0, const char *name=0)
 
 KTextEdit (TQWidget *parent=0L, const char *name=0)
 
 ~KTextEdit ()
 
virtual void setReadOnly (bool readOnly)
 
virtual void setPalette (const TQPalette &palette)
 
void setCheckSpellingEnabled (bool check)
 
bool checkSpellingEnabled () const
 
void highLightWord (unsigned int length, unsigned int pos)
 

Protected Member Functions

virtual void keyPressEvent (TQKeyEvent *)
 
virtual void focusInEvent (TQFocusEvent *)
 
virtual void contentsWheelEvent (TQWheelEvent *)
 
virtual void deleteWordBack ()
 
virtual void deleteWordForward ()
 
virtual TQPopupMenu * createPopupMenu (const TQPoint &pos)
 
virtual TQPopupMenu * createPopupMenu ()
 
virtual void virtual_hook (int id, void *data)
 

Detailed Description

A KDE'ified QTextEdit.

This is just a little subclass of TQTextEdit, 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 TQTextEdit, use KTextEdit!

See also
QTextEdit
Author
Carsten Pfeiffer pfeif.nosp@m.fer@.nosp@m.kde.o.nosp@m.rg
Since
3.1

Definition at line 43 of file ktextedit.h.

Constructor & Destructor Documentation

◆ KTextEdit() [1/2]

KTextEdit::KTextEdit ( const TQString &  text,
const TQString &  context = TQString::null,
TQWidget *  parent = 0,
const char *  name = 0 
)

Constructs a KTextEdit object.

See TQTextEdit::QTextEdit for details.

Definition at line 54 of file ktextedit.cpp.

◆ KTextEdit() [2/2]

KTextEdit::KTextEdit ( TQWidget *  parent = 0L,
const char *  name = 0 
)

Constructs a KTextEdit object.

See TQTextEdit::QTextEdit for details.

Definition at line 62 of file ktextedit.cpp.

◆ ~KTextEdit()

KTextEdit::~KTextEdit ( )

Destroys the KTextEdit object.

Definition at line 69 of file ktextedit.cpp.

Member Function Documentation

◆ checkSpelling

void KTextEdit::checkSpelling ( )
slot

Create a modal dialog to check the spelling.

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

Since
3.2

Definition at line 350 of file ktextedit.cpp.

◆ checkSpellingEnabled()

bool KTextEdit::checkSpellingEnabled ( ) const

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

Note that it even returns true if this is a read-only KTextEdit, where spell checking is actually disabled.

@ see setCheckSpellingEnabled()

Since
3.2

Definition at line 304 of file ktextedit.cpp.

◆ contentsWheelEvent()

void KTextEdit::contentsWheelEvent ( TQWheelEvent *  e)
protectedvirtual

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

Definition at line 253 of file ktextedit.cpp.

◆ createPopupMenu() [1/2]

TQPopupMenu * KTextEdit::createPopupMenu ( )
protectedvirtual

This is just a reimplementation of a deprecated method from TQTextEdit 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 248 of file ktextedit.cpp.

◆ createPopupMenu() [2/2]

TQPopupMenu * KTextEdit::createPopupMenu ( const TQPoint &  pos)
protectedvirtual

Reimplemented from TQTextEdit to add spelling related items when appropriate.

Definition at line 213 of file ktextedit.cpp.

◆ deleteWordBack()

void KTextEdit::deleteWordBack ( )
protectedvirtual

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

Definition at line 194 of file ktextedit.cpp.

◆ deleteWordForward()

void KTextEdit::deleteWordForward ( )
protectedvirtual

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

Definition at line 201 of file ktextedit.cpp.

◆ focusInEvent()

void KTextEdit::focusInEvent ( TQFocusEvent *  e)
protectedvirtual

Reimplemented to instantiate a KDictSpellingHighlighter, if spellchecking is enabled.

Definition at line 296 of file ktextedit.cpp.

◆ highLightWord()

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

Definition at line 411 of file ktextedit.cpp.

◆ keyPressEvent()

void KTextEdit::keyPressEvent ( TQKeyEvent *  e)
protectedvirtual

Reimplemented to catch "delete word" key events.

Definition at line 74 of file ktextedit.cpp.

◆ setCheckSpellingEnabled()

void KTextEdit::setCheckSpellingEnabled ( bool  check)

Turns spell checking for this text edit on or off.

Note that spell checking is only available in read-writable KTextEdits.

See also
checkSpellingEnabled()
isReadOnly()
setReadOnly()
Since
3.2

Definition at line 274 of file ktextedit.cpp.

◆ setPalette()

void KTextEdit::setPalette ( const TQPalette &  palette)
virtual

Reimplemented for tracking custom palettes.

Definition at line 261 of file ktextedit.cpp.

◆ setReadOnly()

void KTextEdit::setReadOnly ( bool  readOnly)
virtual

Reimplemented to set a proper "deactivated" background color.

Definition at line 309 of file ktextedit.cpp.

◆ virtual_hook()

void KTextEdit::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 347 of file ktextedit.cpp.


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

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.