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