X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a159a1da1e72bfdbe52c28457277109bc167fdb..478cde3220641d49cfbd492e799107d13ccdfeb3:/include/wx/mac/carbon/combobox.h diff --git a/include/wx/mac/carbon/combobox.h b/include/wx/mac/carbon/combobox.h index 14d9b055a3..82b4956c15 100644 --- a/include/wx/mac/carbon/combobox.h +++ b/include/wx/mac/carbon/combobox.h @@ -16,11 +16,15 @@ #pragma interface "combobox.h" #endif -#include "wx/textctrl.h" #include "wx/choice.h" WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr; +// forward declaration of private implementation classes + +class wxComboBoxText ; +class wxComboBoxChoice ; + // Combobox item class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase { @@ -34,8 +38,8 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase virtual void DoMoveWindow(int x, int y, int width, int height); // forward these functions to all subcontrols - virtual bool Enable(bool enable = TRUE); - virtual bool Show(bool show = TRUE); + virtual bool Enable(bool enable = true); + virtual bool Show(bool show = true); virtual void SetFocus(); // callback functions @@ -88,12 +92,10 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase virtual int GetSelection() const ; virtual void SetSelection(int n); - virtual void Select(int n) { SetSelection(n) ; } virtual int FindString(const wxString& s) const; virtual wxString GetString(int n) const ; virtual wxString GetStringSelection() const ; virtual void SetString(int n, const wxString& s) ; - virtual bool SetStringSelection(const wxString& sel); // Text field functions virtual wxString GetValue() const ; @@ -106,12 +108,25 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase virtual void SetInsertionPoint(long pos); virtual void SetInsertionPointEnd(); virtual long GetInsertionPoint() const ; - virtual long GetLastPosition() const ; + virtual wxTextPos GetLastPosition() const ; virtual void Replace(long from, long to, const wxString& value); virtual void Remove(long from, long to); virtual void SetSelection(long from, long to); virtual void SetEditable(bool editable); virtual int GetCount() const ; + + virtual bool IsEditable() const ; + + virtual void Undo() ; + virtual void Redo() ; + virtual void SelectAll() ; + + virtual bool CanCopy() const ; + virtual bool CanCut() const ; + virtual bool CanPaste() const ; + virtual bool CanUndo() const ; + virtual bool CanRedo() const ; + wxInt32 MacControlHit( WXEVENTHANDLERREF handler , WXEVENTREF event ) ; wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST @@ -128,8 +143,8 @@ protected: void FreeData(); // the subcontrols - wxTextCtrl* m_text; - wxChoice* m_choice; + wxComboBoxText* m_text; + wxComboBoxChoice* m_choice; }; #endif