osx new layout
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// forward decl for GetSelections()
|
||||
class wxArrayInt;
|
||||
|
||||
// forward decl for wxMacListControl data type.
|
||||
class wxMacListControl;
|
||||
// forward decl for wxListWidgetImpl data type.
|
||||
class wxListWidgetImpl;
|
||||
|
||||
// List box item
|
||||
|
||||
@@ -32,6 +32,10 @@ WX_DEFINE_ARRAY( char* , wxListDataArray );
|
||||
// List box control
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_CORE wxListWidgetColumn;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxListWidgetCellValue;
|
||||
|
||||
class WXDLLIMPEXP_CORE wxListBox : public wxListBoxBase
|
||||
{
|
||||
public:
|
||||
@@ -86,7 +90,7 @@ public:
|
||||
const wxString& name = wxListBoxNameStr);
|
||||
|
||||
virtual ~wxListBox();
|
||||
|
||||
|
||||
// implement base class pure virtuals
|
||||
virtual void Refresh(bool eraseBack = true, const wxRect *rect = NULL);
|
||||
|
||||
@@ -95,6 +99,10 @@ public:
|
||||
virtual void SetString(unsigned int n, const wxString& s);
|
||||
virtual int FindString(const wxString& s, bool bCase = false) const;
|
||||
|
||||
// data callbacks
|
||||
virtual void GetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value );
|
||||
virtual void SetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value );
|
||||
|
||||
virtual bool IsSelected(int n) const;
|
||||
virtual int GetSelection() const;
|
||||
virtual int GetSelections(wxArrayInt& aSelections) const;
|
||||
@@ -110,11 +118,15 @@ public:
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
wxMacListControl* GetPeer() const;
|
||||
wxListWidgetImpl* GetListPeer() const;
|
||||
|
||||
bool MacGetBlockEvents() const { return m_blockEvents; }
|
||||
|
||||
protected:
|
||||
// callback for derived classes which may have to insert additional data
|
||||
// at a certain line - which cannot be predetermined for sorted list data
|
||||
virtual void OnItemInserted(unsigned int pos);
|
||||
|
||||
virtual void DoClear();
|
||||
virtual void DoDeleteOneItem(unsigned int n);
|
||||
|
||||
@@ -139,6 +151,21 @@ protected:
|
||||
|
||||
bool m_blockEvents;
|
||||
|
||||
wxListWidgetColumn* m_textColumn;
|
||||
|
||||
// data storage (copied from univ)
|
||||
|
||||
// the array containing all items (it is sorted if the listbox has
|
||||
// wxLB_SORT style)
|
||||
union
|
||||
{
|
||||
wxArrayString *unsorted;
|
||||
wxSortedArrayString *sorted;
|
||||
} m_strings;
|
||||
|
||||
// and this one the client data (either void or wxClientData)
|
||||
wxArrayPtrVoid m_itemsClientData;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxListBox)
|
||||
DECLARE_EVENT_TABLE()
|
||||
|
Reference in New Issue
Block a user