diff --git a/checkin_notes b/checkin_notes index 8a3f2a0cca..ae41fb7fe8 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1892,3 +1892,10 @@ David 27 Mar 2011 client/ coproc_detect.cpp + +Rom 28 Mar 2011 + - MGR: Handle the link click events from the notices control for the + Simgle GUI notices dialog box. + + clientgui/ + sg_DlgMessages.cpp, .h diff --git a/clientgui/sg_DlgMessages.cpp b/clientgui/sg_DlgMessages.cpp index 4dc49baea9..057193e283 100644 --- a/clientgui/sg_DlgMessages.cpp +++ b/clientgui/sg_DlgMessages.cpp @@ -266,6 +266,17 @@ void CPanelMessages::OnButtonHelp( wxCommandEvent& event ) { } +/*! + * wxEVT_NOTICELIST_ITEM_DISPLAY event handler for ID_LIST_NOTIFICATIONSVIEW + */ + +void CPanelMessages::OnLinkClicked( NoticeListCtrlEvent& event ) { + if (event.GetURL().StartsWith(wxT("http://"))) { + wxLaunchDefaultBrowser(event.GetURL()); + } +} + + bool CPanelMessages::OnSaveState(wxConfigBase* /* pConfig */) { return true; } diff --git a/clientgui/sg_DlgMessages.h b/clientgui/sg_DlgMessages.h index ec03cb69dd..dea933b5b5 100644 --- a/clientgui/sg_DlgMessages.h +++ b/clientgui/sg_DlgMessages.h @@ -101,6 +101,9 @@ public: /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SIMPLE_HELP void OnButtonHelp( wxCommandEvent& event ); + /// wxEVT_NOTICELIST_ITEM_DISPLAY event handler for ID_LIST_NOTIFICATIONSVIEW + void OnLinkClicked( NoticeListCtrlEvent& event ); + ////@end CPanelMessages event handler declarations ////@begin CPanelMessages member function declarations