22#ifndef __WX_HTML_REPORT_PANEL_H__
23#define __WX_HTML_REPORT_PANEL_H__
70 const wxPoint& pos = wxDefaultPosition,
71 const wxSize& size = wxSize( 500,300 ),
long style = wxTAB_TRAVERSAL );
76 void MsgPanelSetMinSize(
const wxSize& aMinSize );
95 int Count(
int severityMask );
98 void SetLabel(
const wxString& aLabel )
override;
103 void SetLazyUpdate(
bool aLazyUpdate );
107 void Flush(
bool aSort =
false );
111 void SetVisibleSeverities(
int aSeverities );
115 int GetVisibleSeverities()
const;
119 void SetShowSeverity(
SEVERITY aSeverity,
bool aValue );
122 void SetFileName(
const wxString& aReportFileName );
125 wxString& GetFileName(
void );
139 wxString generatePlainText(
const REPORT_LINE& aLine );
142 void scrollToBottom();
143 void syncCheckboxes();
145 void onRightClick( wxMouseEvent& event )
override;
146 void onMenuEvent( wxMenuEvent& event );
147 void onCheckBoxShowAll( wxCommandEvent& event )
override;
148 void onCheckBoxShowWarnings( wxCommandEvent& event )
override;
149 void onCheckBoxShowErrors( wxCommandEvent& event )
override;
150 void onCheckBoxShowInfos( wxCommandEvent& event )
override;
151 void onCheckBoxShowActions( wxCommandEvent& event )
override;
153 void onBtnSaveToFile( wxCommandEvent& event )
override;
155 void onThemeChanged( wxSysColourChangedEvent &aEvent );
A pure virtual class used to derive REPORTER objects from.
LOCATION
Location where the message is to be reported.
virtual REPORTER & ReportHead(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Places the report at the beginning of the list for objects that support ordering.
virtual bool HasMessage() const =0
Returns true if the reporter client is non-empty.
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Report a string with a given severity.
virtual REPORTER & ReportTail(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)
Places the report at the end of the list, for objects that support report ordering.
virtual bool HasMessageOfSeverity(int aSeverityMask) const
Returns true if the reporter has one or more messages matching the specified severity mask.
A wrapper for reporting to a wx HTML window.
virtual ~WX_HTML_PANEL_REPORTER()
WX_HTML_PANEL_REPORTER(WX_HTML_REPORT_PANEL *aPanel)
WX_HTML_REPORT_PANEL * m_panel
Class WX_HTML_REPORT_PANEL_BASE.
A widget for browsing a rich text error/status report.
wxString m_reportFileName
defaults to the not very useful /bin/report.txt
REPORT_LINES m_report
copy of the report, stored for filtering
int m_severities
message severities to display (mask)
WX_HTML_PANEL_REPORTER m_reporter
std::vector< REPORT_LINE > REPORT_LINES
REPORT_LINES m_reportHead
... and at the beginning, regardless of sorting
wxString addHeader(const wxString &aBody)
REPORT_LINES m_reportTail
Lines to print at the end, regardless of sorting.