From 6441ddf4d0b276dc067469e8b750e019e26a4ddc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 27 Jan 2012 21:29:35 +0000 Subject: [PATCH] - manager: in tooltips for Project/Task buttons, don't prepend "button name: "; add a tooltip for Home Page button. svn path=/trunk/boinc/; revision=25163 --- checkin_notes | 9 +++++++++ clientgui/BOINCBaseView.cpp | 2 +- clientgui/BOINCTaskCtrl.cpp | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index 9cce2dd12d..0fd549299f 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1096,3 +1096,12 @@ David 27 Jan 2012 ViewResources.cpp html/inc/ prefs.inc + +David 27 Jan 2012 + - manager: in tooltips for Project/Task buttons, + don't prepend "button name: "; + add a tooltip for Home Page button. + + clientgui/ + BOINCBaseView.cpp + BOINCTaskCtrl.cpp diff --git a/clientgui/BOINCBaseView.cpp b/clientgui/BOINCBaseView.cpp index a8402f0ab7..fd21731a4b 100644 --- a/clientgui/BOINCBaseView.cpp +++ b/clientgui/BOINCBaseView.cpp @@ -777,7 +777,7 @@ void CBOINCBaseView::UpdateWebsiteSelection(long lControlGroup, PROJECT* project // Default project url pItem = new CTaskItem( wxString("Home page", wxConvUTF8), - wxT(""), + wxString(project->project_name.c_str(), wxConvUTF8) + wxT(" web site"), wxString(project->master_url, wxConvUTF8), ID_TASK_PROJECT_WEB_PROJDEF_MIN ); diff --git a/clientgui/BOINCTaskCtrl.cpp b/clientgui/BOINCTaskCtrl.cpp index 574a5c1909..5d1f479f0e 100644 --- a/clientgui/BOINCTaskCtrl.cpp +++ b/clientgui/BOINCTaskCtrl.cpp @@ -144,7 +144,7 @@ wxInt32 CBOINCTaskCtrl::UpdateTask( CTaskItem* pItem, wxString strName, wxString pItem->m_pButton->SetLabel( pItem->m_strNameEllipsed ); pItem->m_pButton->SetHelpText( strDescription ); #if wxUSE_TOOLTIPS - pItem->m_pButton->SetToolTip(pItem->m_strName + wxT(": ") + pItem->m_strDescription); + pItem->m_pButton->SetToolTip(pItem->m_strDescription); #endif } return 0; @@ -192,7 +192,7 @@ wxInt32 CBOINCTaskCtrl::UpdateControls() { pItem->m_pButton->Create(this, pItem->m_iEventID, pItem->m_strNameEllipsed, wxDefaultPosition, wxSize(TASKBUTTONWIDTH, -1), 0); pItem->m_pButton->SetHelpText(pItem->m_strDescription); #if wxUSE_TOOLTIPS - pItem->m_pButton->SetToolTip(pItem->m_strName + wxT(": ") + pItem->m_strDescription); + pItem->m_pButton->SetToolTip(pItem->m_strDescription); #endif pGroup->m_pStaticBoxSizer->Add(pItem->m_pButton, 0, wxEXPAND|wxALL, 5); }