mirror of https://github.com/BOINC/boinc.git
- 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:
parent
c7a2191570
commit
53177644f7
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue