From c17570e8e2fa78f3ce3e2a6a369f502e58233d2a Mon Sep 17 00:00:00 2001 From: "Chaobin, Zhang" Date: Wed, 10 Sep 2014 09:15:07 +0000 Subject: [PATCH] Move wxTaskBarButton into core library. Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build/bakefiles/files.bkl | 5 +++-- build/files | 3 +++ build/msw/wx_core.vcxproj | 5 ++++- build/msw/wx_core.vcxproj.filters | 11 ++++++++++- include/wx/msw/taskbarbutton.h | 2 +- include/wx/taskbarbutton.h | 6 +++--- samples/taskbarbutton/taskbarbutton.cpp | 3 ++- 7 files changed, 26 insertions(+), 9 deletions(-) diff --git a/build/bakefiles/files.bkl b/build/bakefiles/files.bkl index 95fe0deeac..f66828d1f2 100644 --- a/build/bakefiles/files.bkl +++ b/build/bakefiles/files.bkl @@ -1204,6 +1204,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file! wx/xpmdecod.h wx/xpmhand.h wx/xrc/xmlreshandler.h + wx/taskbarbutton.h @@ -2001,6 +2002,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file! src/msw/textentry.cpp src/msw/tglbtn.cpp src/msw/treectrl.cpp + src/msw/taskbarbutton.cpp wx/generic/clrpickerg.h @@ -2096,6 +2098,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file! wx/msw/toplevel.h wx/msw/treectrl.h wx/msw/window.h + wx/msw/taskbarbutton.h @@ -3025,13 +3028,11 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file! src/msw/richtooltip.cpp src/msw/sound.cpp src/msw/taskbar.cpp - src/msw/taskbarbutton.cpp wx/msw/notifmsg.h wx/msw/sound.h wx/msw/taskbar.h - wx/msw/taskbarbutton.h diff --git a/build/files b/build/files index e4a601288d..0795577838 100644 --- a/build/files +++ b/build/files @@ -757,6 +757,7 @@ GUI_CMN_HDR = wx/statbox.h wx/stattext.h wx/statusbr.h + wx/taskbarbutton.h wx/testing.h wx/textcompleter.h wx/textctrl.h @@ -1625,6 +1626,7 @@ MSW_SRC = src/msw/statusbar.cpp src/msw/statline.cpp src/msw/stattext.cpp + src/msw/taskbarbutton.cpp src/msw/toolbar.cpp src/msw/textctrl.cpp src/msw/textentry.cpp @@ -1716,6 +1718,7 @@ MSW_HDR = wx/msw/statusbar.h wx/msw/statline.h wx/msw/stattext.h + wx/msw/taskbarbutton.h wx/msw/toolbar.h wx/msw/textctrl.h wx/msw/textentry.h diff --git a/build/msw/wx_core.vcxproj b/build/msw/wx_core.vcxproj index 1b69afb0f2..88a15226c1 100644 --- a/build/msw/wx_core.vcxproj +++ b/build/msw/wx_core.vcxproj @@ -1002,6 +1002,7 @@ + @@ -1122,6 +1123,7 @@ + @@ -1327,6 +1329,7 @@ + @@ -1370,4 +1373,4 @@ - \ No newline at end of file + diff --git a/build/msw/wx_core.vcxproj.filters b/build/msw/wx_core.vcxproj.filters index 4aa3c32166..7eacd606e5 100644 --- a/build/msw/wx_core.vcxproj.filters +++ b/build/msw/wx_core.vcxproj.filters @@ -837,6 +837,9 @@ MSW Sources + + MSW Sources + MSW Sources @@ -1612,6 +1615,9 @@ MSW Headers + + MSW Headers + MSW Headers @@ -1792,6 +1798,9 @@ Common Headers + + Common Headers + Common Headers @@ -1903,4 +1912,4 @@ MSW Headers - \ No newline at end of file + diff --git a/include/wx/msw/taskbarbutton.h b/include/wx/msw/taskbarbutton.h index c88d1f36b0..2c1f9002fa 100644 --- a/include/wx/msw/taskbarbutton.h +++ b/include/wx/msw/taskbarbutton.h @@ -17,7 +17,7 @@ struct ITaskbarList3; -class WXDLLIMPEXP_ADV wxTaskBarButtonImpl : public wxTaskBarButton { +class WXDLLIMPEXP_CORE wxTaskBarButtonImpl : public wxTaskBarButton { public: virtual ~wxTaskBarButtonImpl(); diff --git a/include/wx/taskbarbutton.h b/include/wx/taskbarbutton.h index 904efed5b1..55edc5697d 100644 --- a/include/wx/taskbarbutton.h +++ b/include/wx/taskbarbutton.h @@ -22,7 +22,7 @@ /** State of the task bar button. */ -enum wxTaskBarButtonState +enum WXDLLIMPEXP_CORE wxTaskBarButtonState { wxTASKBAR_BUTTON_NO_PROGRESS = 0, wxTASKBAR_BUTTON_INDETERMINATE = 1, @@ -31,7 +31,7 @@ enum wxTaskBarButtonState wxTASKBAR_BUTTON_PAUSED = 8 }; -class WXDLLIMPEXP_ADV wxThumbBarButton { +class WXDLLIMPEXP_CORE wxThumbBarButton { public: wxThumbBarButton(int id, const wxIcon& icon, @@ -64,7 +64,7 @@ private: bool m_interactive; }; -class WXDLLIMPEXP_ADV wxTaskBarButton +class WXDLLIMPEXP_CORE wxTaskBarButton { public: wxTaskBarButton() { } diff --git a/samples/taskbarbutton/taskbarbutton.cpp b/samples/taskbarbutton/taskbarbutton.cpp index 6de3becdf5..54387438ea 100644 --- a/samples/taskbarbutton/taskbarbutton.cpp +++ b/samples/taskbarbutton/taskbarbutton.cpp @@ -86,7 +86,8 @@ wxIcon CreateRandomIcon() wxIcon icon; icon.CopyFromBitmap(CreateBitmap(*(colours[counter]), 16, 16)); - counter = (++counter) % WXSIZEOF(colours); + counter += 1; + counter = counter % WXSIZEOF(colours); return icon; }