20 #ifndef __tdetexteditor_markinterface_h__
21 #define __tdetexteditor_markinterface_h__
23 #include <tqptrlist.h>
25 #include <tdelibs_export.h>
44 friend class PrivateMarkInterface;
50 unsigned int markInterfaceNumber ()
const;
53 void setMarkInterfaceDCOPSuffix (
const TQCString &suffix);
62 virtual uint
mark (uint line) = 0;
68 virtual void setMark (uint line, uint markType) = 0;
74 virtual void addMark (uint line, uint markType) = 0;
83 virtual TQPtrList<KTextEditor::Mark>
marks () = 0;
95 static int reservedMarkersCount();
133 markType21= 0x100000,
134 markType22= 0x200000,
135 markType23= 0x400000,
136 markType24= 0x800000,
137 markType25= 0x1000000,
138 markType26= 0x2000000,
139 markType27= 0x4000000,
140 markType28= 0x8000000,
141 markType29= 0x10000000,
142 markType30= 0x20000000,
143 markType31= 0x40000000,
144 markType32= 0x80000000,
146 Bookmark = markType01,
147 BreakpointActive = markType02,
148 BreakpointReached = markType03,
149 BreakpointDisabled = markType04,
150 Execution = markType05,
151 Warning = markType06,
159 virtual void marksChanged () = 0;
162 class PrivateMarkInterface *d;
163 static unsigned int globalMarkInterfaceNumber;
164 unsigned int myMarkInterfaceNumber;
167 KTEXTEDITOR_EXPORT MarkInterface *markInterface (
class Document *doc);
This is an interface to enable marks to be made in the iconborder of the Document class.
virtual void clearMarks()=0
Clears all marks in the document.
MarkTypes
Pre-defined mark types.
virtual void clearMark(uint line)=0
Clears all marks set in line.
virtual uint mark(uint line)=0
virtual void setMark(uint line, uint markType)=0
Adds a mark of type markType to line.
virtual void removeMark(uint line, uint markType)=0
Removes any mark of type markType from line.
virtual TQPtrList< KTextEditor::Mark > marks()=0
KTextEditor is KDE's standard text editing KPart interface.