]> git.saurik.com Git - wxWidgets.git/commit
Big wxDataViewCtrl renderer classes refactoring.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Nov 2009 17:40:58 +0000 (17:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 10 Nov 2009 17:40:58 +0000 (17:40 +0000)
commit6eec70b984525aac09528c32411f19113620e284
tree8764e1fb52baeac9593ba53aa5b1ef49b26a2463
parentef6833f9ab82e9298e428aac081f500a3c62c822
Big wxDataViewCtrl renderer classes refactoring.

This commit adds no changes in functionality but paves way for the upcoming
improvements of wxDataViewCustomRenderer.

First, introduce wxDataViewCustomRendererBase class in order to allow
implementing behaviour common to custom renderers in all ports in this class
instead of triplicating it.

This required splitting monolithic dataview.h in more parts, now we have
wx/dvrenderer.h which defines wxDataViewRendererBase and the new
wxDataViewCustomRendererBase and includes wx/port/dvrenderer.h which define
wxDataViewRenderer and wx/port/dvrenderers.h which defines all the other
renderer classes.

Also bring renderers hierarchy in the generic version closer to other ports:
all standard renderer classes now inherit from wxDataViewRenderer and not
wxDataViewCustomRenderer in for consistency with the other ports.
wxDataViewRenderer itself still does derive from wxDataViewCustomRendererBase,
unlike elsewhere, but this is unavoidable considering that all generic
renderers are custom ones.

Finally do some cleanup in OS X part of the code: correct indentation,
spacing, comment style.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
25 files changed:
Makefile.in
build/bakefiles/files.bkl
build/msw/wx_adv.dsp
build/msw/wx_core.dsp
build/msw/wx_vc7_adv.vcproj
build/msw/wx_vc7_core.vcproj
build/msw/wx_vc8_adv.vcproj
build/msw/wx_vc8_core.vcproj
build/msw/wx_vc9_adv.vcproj
build/msw/wx_vc9_core.vcproj
include/wx/dataview.h
include/wx/dvrenderers.h [new file with mode: 0644]
include/wx/generic/dataview.h
include/wx/generic/dvrenderer.h [new file with mode: 0644]
include/wx/generic/dvrenderers.h [new file with mode: 0644]
include/wx/gtk/dataview.h
include/wx/gtk/dvrenderer.h [new file with mode: 0644]
include/wx/gtk/dvrenderers.h [new file with mode: 0644]
include/wx/osx/dataview.h
include/wx/osx/dvrenderer.h [new file with mode: 0644]
include/wx/osx/dvrenderers.h [new file with mode: 0644]
src/generic/datavgen.cpp
src/gtk/dataview.cpp
src/osx/carbon/dataview.cpp
src/osx/cocoa/dataview.mm