29 #include <wx/string.h> 96 return Report( aText, aSeverity );
105 return Report( aText, aSeverity );
320 #endif // _REPORTER_H_ bool HasMessage() const override
Returns true if the reporter client is non-empty.
A wrapper for reporting to a specific text location in a statusbar.
virtual bool HasMessage() const =0
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.
virtual EDA_UNITS GetUnits() const
virtual ~WX_TEXT_CTRL_REPORTER()
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.
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.
virtual ~WX_STRING_REPORTER()
WX_HTML_PANEL_REPORTER(WX_HTML_REPORT_PANEL *aPanel)
bool HasMessage() const override
Returns true if the reporter client is non-empty.
WX_TEXT_CTRL_REPORTER(wxTextCtrl *aTextCtrl)
WX_HTML_REPORT_PANEL * m_panel
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
virtual ~STDOUT_REPORTER()
Debug type reporter, forwarding messages to std::cout.
A pure virtual class used to derive REPORTER objects from.
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)=0
Report a string with a given severity.
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.
A wrapper for reporting to a wxTextCtrl object.
A singleton reporter that reports to nowhere.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
INFOBAR_REPORTER(WX_INFOBAR *aInfoBar)
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
Functions to provide common constants and other functions to assist in making a consistent UI.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
void Finalize()
Update the infobar with the reported text.
A wrapper for reporting to a wxString object.
A wrapper for reporting to a wx HTML window.
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.
static REPORTER & GetInstance()
A modified version of the wxInfoBar class that allows us to:
REPORTER & operator<<(const wxString &aText)
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
WX_STRING_REPORTER(wxString *aString)
virtual ~WX_HTML_PANEL_REPORTER()
bool HasMessage() const override
Returns true if the reporter client is non-empty.
STATUSBAR_REPORTER(wxStatusBar *aStatusBar, int aPosition=0)
bool HasMessage() const override
Returns true if the reporter client is non-empty.
static REPORTER & GetInstance()
A wrapper for reporting to a WX_INFOBAR UI element.
wxStatusBar * m_statusBar
A widget for browsing a rich text error/status report.
bool HasMessage() const override
Returns true if the reporter client is non-empty.