Make wxDataViewItemArray more efficient
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,6 +74,7 @@ public:
|
|||||||
{ m_id = item.m_id; }
|
{ m_id = item.m_id; }
|
||||||
bool IsOk() const { return m_id != NULL; }
|
bool IsOk() const { return m_id != NULL; }
|
||||||
void* GetID() const { return m_id; }
|
void* GetID() const { return m_id; }
|
||||||
|
operator const void* () const { return m_id; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void* m_id;
|
void* m_id;
|
||||||
@@ -396,7 +397,7 @@ protected:
|
|||||||
// wxDataViewCtrlBase
|
// wxDataViewCtrlBase
|
||||||
// ---------------------------------------------------------
|
// ---------------------------------------------------------
|
||||||
|
|
||||||
WX_DECLARE_OBJARRAY(wxDataViewItem, wxDataViewItemArray);
|
WX_DEFINE_ARRAY(wxDataViewItem, wxDataViewItemArray);
|
||||||
|
|
||||||
#define wxDV_SINGLE 0x0000 // for convenience
|
#define wxDV_SINGLE 0x0000 // for convenience
|
||||||
#define wxDV_MULTIPLE 0x0001 // can select multiple items
|
#define wxDV_MULTIPLE 0x0001 // can select multiple items
|
||||||
|
@@ -533,9 +533,6 @@ void wxDataViewColumnBase::SetFlags(int flags)
|
|||||||
// wxDataViewCtrlBase
|
// wxDataViewCtrlBase
|
||||||
// ---------------------------------------------------------
|
// ---------------------------------------------------------
|
||||||
|
|
||||||
#include "wx/arrimpl.cpp"
|
|
||||||
WX_DEFINE_OBJARRAY(wxDataViewItemArray);
|
|
||||||
|
|
||||||
IMPLEMENT_ABSTRACT_CLASS(wxDataViewCtrlBase, wxControl)
|
IMPLEMENT_ABSTRACT_CLASS(wxDataViewCtrlBase, wxControl)
|
||||||
|
|
||||||
wxDataViewCtrlBase::wxDataViewCtrlBase()
|
wxDataViewCtrlBase::wxDataViewCtrlBase()
|
||||||
|
Reference in New Issue
Block a user