]> git.saurik.com Git - wxWidgets.git/commit - Makefile.in
Refactor wxButton and wxToggleButton to derive from wxAnyButton.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 Jun 2011 13:00:42 +0000 (13:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 14 Jun 2011 13:00:42 +0000 (13:00 +0000)
commitb4354db179f5b9f3107cc532bb5232deccab90d0
treed432f6eb101f75a56004b5cebe9ac0341c3a1cdc
parenteaa9e06d92ba1d5d2018b99f9bb9759732f95cdd
Refactor wxButton and wxToggleButton to derive from wxAnyButton.

Introduce wxAnyButton class, a common base class for wxButton and
wxToggleButton, allowing to reuse the same implementation for them.

This also allows to implement support for bitmaps in wxToggleButton for all
platforms and make wxBitmapToggleButton a trivial subclass of it everywhere,
similarly to wxBitmapButton and wxButton.

Closes #13198.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
44 files changed:
Makefile.in
build/bakefiles/files.bkl
build/msw/makefile.bcc
build/msw/makefile.gcc
build/msw/makefile.vc
build/msw/makefile.wat
build/msw/wx_core.dsp
build/msw/wx_vc7_core.vcproj
build/msw/wx_vc8_core.vcproj
build/msw/wx_vc9_core.vcproj
docs/changes.txt
include/wx/anybutton.h [new file with mode: 0644]
include/wx/button.h
include/wx/gtk/anybutton.h [new file with mode: 0644]
include/wx/gtk/button.h
include/wx/gtk/tglbtn.h
include/wx/msw/anybutton.h [new file with mode: 0644]
include/wx/msw/bmpbuttn.h
include/wx/msw/button.h
include/wx/msw/tglbtn.h
include/wx/osx/anybutton.h [new file with mode: 0644]
include/wx/osx/button.h
include/wx/osx/tglbtn.h
include/wx/platform.h
include/wx/tglbtn.h
samples/widgets/button.cpp
samples/widgets/toggle.cpp
src/common/btncmn.cpp
src/gtk/anybutton.cpp [new file with mode: 0644]
src/gtk/button.cpp
src/gtk/tglbtn.cpp
src/msw/anybutton.cpp [new file with mode: 0644]
src/msw/bmpbuttn.cpp
src/msw/button.cpp
src/msw/tglbtn.cpp
src/osx/anybutton_osx.cpp [new file with mode: 0644]
src/osx/button_osx.cpp
src/osx/carbon/anybutton.cpp [new file with mode: 0644]
src/osx/carbon/button.cpp
src/osx/cocoa/anybutton.mm [new file with mode: 0644]
src/osx/cocoa/button.mm
src/osx/iphone/anybutton.mm [new file with mode: 0644]
src/osx/iphone/button.mm
src/osx/tglbtn_osx.cpp