22#ifndef __WX_HTML_REPORT_PANEL_H__
23#define __WX_HTML_REPORT_PANEL_H__
67 const wxPoint& pos = wxDefaultPosition,
68 const wxSize& size = wxSize( 500,300 ),
long style = wxTAB_TRAVERSAL );
72 void MsgPanelSetMinSize(
const wxSize& aMinSize );
90 int Count(
int severityMask );
93 void SetLabel(
const wxString& aLabel )
override;
98 void SetLazyUpdate(
bool aLazyUpdate );
102 void Flush(
bool aSort =
false );
106 void SetVisibleSeverities(
int aSeverities );
110 int GetVisibleSeverities()
const;
114 void SetShowSeverity(
SEVERITY aSeverity,
bool aValue );
117 void SetFileName(
const wxString& aReportFileName );
120 wxString& GetFileName(
void );
134 wxString generatePlainText(
const REPORT_LINE& aLine );
137 void scrollToBottom();
138 void syncCheckboxes();
140 void onRightClick( wxMouseEvent& event )
override;
141 void onMenuEvent( wxMenuEvent& event );
142 void onCheckBoxShowAll( wxCommandEvent& event )
override;
143 void onCheckBoxShowWarnings( wxCommandEvent& event )
override;
144 void onCheckBoxShowErrors( wxCommandEvent& event )
override;
145 void onCheckBoxShowInfos( wxCommandEvent& event )
override;
146 void onCheckBoxShowActions( wxCommandEvent& event )
override;
148 void onBtnSaveToFile( wxCommandEvent& event )
override;
150 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 & 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.