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

KTextEditor

Classes | Enumerations
MovingCursors and MovingRanges
Document Extension Interfaces

Classes

class  KTextEditor::MovingCursor
 
class  KTextEditor::MovingInterface
 
class  KTextEditor::MovingRange
 
class  KTextEditor::MovingRangeFeedback
 

Enumerations

enum  KTextEditor::MovingRange::EmptyBehavior { KTextEditor::MovingRange::AllowEmpty = 0x0, KTextEditor::MovingRange::InvalidateIfEmpty = 0x1 }
 
enum  KTextEditor::MovingCursor::InsertBehavior { KTextEditor::MovingCursor::StayOnInsert = 0x0, KTextEditor::MovingCursor::MoveOnInsert = 0x1 }
 
enum  KTextEditor::MovingRange::InsertBehavior { KTextEditor::MovingRange::DoNotExpand = 0x0, KTextEditor::MovingRange::ExpandLeft = 0x1, KTextEditor::MovingRange::ExpandRight = 0x2 }
 
enum  KTextEditor::MovingCursor::WrapBehavior { KTextEditor::MovingCursor::Wrap = 0x0, KTextEditor::MovingCursor::NoWrap = 0x1 }
 

Detailed Description

If the KTextEditor implementation supports the KTextEditor::MovingInterface, there are several moving classes available.

Instances of the moving classes are bound to a specific Document, and maintain their position in that document regardless of changes to the text. Changes to MovingRanges can be caught by using the class MovingRangeFeedback.

The following is a list of all classes that are available when the document supports the KTextEditor::MovingInterface:

Enumeration Type Documentation

enum KTextEditor::MovingRange::EmptyBehavior

Behavior of range if it becomes empty.

Enumerator
AllowEmpty 

allow range to be empty

InvalidateIfEmpty 

invalidate range, if it becomes empty

Definition at line 142 of file movingrange.h.

enum KTextEditor::MovingCursor::InsertBehavior

Insert behavior of this cursor, should it stay if text is insert at its position or should it move.

Enumerator
StayOnInsert 

stay on insert

MoveOnInsert 

move on insert

Definition at line 76 of file movingcursor.h.

enum KTextEditor::MovingRange::InsertBehavior

Determine how the range reacts to characters inserted immediately outside the range.

Enumerator
DoNotExpand 

Don't expand to encapsulate new characters in either direction. This is the default.

ExpandLeft 

Expand to encapsulate new characters to the left of the range.

ExpandRight 

Expand to encapsulate new characters to the right of the range.

Definition at line 129 of file movingrange.h.

enum KTextEditor::MovingCursor::WrapBehavior

Wrap behavior for end of line treatement used in move().

Enumerator
Wrap 

wrap at end of line

NoWrap 

do not wrap at end of line

Definition at line 84 of file movingcursor.h.

This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Mon May 4 2015 10:52:10 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

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

kdelibs-4.14.7 API Reference

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