From cb2778ee75261d860f17115540cc0abe29c0ea67 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 25 Dec 2014 03:16:54 -0800 Subject: [PATCH] MGR: Add "More info ..." hyperlink to Diagnostic Log Flags dialog; clicking it takes you to the Log Flags wiki page. --- clientgui/DlgDiagnosticLogFlags.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/clientgui/DlgDiagnosticLogFlags.cpp b/clientgui/DlgDiagnosticLogFlags.cpp index 816da45ef5..2c34e95e1d 100755 --- a/clientgui/DlgDiagnosticLogFlags.cpp +++ b/clientgui/DlgDiagnosticLogFlags.cpp @@ -77,7 +77,7 @@ CDlgDiagnosticLogFlags::CDlgDiagnosticLogFlags(wxWindow* parent) : SetExtraStyle( GetExtraStyle() | wxWS_EX_VALIDATE_RECURSIVELY ); wxBoxSizer* bSizer1 = new wxBoxSizer( wxVERTICAL ); - m_headingSizer = new wxGridSizer( 1 ); + m_headingSizer = new wxFlexGridSizer( 1 ); m_headingText.Printf( _("These flags enable various types of diagnostic messages in the Event Log.") @@ -87,6 +87,16 @@ CDlgDiagnosticLogFlags::CDlgDiagnosticLogFlags(wxWindow* parent) : m_headingSizer->Add(m_heading, 1, wxLEFT | wxRIGHT, 25); + wxString helpURL = wxT("http://boinc.berkeley.edu/manager_links.php?target=notice&controlid=log_flags"); + + m_headingSizer->Add( + new wxHyperlinkCtrl( + this, wxID_ANY, _("More info ..."), helpURL, + wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE + ), + 0, wxLEFT | wxRIGHT, 25 + ); + bSizer1->AddSpacer(7); bSizer1->Add( m_headingSizer, 0, wxEXPAND | wxALL, 5 ); bSizer1->AddSpacer(7);