Expose setting description of overlay icon for accessibility.
Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
09ccad0b65
commit
4318edc865
@ -26,7 +26,8 @@ public:
|
||||
virtual void Hide() wxOVERRIDE;
|
||||
virtual void SetThumbnailTooltip(const wxString& tooltip) wxOVERRIDE;
|
||||
virtual void SetProgressState(wxTaskBarButtonState state) wxOVERRIDE;
|
||||
virtual void SetOverlayIcon(const wxIcon& icon) wxOVERRIDE;
|
||||
virtual void SetOverlayIcon(const wxIcon& icon,
|
||||
const wxString& description = wxString()) wxOVERRIDE;
|
||||
virtual void SetThumbnailClip(const wxRect& rect) wxOVERRIDE;
|
||||
virtual bool AddThumbBarButton(wxThumbBarButton *button) wxOVERRIDE;
|
||||
virtual void ShowThumbnailToolbar() wxOVERRIDE;
|
||||
|
@ -33,7 +33,7 @@ class WXDLLIMPEXP_ADV wxThumbBarButton {
|
||||
public:
|
||||
wxThumbBarButton(int id,
|
||||
const wxIcon& icon,
|
||||
const wxString& tooltip = wxEmptyString);
|
||||
const wxString& tooltip = wxString());
|
||||
|
||||
virtual ~wxThumbBarButton() {}
|
||||
|
||||
@ -59,7 +59,8 @@ public:
|
||||
virtual void Hide() = 0;
|
||||
virtual void SetThumbnailTooltip(const wxString& tooltip) = 0;
|
||||
virtual void SetProgressState(wxTaskBarButtonState state) = 0;
|
||||
virtual void SetOverlayIcon(const wxIcon& icon) = 0;
|
||||
virtual void SetOverlayIcon(const wxIcon& icon,
|
||||
const wxString& description = wxString()) = 0;
|
||||
virtual void SetThumbnailClip(const wxRect& rect) = 0;
|
||||
|
||||
/**
|
||||
|
@ -96,9 +96,12 @@ void wxTaskBarButtonImpl::SetProgressState(wxTaskBarButtonState state)
|
||||
m_taskbarList->SetProgressState(m_hwnd, static_cast<TBPFLAG>(state));
|
||||
}
|
||||
|
||||
void wxTaskBarButtonImpl::SetOverlayIcon(const wxIcon& icon)
|
||||
void wxTaskBarButtonImpl::SetOverlayIcon(const wxIcon& icon,
|
||||
const wxString& description)
|
||||
{
|
||||
m_taskbarList->SetOverlayIcon(m_hwnd, GetHiconOf(icon), NULL);
|
||||
m_taskbarList->SetOverlayIcon(m_hwnd,
|
||||
GetHiconOf(icon),
|
||||
description.wc_str());
|
||||
}
|
||||
|
||||
void wxTaskBarButtonImpl::SetThumbnailClip(const wxRect& rect)
|
||||
|
Loading…
Reference in New Issue
Block a user