]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxStyledTextCtrl::AnnotationClearLine().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Sep 2012 10:20:42 +0000 (10:20 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Sep 2012 10:20:42 +0000 (10:20 +0000)
Simply set NULL annotation text for the given line.

Closes #12960.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
include/wx/stc/stc.h
interface/wx/stc/stc.h
src/stc/stc.cpp
src/stc/stc.cpp.in
src/stc/stc.h.in

index c848a7672778503846ffea7c2197c1a53b881baa..341b9578e60948f6e542848a73ac1a39037f1445 100644 (file)
@@ -553,6 +553,7 @@ All (GUI):
 - Restore the original wxGrid col/row size when unhiding it (Michael Richards).
 - Fix text origin and extent computations in wxSVGFileDC (Neil Chittenden).
 - Show tooltips for the too long items in generic wxTreeCtrl (Steven Houchins).
+- Add wxStyledTextCtrl::AnnotationClearLine() (sentieshar).
 
 wxGTK:
 
index cfc3f8584770f46f0f3d7814db43e28df8f9ca8b..89c44a4cec1a6cd0e6085f0fe1cfef99d80eb2c3 100644 (file)
@@ -4495,6 +4495,9 @@ public:
     // Returns the current UseAntiAliasing setting.
     bool GetUseAntiAliasing();
 
+    // Clear annotations from the given line.
+    void AnnotationClearLine(int line);
+
 
 
     // The following methods are nearly equivalent to their similarly named
index 02cc38093ad974789a8bf6782d028c6901f52b0e..2247f3ebdfa54a24b7f88da731cec1520f53fe1c 100644 (file)
@@ -3138,6 +3138,13 @@ public:
     */
     void AnnotationClearAll();
 
+    /**
+       Clear the annotations from the given line.
+
+       @since 2.9.5
+    */
+    void AnnotationClearAll(int line);
+
     /**
        Set the visibility for the annotations for a view
     */
index b607b3d92cb3ea9d3a3f6836802152b6f9e4a48f..759030263b4dec1020f795e59d8d3c0cc84f5f9f 100644 (file)
@@ -4444,6 +4444,9 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() {
     return m_swx->GetUseAntiAliasing();
 }
 
+void wxStyledTextCtrl::AnnotationClearLine(int line) {
+    SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL);
+}
 
 
 
index 0313d2dae2bf0e1b8b947aa30d2040572aa0e122..b7cfbc8ec1e9929cf12bbb5566bf37cbd2b61dbc 100644 (file)
@@ -582,6 +582,9 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() {
     return m_swx->GetUseAntiAliasing();
 }
 
+void wxStyledTextCtrl::AnnotationClearLine(int line) {
+    SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL);
+}
 
 
 
index 659ae4dc5641334f4469966b306878f95424bfd5..a10155c38b521525d6ef7f29d74f75eb12fc20b8 100644 (file)
@@ -237,6 +237,9 @@ public:
     // Returns the current UseAntiAliasing setting.
     bool GetUseAntiAliasing();
 
+    // Clear annotations from the given line.
+    void AnnotationClearLine(int line);
+
 
 
     // The following methods are nearly equivalent to their similarly named