49ed30caae
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
65 lines
2.3 KiB
C++
65 lines
2.3 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: include/wx/msw/taskbarbutton.h
|
|
// Purpose: Defines wxTaskBarButtonImpl class.
|
|
// Author: Chaobin Zhang <zhchbin@gmail.com>
|
|
// Created: 2014-06-01
|
|
// Copyright: (c) 2014 wxWidgets development team
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_MSW_TASKBARBUTTON_H_
|
|
#define _WX_MSW_TASKBARBUTTON_H_
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#if wxUSE_TASKBARBUTTON
|
|
|
|
#include "wx/vector.h"
|
|
#include "wx/taskbarbutton.h"
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxITaskbarList3;
|
|
|
|
class WXDLLIMPEXP_CORE wxTaskBarButtonImpl : public wxTaskBarButton
|
|
{
|
|
public:
|
|
wxTaskBarButtonImpl(wxWindow* parent);
|
|
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;
|
|
virtual void SetProgressState(wxTaskBarButtonState state) wxOVERRIDE;
|
|
virtual void SetOverlayIcon(const wxIcon& icon,
|
|
const wxString& description = wxString()) wxOVERRIDE;
|
|
virtual void SetThumbnailClip(const wxRect& rect) wxOVERRIDE;
|
|
virtual void SetThumbnailContents(const wxWindow *child) wxOVERRIDE;
|
|
virtual bool InsertThumbBarButton(size_t pos,
|
|
wxThumbBarButton *button) wxOVERRIDE;
|
|
virtual bool AppendThumbBarButton(wxThumbBarButton *button) wxOVERRIDE;
|
|
virtual bool AppendSeparatorInThumbBar() wxOVERRIDE;
|
|
virtual wxThumbBarButton* RemoveThumbBarButton(
|
|
wxThumbBarButton *button) wxOVERRIDE;
|
|
virtual wxThumbBarButton* RemoveThumbBarButton(int id) wxOVERRIDE;
|
|
wxThumbBarButton* GetThumbBarButtonByIndex(size_t index);
|
|
bool InitOrUpdateThumbBarButtons();
|
|
|
|
private:
|
|
WXHWND m_hwnd;
|
|
wxITaskbarList3 *m_taskbarList;
|
|
|
|
typedef wxVector<wxThumbBarButton*> wxThumbBarButtons;
|
|
wxThumbBarButtons m_thumbBarButtons;
|
|
|
|
int m_progressRange;
|
|
bool m_hasInitThumbnailToolbar;
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxTaskBarButtonImpl);
|
|
};
|
|
|
|
#endif // wxUSE_TASKBARBUTTON
|
|
|
|
#endif // _WX_MSW_TASKBARBUTTON_H_
|