]> git.saurik.com Git - wxWidgets.git/commit - src/generic/statusbr.cpp
Don't pop explicitly changed status messages.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Aug 2009 00:01:43 +0000 (00:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Aug 2009 00:01:43 +0000 (00:01 +0000)
commit6cf68971005ab7a0ccee82ffffa2924eeb62f689
tree4e7c8089c1a611792f02402b06f68997ecca9b09
parent0751510c21fdbde9e75814a3cc75e6678fb12f02
Don't pop explicitly changed status messages.

Calls to SetStatusText() in between Push/PopStatusText() were simply lost
before, now the text explicitly changed by SetStatusText() is preserved by the
next call to PopStatusText().

This required adding a new virtual method, called DoUpdateStatusText(), which
is now implemented in all the derived classes instead of overriding
SetStatusText() (on the bright side, it doesn't need to do any checks already
done in the base class any more).

Also fix PushStatusText() to actually show the text being pushed at all under
wxMSW as a side effect.

And further reduce code duplication between wxStatusBarBase and the derived
classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
13 files changed:
include/wx/generic/statusbr.h
include/wx/msw/statusbar.h
include/wx/osx/statusbr.h
include/wx/palmos/statusbr.h
include/wx/statusbr.h
include/wx/univ/statusbr.h
interface/wx/statusbr.h
src/common/statbar.cpp
src/generic/statusbr.cpp
src/msw/statusbar.cpp
src/osx/carbon/statbrma.cpp
src/palmos/statbrpalm.cpp
src/univ/statusbr.cpp