aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Maguire <johnmaguire2013@gmail.com>2011-05-01 00:27:15 -0400
committerJohn Maguire <johnmaguire2013@gmail.com>2011-05-01 10:20:28 -0400
commit3b7925eb7d0653ab304786e8e2344af91a6826fb (patch)
tree1d32650c729a244d0aa8816e17c4e929592ccf42
parent76160f784a0e8ee5e1fdcb9e250e6aee723b44d0 (diff)
downloadbitcoin-3b7925eb7d0653ab304786e8e2344af91a6826fb.tar.xz
added "Send Bitcoins" option in the tray menu
-rw-r--r--ui.cpp10
-rw-r--r--ui.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index a95f31bdb8..49a0f9ec32 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -2605,6 +2605,7 @@ void CAddressBookDialog::OnClose(wxCloseEvent& event)
enum
{
ID_TASKBAR_RESTORE = 10001,
+ ID_TASKBAR_SEND,
ID_TASKBAR_OPTIONS,
ID_TASKBAR_GENERATE,
ID_TASKBAR_EXIT,
@@ -2613,6 +2614,7 @@ enum
BEGIN_EVENT_TABLE(CMyTaskBarIcon, wxTaskBarIcon)
EVT_TASKBAR_LEFT_DCLICK(CMyTaskBarIcon::OnLeftButtonDClick)
EVT_MENU(ID_TASKBAR_RESTORE, CMyTaskBarIcon::OnMenuRestore)
+ EVT_MENU(ID_TASKBAR_SEND, CMyTaskBarIcon::OnMenuSend)
EVT_MENU(ID_TASKBAR_OPTIONS, CMyTaskBarIcon::OnMenuOptions)
EVT_MENU(ID_TASKBAR_GENERATE, CMyTaskBarIcon::OnMenuGenerate)
EVT_UPDATE_UI(ID_TASKBAR_GENERATE, CMyTaskBarIcon::OnUpdateUIGenerate)
@@ -2665,6 +2667,13 @@ void CMyTaskBarIcon::OnMenuRestore(wxCommandEvent& event)
Restore();
}
+void CMyTaskBarIcon::OnMenuSend(wxCommandEvent& event)
+{
+ // Taskbar: Send
+ CSendDialog dialog(pframeMain);
+ dialog.ShowModal();
+}
+
void CMyTaskBarIcon::OnMenuOptions(wxCommandEvent& event)
{
// Since it's modal, get the main window to do it
@@ -2706,6 +2715,7 @@ wxMenu* CMyTaskBarIcon::CreatePopupMenu()
{
wxMenu* pmenu = new wxMenu;
pmenu->Append(ID_TASKBAR_RESTORE, _("&Open Bitcoin"));
+ pmenu->Append(ID_TASKBAR_SEND, _("&Send Bitcoins"));
pmenu->Append(ID_TASKBAR_OPTIONS, _("O&ptions..."));
pmenu->AppendCheckItem(ID_TASKBAR_GENERATE, _("&Generate Coins"))->Check(fGenerateBitcoins);
#ifndef __WXMAC_OSX__ // Mac has built-in quit menu
diff --git a/ui.h b/ui.h
index af97d5abb1..05c4ee9a4f 100644
--- a/ui.h
+++ b/ui.h
@@ -323,6 +323,7 @@ protected:
// Event handlers
void OnLeftButtonDClick(wxTaskBarIconEvent& event);
void OnMenuRestore(wxCommandEvent& event);
+ void OnMenuSend(wxCommandEvent& event);
void OnMenuOptions(wxCommandEvent& event);
void OnUpdateUIGenerate(wxUpdateUIEvent& event);
void OnMenuGenerate(wxCommandEvent& event);