attemps to fix compilation after applying the last patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,17 +47,27 @@
|
|||||||
#include "wx/textctrl.h"
|
#include "wx/textctrl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Include wx/listctrl.h (with wxListView declaration)
|
// under Win32 we always use the native version and also may use the generic
|
||||||
// only when wxGenericListCtrl is the only
|
// one, however some things should be done only if we use only the generic
|
||||||
// implementation, and therefore wxListView needs
|
// version
|
||||||
// to be derived from the 'generic' version.
|
|
||||||
|
|
||||||
#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
|
#if defined(__WIN32__) && !defined(__WXUNIVERSAL__)
|
||||||
#include "wx/listctrl.h"
|
#define HAVE_NATIVE_LISTCTRL
|
||||||
#else
|
|
||||||
#include "wx/generic/listctrl.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// if we have the native control, wx/listctrl.h declares it and not this one
|
||||||
|
#ifdef HAVE_NATIVE_LISTCTRL
|
||||||
|
#include "wx/generic/listctrl.h"
|
||||||
|
#else // !HAVE_NATIVE_LISTCTRL
|
||||||
|
#include "wx/listctrl.h"
|
||||||
|
|
||||||
|
// if we have a native version, its implementation file does all this
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxListItem, wxObject)
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxListView, wxListCtrl)
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxListEvent, wxNotifyEvent)
|
||||||
|
|
||||||
|
IMPLEMENT_DYNAMIC_CLASS(wxListCtrl, wxGenericListCtrl)
|
||||||
|
#endif // HAVE_NATIVE_LISTCTRL/!HAVE_NATIVE_LISTCTRL
|
||||||
|
|
||||||
#if defined(__WXGTK__)
|
#if defined(__WXGTK__)
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include "wx/gtk/win_gtk.h"
|
#include "wx/gtk/win_gtk.h"
|
||||||
@@ -4571,42 +4581,17 @@ void wxListMainWindow::GetVisibleLinesRange(size_t *from, size_t *to)
|
|||||||
*to = m_lineTo;
|
*to = m_lineTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
|
||||||
// wxListItem
|
|
||||||
// -------------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
#if !defined(__WIN32__) || defined(__WXUNIVERSAL__)
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxListItem, wxObject)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
// wxGenericListCtrl
|
// wxGenericListCtrl
|
||||||
// -------------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------------
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxGenericListCtrl, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxGenericListCtrl, wxControl)
|
||||||
|
|
||||||
#if !defined(__WIN32__)
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxListView, wxListCtrl)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(__WIN32__) || defined(__WXUNIVERSAL__)
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxListEvent, wxNotifyEvent)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxGenericListCtrl,wxControl)
|
BEGIN_EVENT_TABLE(wxGenericListCtrl,wxControl)
|
||||||
EVT_SIZE(wxGenericListCtrl::OnSize)
|
EVT_SIZE(wxGenericListCtrl::OnSize)
|
||||||
EVT_IDLE(wxGenericListCtrl::OnIdle)
|
EVT_IDLE(wxGenericListCtrl::OnIdle)
|
||||||
END_EVENT_TABLE()
|
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()
|
wxGenericListCtrl::wxGenericListCtrl()
|
||||||
{
|
{
|
||||||
m_imageListNormal = (wxImageListType *) NULL;
|
m_imageListNormal = (wxImageListType *) NULL;
|
||||||
|
Reference in New Issue
Block a user