102 return Report( aText, aSeverity );
111 return Report( aText, aSeverity );
125 return EDA_UNITS::MILLIMETRES;
A wrapper for reporting to a WX_INFOBAR UI element.
INFOBAR_REPORTER(WX_INFOBAR *aInfoBar)
void Finalize()
Update the infobar with the reported text.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
std::unique_ptr< wxString > m_message
virtual ~INFOBAR_REPORTER()
bool HasMessage() const override
Returns true if the reporter client is non-empty.
A singleton reporter that reports to nowhere.
static REPORTER & GetInstance()
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
bool HasMessage() const override
Returns true if the reporter client is non-empty.
A pure virtual class used to derive REPORTER objects from.
virtual EDA_UNITS GetUnits() const
REPORTER & operator<<(const wxString &aText)
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 specific text location in a statusbar.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
STATUSBAR_REPORTER(wxStatusBar *aStatusBar, int aPosition=0)
wxStatusBar * m_statusBar
bool HasMessage() const override
Returns true if the reporter client is non-empty.
Debug type reporter, forwarding messages to std::cout.
REPORTER & Report(const wxString &aMsg, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
static REPORTER & GetInstance()
virtual ~STDOUT_REPORTER()
bool HasMessage() const override
Returns true if the reporter client is non-empty.
bool HasMessage() const override
Returns true if the reporter client is non-empty.
REPORTER & Report(const wxString &aMsg, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
virtual ~WXLOG_REPORTER()
static REPORTER & GetInstance()
A wrapper for reporting to a wx HTML window.
virtual ~WX_HTML_PANEL_REPORTER()
bool HasMessage() const override
Returns true if the reporter client is non-empty.
REPORTER & ReportTail(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Places the report at the end of the list, for objects that support report ordering.
REPORTER & ReportHead(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Places the report at the beginning of the list for objects that support ordering.
WX_HTML_PANEL_REPORTER(WX_HTML_REPORT_PANEL *aPanel)
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
WX_HTML_REPORT_PANEL * m_panel
A widget for browsing a rich text error/status report.
A modified version of the wxInfoBar class that allows us to:
A wrapper for reporting to a wxString object.
virtual ~WX_STRING_REPORTER()
bool HasMessage() const override
Returns true if the reporter client is non-empty.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
WX_STRING_REPORTER(wxString *aString)
A wrapper for reporting to a wxTextCtrl object.
virtual ~WX_TEXT_CTRL_REPORTER()
bool HasMessage() const override
Returns true if the reporter client is non-empty.
WX_TEXT_CTRL_REPORTER(wxTextCtrl *aTextCtrl)
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.