X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c84030e020e56735cb4b7c1534e99d21a8bb48c0..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/osx/textentry.h diff --git a/include/wx/osx/textentry.h b/include/wx/osx/textentry.h index 14ab4a0f67..2362cae8af 100644 --- a/include/wx/osx/textentry.h +++ b/include/wx/osx/textentry.h @@ -4,7 +4,6 @@ // Author: Stefan Csomor // Modified by: Kevin Ollivier // Created: 1998-01-01 -// RCS-ID: $Id: textctrl.h 62531 2009-11-01 00:58:04Z KO $ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -32,10 +31,8 @@ class WXDLLIMPEXP_CORE wxTextEntry: public wxTextEntryBase { public: - wxTextEntry() - { } - - virtual ~wxTextEntry() {}; + wxTextEntry(); + virtual ~wxTextEntry(); virtual bool IsEditable() const; @@ -82,26 +79,29 @@ public: virtual void SetSelection(long from, long to); virtual void SetEditable(bool editable); + virtual bool SendMaxLenEvent(); + // Implementation // -------------- virtual wxTextWidgetImpl * GetTextPeer() const; + wxTextCompleter *OSXGetCompleter() const { return m_completer; } + protected: virtual wxString DoGetValue() const; - + + virtual bool DoAutoCompleteStrings(const wxArrayString& choices); + virtual bool DoAutoCompleteCustom(wxTextCompleter *completer); + + // The object providing auto-completions or NULL if none. + wxTextCompleter *m_completer; + bool m_editable; // need to make this public because of the current implementation via callbacks unsigned long m_maxLength; - virtual void EnableTextChangedEvents(bool enable) - { - m_triggerUpdateEvents = enable; - } - - bool m_triggerUpdateEvents ; - }; #endif // _WX_OSX_TEXTENTRY_H_