[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/interfaces/ktexteditor
From: Anders Lund <anders () alweb ! dk>
Date: 2004-03-09 15:01:09
Message-ID: 20040309150109.2194E999B () office ! kde ! org
[Download RAW message or body]
CVS commit by alund:
Adding some default types, i thought that was done loooong time ago..
Comments are wellcome, and I really hope this is BC?
Adding a bit of documentation
M +29 -2 markinterface.h 1.12
--- kdelibs/interfaces/ktexteditor/markinterface.h #1.11:1.12
@@ -55,13 +55,32 @@ class MarkInterface
//
public:
+ /**
+ * @return a uint representing the marks set in @p line OR'ed togeather.
+ */
virtual uint mark (uint line) = 0;
+ /**
+ * Adds a mark of type @p markType to @p line.
+ * Has no effect if the line allready contains a mark of that type.
+ */
virtual void setMark (uint line, uint markType) = 0;
+ /**
+ * Clears all marks set in @p line.
+ */
virtual void clearMark (uint line) = 0;
virtual void addMark (uint line, uint markType) = 0;
+ /**
+ * Removes any mark of type @p markType from @p line.
+ */
virtual void removeMark (uint line, uint markType) = 0;
+ /**
+ * @return a list of all marks in the document
+ */
virtual QPtrList<KTextEditor::Mark> marks () = 0;
+ /**
+ * Clears all marks in the document.
+ */
virtual void clearMarks () = 0;
@@ -110,5 +129,13 @@ class MarkInterface
markType30= 0x20000000,
markType31= 0x40000000,
- markType32= 0x80000000
+ markType32= 0x80000000,
+ /* reserved marks */
+ Bookmark = markType01,
+ BreakpointActive = markType02,
+ BreakpointReached = markType03,
+ BreakpointDisabled = markType04,
+ Execution = markType05,
+ Warning = markType06,
+ Error = markType07
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic