diff --git a/clientgui/DlgEventLog.cpp b/clientgui/DlgEventLog.cpp index a6868adf65..4c5862fdb3 100644 --- a/clientgui/DlgEventLog.cpp +++ b/clientgui/DlgEventLog.cpp @@ -1,6 +1,6 @@ // This file is part of BOINC. // http://boinc.berkeley.edu -// Copyright (C) 2022 University of California +// Copyright (C) 2023 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License @@ -79,6 +79,7 @@ BEGIN_EVENT_TABLE( CDlgEventLog, DlgEventLogBase ) EVT_BUTTON(wxID_OK, CDlgEventLog::OnOK) EVT_BUTTON(ID_COPYAll, CDlgEventLog::OnMessagesCopyAll) EVT_BUTTON(ID_COPYSELECTED, CDlgEventLog::OnMessagesCopySelected) + EVT_BUTTON(ID_TASK_MESSAGES_FILTERBYERROR, CDlgEventLog::OnErrorFilter) EVT_BUTTON(ID_TASK_MESSAGES_FILTERBYPROJECT, CDlgEventLog::OnMessagesFilter) EVT_BUTTON(ID_SIMPLE_HELP, CDlgEventLog::OnButtonHelp) EVT_MENU(ID_SGDIAGNOSTICLOGFLAGS, CDlgEventLog::OnDiagnosticLogFlags) @@ -327,6 +328,9 @@ void CDlgEventLog::CreateControls() itemFlexGridSizer2->Add(itemBoxSizer4, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 12); + m_pErrorFilterButton = new wxButton(this, ID_TASK_MESSAGES_FILTERBYERROR, _("Show only aler&ts"), wxDefaultPosition, wxDefaultSize); + itemBoxSizer4->Add(m_pErrorFilterButton, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5); + m_pFilterButton = new wxButton(this, ID_TASK_MESSAGES_FILTERBYPROJECT, _("&Show only this project"), wxDefaultPosition, wxDefaultSize); itemBoxSizer4->Add(m_pFilterButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5); diff --git a/clientgui/DlgEventLog.h b/clientgui/DlgEventLog.h index 2865028bbf..3235d367a7 100644 --- a/clientgui/DlgEventLog.h +++ b/clientgui/DlgEventLog.h @@ -1,6 +1,6 @@ // This file is part of BOINC. // http://boinc.berkeley.edu -// Copyright (C) 2008 University of California +// Copyright (C) 2023 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License @@ -173,6 +173,7 @@ private: wxInt32 m_iPreviousRowCount; wxButton* m_pFilterButton; wxButton* m_pCopySelectedButton; + wxButton* m_pErrorFilterButton; wxListItemAttr* m_pMessageInfoAttr; wxListItemAttr* m_pMessageErrorAttr; diff --git a/clientgui/Events.h b/clientgui/Events.h index 58783cc935..647863d593 100644 --- a/clientgui/Events.h +++ b/clientgui/Events.h @@ -1,6 +1,6 @@ // This file is part of BOINC. // http://boinc.berkeley.edu -// Copyright (C) 2008 University of California +// Copyright (C) 2023 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License @@ -138,6 +138,7 @@ #define ID_TASK_MESSAGES_COPYALL 9400 #define ID_TASK_MESSAGES_COPYSELECTED 9401 #define ID_TASK_MESSAGES_FILTERBYPROJECT 9402 +#define ID_TASK_MESSAGES_FILTERBYERROR 9403 #define ID_TASK_STATISTICS_USERTOTAL 9500 #define ID_TASK_STATISTICS_USERAVERAGE 9501 #define ID_TASK_STATISTICS_HOSTTOTAL 9502