20#ifndef WX_HTML_REPORT_BOX_H
21#define WX_HTML_REPORT_BOX_H
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxSize( 500,300 ),
long style = wxTAB_TRAVERSAL );
64 void Clear()
override;
HTML_WINDOW(wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxHW_DEFAULT_STYLE, const wxString &aName=wxT("htmlWindow"))
void Clear() override
Delete the stored messages.
void onMenuEvent(wxMenuEvent &event)
void onRightClick(wxMouseEvent &event)
std::vector< wxString > m_messages
copy of the report, stored for filtering.
void SetImmediateMode()
In immediate mode, messages are flushed as they are added.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
bool m_immediateMode
Indicates messages should be flushed as they are added.
EDA_UNITS GetUnits() const override
void SetUnits(EDA_UNITS aUnits)
void Flush()
Build the HTML messages page.
WX_HTML_REPORT_BOX(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxTAB_TRAVERSAL)
bool HasMessage() const override
Returns true if any messages were reported.
wxString generateHtml(const wxString &aLine)
void onThemeChanged(wxSysColourChangedEvent &aEvent)