X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ec1179b86dac6c87ad9f2cd126f87e92642c62c..472eec8a0391538e4dcf7f7c6c4f4d44c8383616:/include/wx/textentry.h?ds=sidebyside diff --git a/include/wx/textentry.h b/include/wx/textentry.h index d7ba22c10b..9ebbdeb5bc 100644 --- a/include/wx/textentry.h +++ b/include/wx/textentry.h @@ -144,6 +144,7 @@ protected: wxTextEntryBase *m_text; bool m_suppress; }; + friend class EventsSuppressor; // return true if the events are currently not suppressed bool EventsAllowed() const { return m_eventsBlock == 0; } @@ -171,15 +172,20 @@ private: // initially the generation of the events is enabled virtual void EnableTextChangedEvents(bool WXUNUSED(enable)) { } - - friend class EventsSuppressor; - // if this counter is non-null, events are blocked unsigned m_eventsBlock; }; -#ifdef __WXGTK20__ +#ifdef __WXUNIVERSAL__ + // TODO: we need to use wxTextEntryDelegate here, but for now just prevent + // the GTK/MSW classes from being used in wxUniv build + class WXDLLIMPEXP_CORE wxTextEntry : public wxTextEntryBase + { + }; +#elif defined(__WXGTK20__) #include "wx/gtk/textentry.h" +#elif defined(__WXMSW__) + #include "wx/msw/textentry.h" #else // no platform-specific implementation of wxTextEntry yet class WXDLLIMPEXP_CORE wxTextEntry : public wxTextEntryBase