X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/52479aefae169d5c85cd0e07d159db0b8dd0a965..b220b1a2c8aeb6cf8f74ea7b3c354241b0a4f222:/include/wx/mac/classic/combobox.h diff --git a/include/wx/mac/classic/combobox.h b/include/wx/mac/classic/combobox.h index 68b3b02820..d207bbdb94 100644 --- a/include/wx/mac/classic/combobox.h +++ b/include/wx/mac/classic/combobox.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: combobox.h +// Name: wx/mac/classic/combobox.h // Purpose: wxComboBox class // Author: Stefan Csomor // Modified by: @@ -12,11 +12,6 @@ #ifndef _WX_COMBOBOX_H_ #define _WX_COMBOBOX_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "combobox.h" -#endif - -#include "wx/textctrl.h" #include "wx/choice.h" WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr; @@ -34,8 +29,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 +83,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 int FindString(const wxString& s, bool bCase = false) 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 +99,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 { return m_choice->GetCount() ; } + + 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 ; + void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ; wxCONTROL_ITEMCONTAINER_CLIENTDATAOBJECT_RECAST