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

KTextEditor

  • kde-4.14
  • applications
  • kate
  • 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 
23 using namespace KTextEditor;
24 
25 SmartCursorWatcher::SmartCursorWatcher( )
26  : m_wantDirectChanges(true)
27 {
28 }
29 
30 SmartCursorWatcher::~ SmartCursorWatcher( )
31 {
32 }
33 
34 void SmartCursorWatcher::positionChanged( SmartCursor * )
35 {
36 }
37 
38 void SmartCursorWatcher::positionDeleted( SmartCursor * )
39 {
40 }
41 
42 void SmartCursorWatcher::characterDeleted( SmartCursor * , bool )
43 {
44 }
45 
46 void SmartCursorWatcher::characterInserted( SmartCursor * , bool )
47 {
48 }
49 
50 bool SmartCursorWatcher::wantsDirectChanges( ) const
51 {
52  return m_wantDirectChanges;
53 }
54 
55 void SmartCursorWatcher::setWantsDirectChanges( bool wantsDirectChanges )
56 {
57  m_wantDirectChanges = wantsDirectChanges;
58 }
59 
60 SmartCursorNotifier::SmartCursorNotifier( )
61  : m_wantDirectChanges(true)
62 {
63 }
64 
65 bool SmartCursorNotifier::wantsDirectChanges( ) const
66 {
67  return m_wantDirectChanges;
68 }
69 
70 void SmartCursorNotifier::setWantsDirectChanges( bool wantsDirectChanges )
71 {
72  m_wantDirectChanges = wantsDirectChanges;
73 }
74 
75 void 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, e.g.
Definition: cursorfeedback.cpp:65
cursorfeedback.h
KTextEditor::SmartCursorNotifier::setWantsDirectChanges
void setWantsDirectChanges(bool wantsDirectChanges)
Set whether this notifier should notify of changes that happen directly to the cursor, e.g.
Definition: cursorfeedback.cpp:70
KTextEditor::SmartCursorWatcher::~SmartCursorWatcher
virtual ~SmartCursorWatcher()
Virtual destructor.
Definition: cursorfeedback.cpp:30
KTextEditor::SmartCursorWatcher::positionDeleted
virtual void positionDeleted(SmartCursor *cursor)
The cursor's surrounding characters were both deleted simultaneously.
Definition: cursorfeedback.cpp:38
KTextEditor::SmartCursor
A Cursor which is bound to a specific Document, and maintains its position.
Definition: smartcursor.h:65
KTextEditor::SmartCursorWatcher::positionChanged
virtual void positionChanged(SmartCursor *cursor)
The cursor's position was changed.
Definition: cursorfeedback.cpp:34
KTextEditor::SmartCursorWatcher::SmartCursorWatcher
SmartCursorWatcher()
Default constructor.
Definition: cursorfeedback.cpp:25
KTextEditor::SmartCursorWatcher::deleted
virtual void deleted(SmartCursor *cursor)
The SmartCursor instance specified by cursor is being deleted.
Definition: cursorfeedback.cpp:75
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::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::characterDeleted
virtual void characterDeleted(SmartCursor *cursor, bool deletedBefore)
The character immediately surrounding the cursor was deleted.
Definition: cursorfeedback.cpp:42
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:48 by doxygen 1.8.7 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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

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