Add wxStyledTextCtrl::AnnotationClearLine().

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
This commit is contained in:
Vadim Zeitlin
2012-09-20 10:20:42 +00:00
parent 33e659d77a
commit 95725e35d8
6 changed files with 20 additions and 0 deletions

View File

@@ -553,6 +553,7 @@ All (GUI):
- Restore the original wxGrid col/row size when unhiding it (Michael Richards). - Restore the original wxGrid col/row size when unhiding it (Michael Richards).
- Fix text origin and extent computations in wxSVGFileDC (Neil Chittenden). - Fix text origin and extent computations in wxSVGFileDC (Neil Chittenden).
- Show tooltips for the too long items in generic wxTreeCtrl (Steven Houchins). - Show tooltips for the too long items in generic wxTreeCtrl (Steven Houchins).
- Add wxStyledTextCtrl::AnnotationClearLine() (sentieshar).
wxGTK: wxGTK:

View File

@@ -4495,6 +4495,9 @@ public:
// Returns the current UseAntiAliasing setting. // Returns the current UseAntiAliasing setting.
bool GetUseAntiAliasing(); bool GetUseAntiAliasing();
// Clear annotations from the given line.
void AnnotationClearLine(int line);
// The following methods are nearly equivalent to their similarly named // The following methods are nearly equivalent to their similarly named

View File

@@ -3138,6 +3138,13 @@ public:
*/ */
void AnnotationClearAll(); 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 Set the visibility for the annotations for a view
*/ */

View File

@@ -4444,6 +4444,9 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() {
return m_swx->GetUseAntiAliasing(); return m_swx->GetUseAntiAliasing();
} }
void wxStyledTextCtrl::AnnotationClearLine(int line) {
SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL);
}

View File

@@ -582,6 +582,9 @@ bool wxStyledTextCtrl::GetUseAntiAliasing() {
return m_swx->GetUseAntiAliasing(); return m_swx->GetUseAntiAliasing();
} }
void wxStyledTextCtrl::AnnotationClearLine(int line) {
SendMsg(SCI_ANNOTATIONSETTEXT, line, NULL);
}

View File

@@ -237,6 +237,9 @@ public:
// Returns the current UseAntiAliasing setting. // Returns the current UseAntiAliasing setting.
bool GetUseAntiAliasing(); bool GetUseAntiAliasing();
// Clear annotations from the given line.
void AnnotationClearLine(int line);
// The following methods are nearly equivalent to their similarly named // The following methods are nearly equivalent to their similarly named