Reverting failed mering of SOC2014_TASKBAR.
Command: git svn dcommit is aborted, and the two branches is diverged. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1565,15 +1565,6 @@
|
||||
// Recommended setting: 1, set to 0 for a tiny library size reduction
|
||||
#define wxUSE_TASKBARICON_BALLOONS 1
|
||||
|
||||
// Set this to 1 to enable following functionality added in Windows 7: thumbnail
|
||||
// representations, thumbnail toolbars, notification and status overlays,
|
||||
// progress indicators and jump lists.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1, set to 0 for a tiny library size reduction
|
||||
#define wxUSE_TASKBARBUTTON 1
|
||||
|
||||
// Set to 1 to compile MS Windows XP theme engine support
|
||||
#define wxUSE_UXTHEME 1
|
||||
|
||||
|
@@ -86,14 +86,6 @@
|
||||
# endif
|
||||
#endif /* wxUSE_TASKBARICON_BALLOONS */
|
||||
|
||||
#ifndef wxUSE_TASKBARBUTTON
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_TASKBARBUTTON must be defined."
|
||||
# else
|
||||
# define wxUSE_TASKBARBUTTON 0
|
||||
# endif
|
||||
#endif /* wxUSE_TASKBARBUTTON */
|
||||
|
||||
#ifndef wxUSE_UXTHEME
|
||||
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||
# error "wxUSE_UXTHEME must be defined."
|
||||
|
@@ -11,10 +11,6 @@
|
||||
#ifndef _WX_FRAME_H_
|
||||
#define _WX_FRAME_H_
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
class WXDLLIMPEXP_FWD_ADV wxTaskBarButton;
|
||||
#endif
|
||||
|
||||
class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase
|
||||
{
|
||||
public:
|
||||
@@ -113,15 +109,6 @@ public:
|
||||
virtual wxMenu* MSWFindMenuFromHMENU(WXHMENU hMenu);
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
// Return the taskbar button of the window.
|
||||
//
|
||||
// The pointer returned by this method belongs to the window and will be
|
||||
// deleted when the window itself is, do not delete it yourself. May return
|
||||
// NULL if the initialization of taskbar button failed.
|
||||
wxTaskBarButton* MSWGetTaskBarButton();
|
||||
#endif // wxUSE_TASKBARBUTTON
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
@@ -178,10 +165,6 @@ private:
|
||||
// used by IconizeChildFrames(), see comments there
|
||||
bool m_wasMinimized;
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
wxTaskBarButton *m_taskBarButton;
|
||||
#endif
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFrame)
|
||||
};
|
||||
|
@@ -1608,15 +1608,6 @@
|
||||
// Recommended setting: 1, set to 0 for a tiny library size reduction
|
||||
#define wxUSE_TASKBARICON_BALLOONS 1
|
||||
|
||||
// Set this to 1 to enable following functionality added in Windows 7: thumbnail
|
||||
// representations, thumbnail toolbars, notification and status overlays,
|
||||
// progress indicators and jump lists.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1, set to 0 for a tiny library size reduction
|
||||
#define wxUSE_TASKBARBUTTON 1
|
||||
|
||||
// Set to 1 to compile MS Windows XP theme engine support
|
||||
#define wxUSE_UXTHEME 1
|
||||
|
||||
|
@@ -100,15 +100,6 @@
|
||||
// Recommended setting: 1, set to 0 for a tiny library size reduction
|
||||
#define wxUSE_TASKBARICON_BALLOONS 1
|
||||
|
||||
// Set this to 1 to enable following functionality added in Windows 7: thumbnail
|
||||
// representations, thumbnail toolbars, notification and status overlays,
|
||||
// progress indicators and jump lists.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1, set to 0 for a tiny library size reduction
|
||||
#define wxUSE_TASKBARBUTTON 1
|
||||
|
||||
// Set to 1 to compile MS Windows XP theme engine support
|
||||
#define wxUSE_UXTHEME 1
|
||||
|
||||
|
@@ -1,61 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// 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_
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
|
||||
#include "wx/defs.h"
|
||||
#include "wx/vector.h"
|
||||
|
||||
struct ITaskbarList3;
|
||||
|
||||
class WXDLLIMPEXP_CORE 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;
|
||||
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 wxThumbBarButton* RemoveThumbBarButton(
|
||||
wxThumbBarButton *button) wxOVERRIDE;
|
||||
virtual wxThumbBarButton* RemoveThumbBarButton(int id) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
friend class wxFrame;
|
||||
wxTaskBarButtonImpl(WXWidget parent);
|
||||
|
||||
bool InitOrUpdateThumbBarButtons();
|
||||
wxThumbBarButton* GetThumbBarButtonByIndex(size_t index);
|
||||
|
||||
WXWidget m_hwnd;
|
||||
ITaskbarList3 *m_taskbarList;
|
||||
|
||||
typedef wxVector<wxThumbBarButton*> wxThumbBarButtons;
|
||||
wxThumbBarButtons m_thumbBarButtons;
|
||||
|
||||
int m_progressRange;
|
||||
bool m_hasInitThumbnailToolbar;
|
||||
};
|
||||
|
||||
#endif // wxUSE_TASKBARBUTTON
|
||||
|
||||
#endif // _WX_MSW_TASKBARBUTTON_H_
|
@@ -121,22 +121,6 @@ public:
|
||||
// returns true if the platform should explicitly apply a theme border
|
||||
virtual bool CanApplyThemeBorder() const { return false; }
|
||||
|
||||
#if wxUSE_MENUS && !defined(__WXUNIVERSAL__)
|
||||
bool HandleMenuSelect(WXWORD nItem, WXWORD nFlags, WXHMENU hMenu);
|
||||
|
||||
// handle WM_EXITMENULOOP message for Win95 only
|
||||
bool HandleExitMenuLoop(WXWORD isPopup);
|
||||
|
||||
// handle WM_(UN)INITMENUPOPUP message to generate wxEVT_MENU_OPEN/CLOSE
|
||||
bool HandleMenuPopup(wxEventType evtType, WXHMENU hMenu);
|
||||
|
||||
// Command part of HandleMenuPopup() and HandleExitMenuLoop().
|
||||
bool DoSendMenuOpenCloseEvent(wxEventType evtType, wxMenu* menu, bool popup);
|
||||
|
||||
// Find the menu corresponding to the given handle.
|
||||
virtual wxMenu* MSWFindMenuFromHMENU(WXHMENU hMenu);
|
||||
#endif // wxUSE_MENUS && !__WXUNIVERSAL__
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
@@ -251,10 +235,6 @@ private:
|
||||
// MSWGetSystemMenu(). Owned by this window.
|
||||
wxMenu *m_menuSystem;
|
||||
|
||||
// The number of currently opened menus: 0 initially, 1 when a top level
|
||||
// menu is opened, 2 when its submenu is opened and so on.
|
||||
int m_menuDepth;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
wxDECLARE_NO_COPY_CLASS(wxTopLevelWindowMSW);
|
||||
};
|
||||
|
@@ -110,10 +110,6 @@
|
||||
#undef wxUSE_TASKBARICON_BALLOONS
|
||||
#define wxUSE_TASKBARICON_BALLOONS 0
|
||||
|
||||
// there is no support for taskbar button
|
||||
#undef wxUSE_TASKBARBUTTON
|
||||
#define wxUSE_TASKBARBUTTON 1
|
||||
|
||||
// not sure if this is supported by eVC but VC8 SDK lacks the tooltips control
|
||||
// related declarations
|
||||
#if wxCHECK_VISUALC_VERSION(8)
|
||||
|
@@ -1,112 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: include/taskbarbutton.h
|
||||
// Purpose: Defines wxTaskBarButton class for manipulating buttons on the
|
||||
// windows taskbar.
|
||||
// Author: Chaobin Zhang <zhchbin@gmail.com>
|
||||
// Created: 2014-04-30
|
||||
// Copyright: (c) 2014 wxWidgets development team
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_TASKBARBUTTON_H_
|
||||
#define _WX_TASKBARBUTTON_H_
|
||||
|
||||
#if wxUSE_TASKBARBUTTON
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxTaskBarButton: define wxTaskBarButton interface.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
State of the task bar button.
|
||||
*/
|
||||
enum WXDLLIMPEXP_CORE wxTaskBarButtonState
|
||||
{
|
||||
wxTASKBAR_BUTTON_NO_PROGRESS = 0,
|
||||
wxTASKBAR_BUTTON_INDETERMINATE = 1,
|
||||
wxTASKBAR_BUTTON_NORMAL = 2,
|
||||
wxTASKBAR_BUTTON_ERROR = 4,
|
||||
wxTASKBAR_BUTTON_PAUSED = 8
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxThumbBarButton : public wxObject {
|
||||
public:
|
||||
wxThumbBarButton() { }
|
||||
wxThumbBarButton(int id,
|
||||
const wxIcon& icon,
|
||||
const wxString& tooltip = wxString(),
|
||||
bool enable = true,
|
||||
bool dismissOnClick = false,
|
||||
bool hasBackground = true,
|
||||
bool shown = true,
|
||||
bool interactive = true);
|
||||
|
||||
virtual ~wxThumbBarButton() {}
|
||||
|
||||
bool Create(int id,
|
||||
const wxIcon& icon,
|
||||
const wxString& tooltip = wxString(),
|
||||
bool enable = true,
|
||||
bool dismissOnClick = false,
|
||||
bool hasBackground = true,
|
||||
bool shown = true,
|
||||
bool interactive = true);
|
||||
int GetID() const { return m_id; }
|
||||
const wxIcon& GetIcon() const { return m_icon; }
|
||||
const wxString& GetTooltip() const { return m_tooltip; }
|
||||
bool IsEnable() const { return m_enable; }
|
||||
bool IsDismissOnClick() const { return m_dismissOnClick; }
|
||||
bool HasBackground() const { return m_hasBackground; }
|
||||
bool IsShown() const { return m_shown; }
|
||||
bool IsInteractive() const { return m_interactive; }
|
||||
|
||||
private:
|
||||
int m_id;
|
||||
wxIcon m_icon;
|
||||
wxString m_tooltip;
|
||||
bool m_enable;
|
||||
bool m_dismissOnClick;
|
||||
bool m_hasBackground;
|
||||
bool m_shown;
|
||||
bool m_interactive;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxThumbBarButton)
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxTaskBarButton
|
||||
{
|
||||
public:
|
||||
wxTaskBarButton() { }
|
||||
virtual ~wxTaskBarButton() { }
|
||||
|
||||
// Operations:
|
||||
virtual void SetProgressRange(int range) = 0;
|
||||
virtual void SetProgressValue(int value) = 0;
|
||||
virtual void PulseProgress() = 0;
|
||||
virtual void Show(bool show = true) = 0;
|
||||
virtual void Hide() = 0;
|
||||
virtual void SetThumbnailTooltip(const wxString& tooltip) = 0;
|
||||
virtual void SetProgressState(wxTaskBarButtonState state) = 0;
|
||||
virtual void SetOverlayIcon(const wxIcon& icon,
|
||||
const wxString& description = wxString()) = 0;
|
||||
virtual void SetThumbnailClip(const wxRect& rect) = 0;
|
||||
virtual void SetThumbnailContents(const wxWindow *child) = 0;
|
||||
virtual bool InsertThumbBarButton(size_t pos, wxThumbBarButton *button) = 0;
|
||||
virtual bool AppendThumbBarButton(wxThumbBarButton *button) = 0;
|
||||
virtual wxThumbBarButton* RemoveThumbBarButton(wxThumbBarButton *button) = 0;
|
||||
virtual wxThumbBarButton* RemoveThumbBarButton(int id) = 0;
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxTaskBarButton);
|
||||
};
|
||||
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
#include "wx/msw/taskbarbutton.h"
|
||||
#endif
|
||||
|
||||
#endif // wxUSE_TASKBARBUTTON
|
||||
|
||||
#endif // _WX_TASKBARBUTTON_H_
|
Reference in New Issue
Block a user