X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..ade4ae2c51fd5406a8d7bbebc36ccd2c94e48c59:/include/wx/cocoa/textctrl.h diff --git a/include/wx/cocoa/textctrl.h b/include/wx/cocoa/textctrl.h index 7d91e4912a..64e4f32a6c 100644 --- a/include/wx/cocoa/textctrl.h +++ b/include/wx/cocoa/textctrl.h @@ -4,9 +4,9 @@ // Author: David Elliott // Modified by: // Created: 2003/03/16 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __WX_COCOA_TEXTCTRL_H__ @@ -17,7 +17,7 @@ // ======================================================================== // wxTextCtrl // ======================================================================== -class WXDLLEXPORT wxTextCtrl : public wxTextCtrlBase, protected wxCocoaNSTextField +class WXDLLIMPEXP_CORE wxTextCtrl : public wxTextCtrlBase, protected wxCocoaNSTextField { DECLARE_DYNAMIC_CLASS(wxTextCtrl) DECLARE_EVENT_TABLE() @@ -50,12 +50,12 @@ public: // ------------------------------------------------------------------------ protected: virtual void Cocoa_didChangeText(void); + virtual void CocoaTarget_action(void); // ------------------------------------------------------------------------ // Implementation // ------------------------------------------------------------------------ public: virtual wxString GetValue() const; - virtual void SetValue(const wxString& value); virtual int GetLineLength(long lineNo) const; virtual wxString GetLineText(long lineNo) const; @@ -108,7 +108,7 @@ public: virtual void SetInsertionPoint(long pos); virtual void SetInsertionPointEnd(); virtual long GetInsertionPoint() const; - virtual long GetLastPosition() const; + virtual wxTextPos GetLastPosition() const; virtual void SetSelection(long from, long to); // virtual void SelectAll(); @@ -116,6 +116,8 @@ public: protected: virtual wxSize DoGetBestSize() const; + + virtual void DoSetValue(const wxString& value, int flags = 0); }; #endif // __WX_COCOA_TEXTCTRL_H__