added balance to tooltips

This commit is contained in:
John Maguire 2011-05-01 00:53:45 -04:00
parent 3b7925eb7d
commit bd3bd83dda

7
ui.cpp
View file

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