X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54173563c3ff0c79a33dd1bc33a13d74fec15df1..eff339168e77e6a07d686824ff78df2dc7a866d9:/src/stc/stc.h.in diff --git a/src/stc/stc.h.in b/src/stc/stc.h.in index ca1a9fa996..abbfe19b2a 100644 --- a/src/stc/stc.h.in +++ b/src/stc/stc.h.in @@ -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 @@ -285,7 +288,11 @@ public: // implement wxTextEntryBase pure virtual methods // ---------------------------------------------- - virtual void WriteText(const wxString& text) { AddText(text); } + virtual void WriteText(const wxString& text) + { + ReplaceSelection(text); + } + virtual void Remove(long from, long to) { Replace(from, to, ""); @@ -329,6 +336,11 @@ public: } } + virtual void SelectNone() + { + ClearSelections(); + } + #ifdef SWIG void GetSelection(long* OUTPUT, long* OUTPUT) const; #else @@ -440,6 +452,7 @@ public: static wxVersionInfo GetLibraryVersionInfo(); protected: + virtual void DoSetValue(const wxString& value, int flags); virtual wxString DoGetValue() const { return GetText(); } virtual wxWindow *GetEditableWindow() { return this; } @@ -600,8 +613,8 @@ private: int m_x; int m_y; - int m_token; /* wxEVT_STC__MODIFIED with SC_MOD_CONTAINER */ - int m_annotationLinesAdded; /* wxEVT_STC_MODIFIED with SC_MOD_CHANGEANNOTATION */ + int m_token; // wxEVT_STC__MODIFIED with SC_MOD_CONTAINER + int m_annotationLinesAdded; // wxEVT_STC_MODIFIED with SC_MOD_CHANGEANNOTATION int m_updated; // wxEVT_STC_UPDATEUI