Added wxListCtrl to derive from wxGenericListCtrl,
ditto for wxImageList git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d62144c98d
commit
b31989e208
@ -84,5 +84,25 @@ private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericImageList)
|
||||
};
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
/*
|
||||
* wxImageList has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
*/
|
||||
|
||||
class WXDLLEXPORT wxImageList: public wxGenericImageList
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxImageList)
|
||||
|
||||
public:
|
||||
wxImageList() {}
|
||||
|
||||
wxImageList( int width, int height, bool mask = TRUE, int initialCount = 1 )
|
||||
: wxGenericImageList(width, height, mask, initialCount)
|
||||
{
|
||||
}
|
||||
};
|
||||
#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
|
||||
|
||||
#endif // __IMAGELISTH_G__
|
||||
|
||||
|
@ -220,7 +220,29 @@ private:
|
||||
DECLARE_DYNAMIC_CLASS(wxGenericListCtrl);
|
||||
};
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
/*
|
||||
* wxListCtrl has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
*/
|
||||
|
||||
class WXDLLEXPORT wxListCtrl: public wxGenericListCtrl
|
||||
{
|
||||
DECLARE_DYNAMIC_CLASS(wxListCtrl)
|
||||
|
||||
public:
|
||||
wxListCtrl() {}
|
||||
|
||||
wxListCtrl(wxWindow *parent, wxWindowID id = -1,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxLC_ICON,
|
||||
const wxValidator &validator = wxDefaultValidator,
|
||||
const wxString &name = "listctrl" )
|
||||
: wxGenericListCtrl(parent, id, pos, size, style, validator, name)
|
||||
{
|
||||
}
|
||||
};
|
||||
#endif // !__WXMSW__ || __WIN16__ || __WXUNIVERSAL__
|
||||
|
||||
#endif // __LISTCTRLH_G__
|
||||
|
||||
// vi:sts=4:sw=4:et
|
||||
|
@ -1,13 +1,10 @@
|
||||
#ifndef _WX_IMAGLIST_H_BASE_
|
||||
#define _WX_IMAGLIST_H_BASE_
|
||||
|
||||
#if defined(__WIN32__)
|
||||
#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
|
||||
#include "wx/msw/imaglist.h"
|
||||
#endif
|
||||
#include "wx/generic/imaglist.h"
|
||||
#if !defined(__WIN32__)
|
||||
#define wxImageList wxGenericImageList
|
||||
#define sm_classwxImageList sm_classwxGenericImageList
|
||||
#else
|
||||
#include "wx/generic/imaglist.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -315,11 +315,8 @@ private:
|
||||
|
||||
#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
|
||||
#include "wx/msw/listctrl.h"
|
||||
#endif
|
||||
#include "wx/generic/listctrl.h"
|
||||
#if !defined(__WIN32__) || defined(__WXUNIVERSAL__)
|
||||
#define wxListCtrl wxGenericListCtrl
|
||||
#define sm_classwxListCtrl sm_classwxGenericListCtrl
|
||||
#else
|
||||
#include "wx/generic/listctrl.h"
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -28,6 +28,15 @@
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxGenericImageList, wxObject)
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
/*
|
||||
* wxImageList has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
*/
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxImageList, wxGenericImageList)
|
||||
#endif
|
||||
|
||||
wxGenericImageList::wxGenericImageList( int width, int height, bool mask, int initialCount )
|
||||
{
|
||||
(void)Create(width, height, mask, initialCount);
|
||||
|
@ -4521,6 +4521,15 @@ BEGIN_EVENT_TABLE(wxGenericListCtrl,wxControl)
|
||||
EVT_IDLE(wxGenericListCtrl::OnIdle)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
#if !defined(__WXMSW__) || defined(__WIN16__) || defined(__WXUNIVERSAL__)
|
||||
/*
|
||||
* wxListCtrl has to be a real class or we have problems with
|
||||
* the run-time information.
|
||||
*/
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxGenericListCtrl)
|
||||
#endif
|
||||
|
||||
wxGenericListCtrl::wxGenericListCtrl()
|
||||
{
|
||||
m_imageListNormal = (wxGenericImageList *) NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user