mirror of https://github.com/BOINC/boinc.git
feat: add alert button
This adds a wxButton to the window to allow the user to filter the event log by alerts.
This commit is contained in:
parent
62c3ad89fc
commit
dc22ac2066
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue