- MGR: Handle the link click events from the notices control for the

Simgle GUI notices dialog box.
        
    clientgui/
        sg_DlgMessages.cpp, .h

svn path=/trunk/boinc/; revision=23285
This commit is contained in:
Rom Walton 2011-03-28 15:21:36 +00:00
parent c7a2191570
commit 53177644f7
3 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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