X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63f7d5022e786be61c0226314dac98739f49a426..86ac84b8ce086e6bbda58f422d41f84268606e35:/include/wx/textentry.h?ds=sidebyside diff --git a/include/wx/textentry.h b/include/wx/textentry.h index 1194b61f90..cdf6e522a4 100644 --- a/include/wx/textentry.h +++ b/include/wx/textentry.h @@ -17,6 +17,7 @@ typedef long wxTextPos; class WXDLLIMPEXP_FWD_BASE wxArrayString; class WXDLLIMPEXP_FWD_CORE wxTextEntryHintData; +class WXDLLIMPEXP_FWD_CORE wxWindow; // ---------------------------------------------------------------------------- // wxTextEntryBase @@ -44,7 +45,7 @@ public: virtual void WriteText(const wxString& text) = 0; virtual void AppendText(const wxString& text); - virtual wxString GetValue() const = 0; + virtual wxString GetValue() const; virtual wxString GetRange(long from, long to) const; bool IsEmpty() const { return GetLastPosition() <= 0; } @@ -152,6 +153,12 @@ protected: }; virtual void DoSetValue(const wxString& value, int flags); + virtual wxString DoGetValue() const = 0; + + // override this to return the associated window, it will be used for event + // generation and also by generic hints implementation + virtual wxWindow *GetEditableWindow() = 0; + // class which should be used to temporarily disable text change events // @@ -184,11 +191,6 @@ protected: bool EventsAllowed() const { return m_eventsBlock == 0; } private: - // override this to return the associated window, it will be used for event - // generation and also by generic hints implementation - virtual wxWindow *GetEditableWindow() = 0; - - // suppress or resume the text changed events generation: don't use these // functions directly, use EventsSuppressor class above instead void SuppressTextChangedEvents()