• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • part
katearbitraryhighlight.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2003 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 version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef KATEARBITRARYHIGHLIGHT_H
20 #define KATEARBITRARYHIGHLIGHT_H
21 
22 #include "kateattribute.h"
23 #include "katesupercursor.h"
24 
25 #include <tqobject.h>
26 #include <tqptrlist.h>
27 #include <tqmap.h>
28 
29 class KateDocument;
30 class KateView;
31 
32 class KateArbitraryHighlightRange : public KateSuperRange, public KateAttribute
33 {
34  TQ_OBJECT
35 
36 public:
37  KateArbitraryHighlightRange(KateSuperCursor* start, KateSuperCursor* end, TQObject* parent = 0L, const char* name = 0L);
38  KateArbitraryHighlightRange(KateDocument* doc, const KateRange& range, TQObject* parent = 0L, const char* name = 0L);
39  KateArbitraryHighlightRange(KateDocument* doc, const KateTextCursor& start, const KateTextCursor& end, TQObject* parent = 0L, const char* name = 0L);
40 
41  virtual ~KateArbitraryHighlightRange();
42 
43  virtual void changed() { slotTagRange(); };
44 
45  static KateAttribute merge(TQPtrList<KateSuperRange> ranges);
46 };
47 
60 class KateArbitraryHighlight : public TQObject
61 {
62  TQ_OBJECT
63 
64 public:
65  KateArbitraryHighlight(KateDocument* parent = 0L, const char* name = 0L);
66 
67  void addHighlightToDocument(KateSuperRangeList* list);
68  void addHighlightToView(KateSuperRangeList* list, KateView* view);
69 
70  KateSuperRangeList& rangesIncluding(uint line, KateView* view = 0L);
71 
72 signals:
73  void tagLines(KateView* view, KateSuperRange* range);
74 
75 private slots:
76  void slotTagRange(KateSuperRange* range);
77  void slotRangeListDeleted(TQObject* obj);
78 private:
79  KateView* viewForRange(KateSuperRange* range);
80 
81  TQMap<KateView*, TQPtrList<KateSuperRangeList>* > m_viewHLs;
82  TQPtrList<KateSuperRangeList> m_docHLs;
83 };
84 
85 #endif
KateArbitraryHighlight
An arbitrary highlighting interface for Kate.
Definition: katearbitraryhighlight.h:61
KateAttribute
The Attribute class incorporates all text decorations supported by Kate.
Definition: kateattribute.h:33
KateSuperCursor
Possible additional features:
Definition: katesupercursor.h:46
KateSuperRange
Represents a range of text, from the start() to the end().
Definition: katesupercursor.h:169
KateTextCursor
Simple cursor class with no document pointer.
Definition: katecursor.h:34

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.1
This website is maintained by Timothy Pearson.