Revise progress releted API to be more usual.
- Add PulseProgress - Add SetProgressRange, instead of hard coding 100. Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -21,7 +21,9 @@ class wxTaskBarButtonImpl : public wxTaskBarButton {
|
||||
public:
|
||||
virtual ~wxTaskBarButtonImpl();
|
||||
|
||||
virtual void SetProgressRange(int range) wxOVERRIDE;
|
||||
virtual void SetProgressValue(int value) wxOVERRIDE;
|
||||
virtual void PulseProgress() wxOVERRIDE;
|
||||
virtual void Show(bool show = true) wxOVERRIDE;
|
||||
virtual void Hide() wxOVERRIDE;
|
||||
virtual void SetThumbnailTooltip(const wxString& tooltip) wxOVERRIDE;
|
||||
@@ -43,6 +45,8 @@ private:
|
||||
typedef wxVector<wxThumbBarButton*> wxThumbBarButtons;
|
||||
wxThumbBarButtons m_thumbBarButtons;
|
||||
|
||||
int m_progressRange;
|
||||
|
||||
bool m_hasShownThumbnailToolbar;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user