Implement jump list feature: adding custom categories.

Author: Chaobin Zhang

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Bryan Petty
2014-09-10 14:54:08 +00:00
parent dc51580b1a
commit 30015f9cfe
3 changed files with 89 additions and 29 deletions

View File

@@ -214,6 +214,8 @@ private:
wxString m_title;
};
typedef wxVector<wxJumpListCategory*> wxJumpListCategories;
class WXDLLIMPEXP_CORE wxJumpList
{
public:
@@ -227,10 +229,11 @@ public:
const wxJumpListCategory* GetFrequentCategory();
const wxJumpListCategory* GetRecentCategory();
const wxVector<wxJumpListCategory*>& GetCustomCategories();
const wxJumpListCategories& GetCustomCategories();
void AddCategory(wxJumpListCategory * catalog);
wxJumpListCategory* RemoveCategory(const wxString& title);
void DeleteCategory(const wxString& title);
void Update();
@@ -238,6 +241,7 @@ private:
bool BeginUpdate();
bool CommitUpdate();
void AddTasksToDestinationList();
void AddCustomCategoriesToDestionationList();
void LoadKnownCategory(const wxString& title);
ICustomDestinationList *m_destinationList;
@@ -246,7 +250,7 @@ private:
wxScopedPtr<wxJumpListCategory> m_tasks;
wxScopedPtr<wxJumpListCategory> m_frequent;
wxScopedPtr<wxJumpListCategory> m_recent;
wxVector<wxJumpListCategory*> m_customCategories;
wxJumpListCategories m_customCategories;
bool m_recent_visible;
bool m_frequent_visible;
};