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

KTextEditor

  • interfaces
  • ktexteditor
cursorfeedback.cpp
Go to the documentation of this file.
1/* This file is part of the KDE project
2 Copyright (C) 2003-2005 Hamish Rodda <rodda@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
21#include "cursorfeedback.h"
22
23using namespace KTextEditor;
24
25SmartCursorWatcher::SmartCursorWatcher( )
26 : m_wantDirectChanges(true)
27{
28}
29
30SmartCursorWatcher::~ SmartCursorWatcher( )
31{
32}
33
34void SmartCursorWatcher::positionChanged( SmartCursor * )
35{
36}
37
38void SmartCursorWatcher::positionDeleted( SmartCursor * )
39{
40}
41
42void SmartCursorWatcher::characterDeleted( SmartCursor * , bool )
43{
44}
45
46void SmartCursorWatcher::characterInserted( SmartCursor * , bool )
47{
48}
49
50bool SmartCursorWatcher::wantsDirectChanges( ) const
51{
52 return m_wantDirectChanges;
53}
54
55void SmartCursorWatcher::setWantsDirectChanges( bool wantsDirectChanges )
56{
57 m_wantDirectChanges = wantsDirectChanges;
58}
59
60SmartCursorNotifier::SmartCursorNotifier( )
61 : m_wantDirectChanges(true)
62{
63}
64
65bool SmartCursorNotifier::wantsDirectChanges( ) const
66{
67 return m_wantDirectChanges;
68}
69
70void SmartCursorNotifier::setWantsDirectChanges( bool wantsDirectChanges )
71{
72 m_wantDirectChanges = wantsDirectChanges;
73}
74
75void SmartCursorWatcher::deleted( SmartCursor * )
76{
77}
78
79#include "smartcursornotifier.moc"
80
81// kate: space-indent on; indent-width 2; replace-tabs on;
KTextEditor::SmartCursorNotifier::wantsDirectChanges
bool wantsDirectChanges() const
Returns whether this notifier will notify of changes that happen directly to the cursor,...
Definition: cursorfeedback.cpp:65
KTextEditor::SmartCursorNotifier::setWantsDirectChanges
void setWantsDirectChanges(bool wantsDirectChanges)
Set whether this notifier should notify of changes that happen directly to the cursor,...
Definition: cursorfeedback.cpp:70
KTextEditor::SmartCursorNotifier::SmartCursorNotifier
SmartCursorNotifier()
Default constructor.
Definition: cursorfeedback.cpp:60
KTextEditor::SmartCursorWatcher::wantsDirectChanges
bool wantsDirectChanges() const
Returns whether this watcher wants to be notified of changes that happen directly to the cursor,...
Definition: cursorfeedback.cpp:50
KTextEditor::SmartCursorWatcher::characterInserted
virtual void characterInserted(SmartCursor *cursor, bool insertedBefore)
A character was inserted immediately before or after the cursor, as given by insertedBefore.
Definition: cursorfeedback.cpp:46
KTextEditor::SmartCursorWatcher::positionDeleted
virtual void positionDeleted(SmartCursor *cursor)
The cursor's surrounding characters were both deleted simultaneously.
Definition: cursorfeedback.cpp:38
KTextEditor::SmartCursorWatcher::positionChanged
virtual void positionChanged(SmartCursor *cursor)
The cursor's position was changed.
Definition: cursorfeedback.cpp:34
KTextEditor::SmartCursorWatcher::deleted
virtual void deleted(SmartCursor *cursor)
The SmartCursor instance specified by cursor is being deleted.
Definition: cursorfeedback.cpp:75
KTextEditor::SmartCursorWatcher::characterDeleted
virtual void characterDeleted(SmartCursor *cursor, bool deletedBefore)
The character immediately surrounding the cursor was deleted.
Definition: cursorfeedback.cpp:42
KTextEditor::SmartCursorWatcher::SmartCursorWatcher
SmartCursorWatcher()
Default constructor.
Definition: cursorfeedback.cpp:25
KTextEditor::SmartCursorWatcher::setWantsDirectChanges
void setWantsDirectChanges(bool wantsDirectChanges)
Set whether this watcher should be notified of changes that happen directly to the cursor,...
Definition: cursorfeedback.cpp:55
KTextEditor::SmartCursor
A Cursor which is bound to a specific Document, and maintains its position.
Definition: smartcursor.h:66
cursorfeedback.h
KTextEditor
Namespace for the KDE Text Editor Interfaces.
Definition: annotationinterface.h:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.38 API Reference

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