X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d921af5140af576cf7651d4f47d5dc00a83e37f5..408ac1b8cf965067dbc0c36beabac0c8a5769501:/include/wx/mac/choice.h diff --git a/include/wx/mac/choice.h b/include/wx/mac/choice.h index 2d526e0d56..3f9909e031 100644 --- a/include/wx/mac/choice.h +++ b/include/wx/mac/choice.h @@ -20,7 +20,7 @@ #include "wx/dynarray.h" -WXDLLEXPORT_DATA(extern const char*) wxChoiceNameStr; +WXDLLEXPORT_DATA(extern const wxChar*) wxChoiceNameStr; WX_DEFINE_ARRAY( char * , wxChoiceDataArray ) ; @@ -57,6 +57,7 @@ public: // implement base class pure virtuals virtual int DoAppend(const wxString& item); + virtual int DoInsert(const wxString& item, int pos); virtual void Delete(int n); virtual void Clear(); @@ -67,24 +68,8 @@ public: virtual int FindString(const wxString& s) const; virtual wxString GetString(int n) const ; virtual void SetString( int , const wxString& s ) ; - void MacHandleControlClick( WXWidget control , wxInt16 controlpart ) ; - -/* - virtual void Append(const wxString& item); - // Added min Append and GetClientData - virtual void Append(const wxString& item, void *client_data); - virtual void *GetClientData(int index) const; - virtual inline void Select( int n ) { SetSelection( n ); } - virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); - virtual wxString GetStringSelection() const ; - virtual bool SetStringSelection(const wxString& sel); - - // Mac specific - virtual void Command(wxCommandEvent& event); - void MacHandleControlClick( WXWidget control , wxInt16 controlpart ) ; - - virtual inline int GetColumns() const { return 1 ; }; -*/ + void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ; + protected: virtual wxSize DoGetBestSize() const ; virtual void DoSetItemClientData( int n, void* clientData );