22 #ifndef __WX_HTML_REPORT_PANEL_H__ 23 #define __WX_HTML_REPORT_PANEL_H__ 43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxSize( 500,300 ),
long style = wxTAB_TRAVERSAL );
66 int Count(
int severityMask );
69 void SetLabel(
const wxString& aLabel )
override;
78 void Flush(
bool aSort =
false );
93 void SetFileName(
const wxString& aReportFileName );
108 wxString
addHeader(
const wxString& aBody );
139 #endif //__WX_HTML_REPORT_PANEL_H__ void SetVisibleSeverities(int aSeverities)
void onCheckBoxShowInfos(wxCommandEvent &event) override
void onBtnSaveToFile(wxCommandEvent &event) override
wxString addHeader(const wxString &aBody)
void SetLazyUpdate(bool aLazyUpdate)
Forces updating the HTML page, after the report is built in lazy mode If aSort = true,...
~WX_HTML_REPORT_PANEL()
Set the min size of the area which displays html messages:
void onCheckBoxShowActions(wxCommandEvent &event) override
wxString generatePlainText(const REPORT_LINE &aLine)
Class WX_HTML_REPORT_PANEL_BASE.
wxString & GetFileName(void)
void Flush(bool aSort=false)
Set the visible severity filter.
void onCheckBoxShowWarnings(wxCommandEvent &event) override
void onCheckBoxShowErrors(wxCommandEvent &event) override
A pure virtual class used to derive REPORTER objects from.
void onRightClick(wxMouseEvent &event) override
WX_HTML_REPORT_PANEL(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxTAB_TRAVERSAL)
REPORT_LINES m_reportHead
... and at the beginning, regardless of sorting
WX_HTML_PANEL_REPORTER m_reporter
REPORT_LINES m_reportTail
Lines to print at the end, regardless of sorting.
int Count(int severityMask)
sets the frame label
wxString m_reportFileName
defaults to the not very useful /bin/report.txt
void SetShowSeverity(SEVERITY aSeverity, bool aValue)
Set the report full file name to the string.
REPORT_LINES m_report
copy of the report, stored for filtering
int GetVisibleSeverities() const
void Report(const wxString &aText, SEVERITY aSeverity, REPORTER::LOCATION aLocation=REPORTER::LOC_BODY)
Reports the string.
A wrapper for reporting to a wx HTML window.
LOCATION
Location where the message is to be reported.
void Clear()
return the number of messages matching the given severity mask.
std::vector< REPORT_LINE > REPORT_LINES
void onCheckBoxShowAll(wxCommandEvent &event) override
wxString generateHtml(const REPORT_LINE &aLine)
void MsgPanelSetMinSize(const wxSize &aMinSize)
returns the reporter object that reports to this panel
void SetFileName(const wxString &aReportFileName)
void SetLabel(const wxString &aLabel) override
Sets the lasy update.
void onMenuEvent(wxMenuEvent &event)
int m_severities
message severities to display (mask)
A widget for browsing a rich text error/status report.