]> git.saurik.com Git - wxWidgets.git/commit - include/wx/msw/notebook.h
Refactor: use wxBookCtrlBase::m_selection in all derived classes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Oct 2010 16:54:36 +0000 (16:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 27 Oct 2010 16:54:36 +0000 (16:54 +0000)
commit681be2ef80274e6c39b243922a594c59e4983dab
tree39512e225e01aa8e165975000ddf7d65e3ef1c19
parent7e837615b95205297821dc0b85791ad9e0055df6
Refactor: use wxBookCtrlBase::m_selection in all derived classes.

All book control classes with the exception of wxGTK wxNotebook stored the
currently selected page in m_selection or m_nSelection (or, in wxUniv
wxNotebook case, m_sel) variable. Remove all of them and add m_selection
directly to the base class itself so that it can be reused everywhere.

Closes #12622.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
22 files changed:
include/wx/bookctrl.h
include/wx/choicebk.h
include/wx/generic/notebook.h
include/wx/gtk/notebook.h
include/wx/listbook.h
include/wx/msw/notebook.h
include/wx/os2/notebook.h
include/wx/osx/notebook.h
include/wx/toolbook.h
include/wx/treebook.h
include/wx/univ/notebook.h
src/common/bookctrl.cpp
src/generic/choicbkg.cpp
src/generic/listbkg.cpp
src/generic/toolbkg.cpp
src/generic/treebkg.cpp
src/gtk/notebook.cpp
src/gtk1/notebook.cpp
src/msw/notebook.cpp
src/os2/notebook.cpp
src/osx/notebook_osx.cpp
src/univ/notebook.cpp