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

KTextEditor

  • interfaces
  • ktexteditor
rangefeedback.cpp
Go to the documentation of this file.
1/* This file is part of the KDE libraries
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#include "rangefeedback.h"
21
22using namespace KTextEditor;
23
24SmartRangeWatcher::~ SmartRangeWatcher( )
25{
26}
27
28SmartRangeNotifier::SmartRangeNotifier( )
29 : m_wantDirectChanges(true)
30{
31}
32
33bool SmartRangeNotifier::wantsDirectChanges( ) const
34{
35 return m_wantDirectChanges;
36}
37
38void SmartRangeNotifier::setWantsDirectChanges( bool wantsDirectChanges )
39{
40 m_wantDirectChanges = wantsDirectChanges;
41}
42
43SmartRangeWatcher::SmartRangeWatcher( )
44 : m_wantDirectChanges(true)
45{
46}
47
48bool SmartRangeWatcher::wantsDirectChanges( ) const
49{
50 return m_wantDirectChanges;
51}
52
53void SmartRangeWatcher::setWantsDirectChanges( bool wantsDirectChanges )
54{
55 m_wantDirectChanges = wantsDirectChanges;
56}
57
58void SmartRangeWatcher::rangePositionChanged( SmartRange* )
59{
60}
61
62void SmartRangeWatcher::rangeContentsChanged( SmartRange* )
63{
64}
65
66void SmartRangeWatcher::rangeContentsChanged( SmartRange*, SmartRange* )
67{
68}
69
70void SmartRangeWatcher::mouseEnteredRange( SmartRange*, View* )
71{
72}
73
74void SmartRangeWatcher::mouseExitedRange( SmartRange*, View* )
75{
76}
77
78void SmartRangeWatcher::caretEnteredRange( SmartRange*, View* )
79{
80}
81
82void SmartRangeWatcher::caretExitedRange( SmartRange*, View* )
83{
84}
85
86void SmartRangeWatcher::rangeEliminated( SmartRange* )
87{
88}
89
90void SmartRangeWatcher::rangeDeleted( SmartRange* )
91{
92}
93
94void SmartRangeWatcher::childRangeInserted( SmartRange*, SmartRange* )
95{
96}
97
98void SmartRangeWatcher::childRangeRemoved( SmartRange*, SmartRange* )
99{
100}
101
102void SmartRangeWatcher::rangeAttributeChanged( SmartRange*, Attribute::Ptr, Attribute::Ptr )
103{
104}
105
106void SmartRangeWatcher::parentRangeChanged( SmartRange *, SmartRange *, SmartRange * )
107{
108}
109
110#include "smartrangenotifier.moc"
111
112// kate: space-indent on; indent-width 2; replace-tabs on;
KSharedPtr< Attribute >
KTextEditor::SmartRangeNotifier::wantsDirectChanges
bool wantsDirectChanges() const
Returns whether this notifier will notify of changes that happen directly to the range,...
Definition: rangefeedback.cpp:33
KTextEditor::SmartRangeNotifier::SmartRangeNotifier
SmartRangeNotifier()
Default constructor.
Definition: rangefeedback.cpp:28
KTextEditor::SmartRangeNotifier::setWantsDirectChanges
void setWantsDirectChanges(bool wantsDirectChanges)
Set whether this notifier should notify of changes that happen directly to the range,...
Definition: rangefeedback.cpp:38
KTextEditor::SmartRangeWatcher::caretExitedRange
virtual void caretExitedRange(SmartRange *range, View *view)
The caret on view exited range.
Definition: rangefeedback.cpp:82
KTextEditor::SmartRangeWatcher::wantsDirectChanges
bool wantsDirectChanges() const
Returns whether this watcher will be notified of changes that happen directly to the range,...
Definition: rangefeedback.cpp:48
KTextEditor::SmartRangeWatcher::childRangeInserted
virtual void childRangeInserted(SmartRange *range, SmartRange *child)
The range child was inserted as a child range into the current range.
Definition: rangefeedback.cpp:94
KTextEditor::SmartRangeWatcher::childRangeRemoved
virtual void childRangeRemoved(SmartRange *range, SmartRange *child)
The child range child was removed from the current range.
Definition: rangefeedback.cpp:98
KTextEditor::SmartRangeWatcher::rangeAttributeChanged
virtual void rangeAttributeChanged(SmartRange *range, Attribute::Ptr currentAttribute, Attribute::Ptr previousAttribute)
The highlighting attribute of range was changed from previousAttribute to currentAttribute.
Definition: rangefeedback.cpp:102
KTextEditor::SmartRangeWatcher::rangeDeleted
virtual void rangeDeleted(SmartRange *range)
The SmartRange instance specified by range is being deleted.
Definition: rangefeedback.cpp:90
KTextEditor::SmartRangeWatcher::mouseExitedRange
virtual void mouseExitedRange(SmartRange *range, View *view)
The mouse cursor on view exited range.
Definition: rangefeedback.cpp:74
KTextEditor::SmartRangeWatcher::setWantsDirectChanges
void setWantsDirectChanges(bool wantsDirectChanges)
Set whether this watcher should be notified of changes that happen directly to the range,...
Definition: rangefeedback.cpp:53
KTextEditor::SmartRangeWatcher::caretEnteredRange
virtual void caretEnteredRange(SmartRange *range, View *view)
The caret on view entered range.
Definition: rangefeedback.cpp:78
KTextEditor::SmartRangeWatcher::rangePositionChanged
virtual void rangePositionChanged(SmartRange *range)
The range's position changed.
Definition: rangefeedback.cpp:58
KTextEditor::SmartRangeWatcher::rangeEliminated
virtual void rangeEliminated(SmartRange *range)
The range now contains no characters (ie.
Definition: rangefeedback.cpp:86
KTextEditor::SmartRangeWatcher::rangeContentsChanged
virtual void rangeContentsChanged(SmartRange *range)
The contents of the range changed.
Definition: rangefeedback.cpp:62
KTextEditor::SmartRangeWatcher::mouseEnteredRange
virtual void mouseEnteredRange(SmartRange *range, View *view)
The mouse cursor on view entered range.
Definition: rangefeedback.cpp:70
KTextEditor::SmartRangeWatcher::parentRangeChanged
virtual void parentRangeChanged(SmartRange *range, SmartRange *newParent, SmartRange *oldParent)
The range's parent was changed.
Definition: rangefeedback.cpp:106
KTextEditor::SmartRangeWatcher::SmartRangeWatcher
SmartRangeWatcher()
Default constructor.
Definition: rangefeedback.cpp:43
KTextEditor::SmartRange
A Range which is bound to a specific Document, and maintains its position.
Definition: smartrange.h:95
KTextEditor::View
A text widget with KXMLGUIClient that represents a Document.
Definition: view.h:146
KTextEditor
Namespace for the KDE Text Editor Interfaces.
Definition: annotationinterface.h:31
rangefeedback.h
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