1
// Copyright 2011 Simon Edwards <simon@simonzone.com>
5
// This program is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU Library General Public License as
7
// published by the Free Software Foundation; either version 2, or
8
// (at your option) any later version.
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details
15
// You should have received a copy of the GNU Library General Public
16
// License along with this program; if not, write to the
17
// Free Software Foundation, Inc.,
18
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22
class SmartRangeNotifier : QObject
25
#include <ktexteditor/smartrangenotifier.h>
29
SmartRangeNotifier ();
30
bool wantsDirectChanges () const;
31
void setWantsDirectChanges (bool wantsDirectChanges);
33
void rangePositionChanged (KTextEditor::SmartRange* range);
34
void rangeContentsChanged (KTextEditor::SmartRange* range);
35
void rangeContentsChanged (KTextEditor::SmartRange* range, KTextEditor::SmartRange* mostSpecificChild);
36
void mouseEnteredRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
37
void mouseExitedRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
38
void caretEnteredRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
39
void caretExitedRange (KTextEditor::SmartRange* range, KTextEditor::View* view);
40
void rangeEliminated (KTextEditor::SmartRange* range);
41
void rangeDeleted (KTextEditor::SmartRange* range);
42
void parentRangeChanged (KTextEditor::SmartRange* range, KTextEditor::SmartRange* newParent, KTextEditor::SmartRange* oldParent);
43
void childRangeInserted (KTextEditor::SmartRange* range, KTextEditor::SmartRange* child);
44
void childRangeRemoved (KTextEditor::SmartRange* range, KTextEditor::SmartRange* child);
45
void rangeAttributeChanged (KTextEditor::SmartRange* range, KTextEditor::Attribute::Ptr currentAttribute, KTextEditor::Attribute::Ptr previousAttribute);