added balance to tooltips
authorJohn Maguire <johnmaguire2013@gmail.com>
Sun, 1 May 2011 04:53:45 +0000 (00:53 -0400)
committerJohn Maguire <johnmaguire2013@gmail.com>
Sun, 1 May 2011 14:20:29 +0000 (10:20 -0400)
ui.cpp

diff --git a/ui.cpp b/ui.cpp
index 49a0f9e..ac2f2cf 100644 (file)
--- a/ui.cpp
+++ b/ui.cpp
@@ -1859,6 +1859,7 @@ CSendDialog::CSendDialog(wxWindow* parent, const wxString& strAddress) : CSendDi
     m_bitmapCheckMark->Show(false);
     fEnabledPrev = true;
     m_textCtrlAddress->SetFocus();
+    
     //// todo: should add a display of your balance for convenience
 #ifndef __WXMSW__
     wxFont fontTmp = m_staticTextInstructions->GetFont();
@@ -1867,7 +1868,7 @@ CSendDialog::CSendDialog(wxWindow* parent, const wxString& strAddress) : CSendDi
     m_staticTextInstructions->SetFont(fontTmp);
     SetSize(725, 180);
 #endif
-
+    
     // Set Icon
     wxIcon iconSend;
     iconSend.CopyFromBitmap(wxBitmap(send16noshadow_xpm));
@@ -2626,9 +2627,9 @@ void CMyTaskBarIcon::Show(bool fShow)
     static char pszPrevTip[200];
     if (fShow)
     {
-        string strTooltip = _("Bitcoin");
+        string strTooltip = _("Balance: ") + FormatMoney(GetBalance());
         if (fGenerateBitcoins)
-            strTooltip = _("Bitcoin - Generating");
+            strTooltip = _("Bitcoin - Generating (Balance: ") + FormatMoney(GetBalance()) + ")";
         if (fGenerateBitcoins && vNodes.empty())
             strTooltip = _("Bitcoin - (not connected)");