22#ifndef __WX_HTML_REPORT_PANEL_H__
23#define __WX_HTML_REPORT_PANEL_H__
68 const wxPoint& pos = wxDefaultPosition,
69 const wxSize& size = wxSize( 500,300 ),
long style = wxTAB_TRAVERSAL );
73 void MsgPanelSetMinSize(
const wxSize& aMinSize );
91 int Count(
int severityMask );
94 void SetLabel(
const wxString& aLabel )
override;
99 void SetLazyUpdate(
bool aLazyUpdate );
103 void Flush(
bool aSort =
false );
107 void SetVisibleSeverities(
int aSeverities );
111 int GetVisibleSeverities()
const;
115 void SetShowSeverity(
SEVERITY aSeverity,
bool aValue );
118 void SetFileName(
const wxString& aReportFileName );
121 wxString& GetFileName(
void );
135 wxString generatePlainText(
const REPORT_LINE& aLine );
138 void scrollToBottom();
139 void syncCheckboxes();
141 void onRightClick( wxMouseEvent& event )
override;
142 void onMenuEvent( wxMenuEvent& event );
143 void onCheckBoxShowAll( wxCommandEvent& event )
override;
144 void onCheckBoxShowWarnings( wxCommandEvent& event )
override;
145 void onCheckBoxShowErrors( wxCommandEvent& event )
override;
146 void onCheckBoxShowInfos( wxCommandEvent& event )
override;
147 void onCheckBoxShowActions( wxCommandEvent& event )
override;
149 void onBtnSaveToFile( wxCommandEvent& event )
override;
151 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 HasMessageOfSeverity(int aSeverityMask) const
Returns true if the reporter has one or more messages matching the specified severity mask.
virtual bool HasMessage() const =0
Returns true if the reporter client is non-empty.
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 REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)=0
Report a string with a given severity.
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.