64 WX_HTML_REPORT_PANEL( wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
65 const wxSize& size = wxSize( 500, 300 ),
long style = wxTAB_TRAVERSAL );
70 void MsgPanelSetMinSize(
const wxSize& aMinSize );
88 int Count(
int severityMask );
91 void SetLabel(
const wxString& aLabel )
override;
100 void Flush(
bool aSort =
false );
104 int GetVisibleSeverities()
const;
107 void SetFileName(
const wxString& aReportFileName ) { m_reportFileName = aReportFileName; }
122 wxString generatePlainText(
const REPORT_LINE& aLine );
125 void scrollToBottom();
127 void onRightClick( wxMouseEvent& event )
override;
128 void onMenuEvent( wxMenuEvent& event );
129 void onCheckBox( wxCommandEvent& event )
override;
131 void onBtnSaveToFile( wxCommandEvent& event )
override;
133 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 & GetFileName(void)
wxString m_reportFileName
defaults to the not very useful /bin/report.txt
REPORT_LINES m_report
copy of the report, stored for filtering
void SetLazyUpdate(bool aLazyUpdate)
Set the lazy update.
WX_HTML_PANEL_REPORTER m_reporter
std::vector< REPORT_LINE > REPORT_LINES
void SetFileName(const wxString &aReportFileName)
Set the report full file name to the string.
REPORT_LINES m_reportHead
... and at the beginning, regardless of sorting
REPORT_LINES m_reportTail
Lines to print at the end, regardless of sorting.