| 
    KiCad PCB EDA Suite
    
   | 
 
A widget for browsing a rich text error/status report. More...
#include <wx_html_report_panel.h>
  
Classes | |
| struct | REPORT_LINE | 
Public Member Functions | |
| WX_HTML_REPORT_PANEL (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxTAB_TRAVERSAL) | |
| ~WX_HTML_REPORT_PANEL () | |
| void | MsgPanelSetMinSize (const wxSize &aMinSize) | 
| Set the min size of the area which displays html messages.   | |
| REPORTER & | Reporter () | 
| Return the reporter object that reports to this panel.   | |
| void | Report (const wxString &aText, SEVERITY aSeverity, REPORTER::LOCATION aLocation=REPORTER::LOC_BODY) | 
| Report the string.   | |
| void | Clear () | 
| Clears the report panel.   | |
| int | Count (int severityMask) | 
| Return the number of messages matching the given severity mask.   | |
| void | SetLabel (const wxString &aLabel) override | 
| Set the frame label.   | |
| void | SetLazyUpdate (bool aLazyUpdate) | 
| Set the lazy update.   | |
| void | Flush (bool aSort=false) | 
| Force updating the HTML page, after the report is built in lazy mode If aSort = true, the body messages will be ordered by severity.   | |
| int | GetVisibleSeverities () const | 
| void | SetFileName (const wxString &aReportFileName) | 
| Set the report full file name to the string.   | |
| wxString & | GetFileName (void) | 
Protected Attributes | |
| wxStaticBoxSizer * | m_box | 
| wxFlexGridSizer * | m_fgSizer | 
| HTML_WINDOW * | m_htmlView | 
| wxStaticText * | m_staticTextShow | 
| wxCheckBox * | m_checkBoxShowAll | 
| wxCheckBox * | m_checkBoxShowErrors | 
| NUMBER_BADGE * | m_errorsBadge | 
| wxCheckBox * | m_checkBoxShowWarnings | 
| NUMBER_BADGE * | m_warningsBadge | 
| wxCheckBox * | m_checkBoxShowActions | 
| wxCheckBox * | m_checkBoxShowInfos | 
| wxButton * | m_btnSaveReportToFile | 
Private Types | |
| typedef std::vector< REPORT_LINE > | REPORT_LINES | 
Private Member Functions | |
| wxString | generateHtml (const REPORT_LINE &aLine) | 
| wxString | generatePlainText (const REPORT_LINE &aLine) | 
| void | updateBadges () | 
| void | scrollToBottom () | 
| void | onRightClick (wxMouseEvent &event) override | 
| void | onMenuEvent (wxMenuEvent &event) | 
| void | onCheckBox (wxCommandEvent &event) override | 
| void | onBtnSaveToFile (wxCommandEvent &event) override | 
| void | onThemeChanged (wxSysColourChangedEvent &aEvent) | 
Private Attributes | |
| WX_HTML_PANEL_REPORTER | m_reporter | 
| REPORT_LINES | m_report | 
| copy of the report, stored for filtering   | |
| REPORT_LINES | m_reportTail | 
| Lines to print at the end, regardless of sorting.   | |
| REPORT_LINES | m_reportHead | 
| ... and at the beginning, regardless of sorting   | |
| bool | m_lazyUpdate | 
| wxString | m_reportFileName | 
| defaults to the not very useful /bin/report.txt   | |
A widget for browsing a rich text error/status report.
Used in numerous dialogs in Eeschema and Pcbnew. Provides error filtering functionality and saving report files. The messages are reported through a REPORTER object
Definition at line 60 of file wx_html_report_panel.h.
      
  | 
  private | 
Definition at line 118 of file wx_html_report_panel.h.
| WX_HTML_REPORT_PANEL::WX_HTML_REPORT_PANEL | ( | wxWindow * | parent, | 
| wxWindowID | id = wxID_ANY, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxSize( 500, 300 ), | ||
| long | style = wxTAB_TRAVERSAL ) | 
Definition at line 40 of file wx_html_report_panel.cpp.
References Flush(), KIUI::GetInfoFont(), WX_HTML_REPORT_PANEL_BASE::m_htmlView, m_lazyUpdate, m_reporter, onMenuEvent(), onThemeChanged(), and WX_HTML_REPORT_PANEL_BASE::WX_HTML_REPORT_PANEL_BASE().
| WX_HTML_REPORT_PANEL::~WX_HTML_REPORT_PANEL | ( | ) | 
Definition at line 56 of file wx_html_report_panel.cpp.
| void WX_HTML_REPORT_PANEL::Clear | ( | ) | 
Clears the report panel.
Definition at line 351 of file wx_html_report_panel.cpp.
References m_report, m_reportHead, and m_reportTail.
| int WX_HTML_REPORT_PANEL::Count | ( | int | severityMask | ) | 
Return the number of messages matching the given severity mask.
Definition at line 152 of file wx_html_report_panel.cpp.
References m_report, m_reportHead, and m_reportTail.
Referenced by updateBadges().
| void WX_HTML_REPORT_PANEL::Flush | ( | bool | aSort = false | ) | 
Force updating the HTML page, after the report is built in lazy mode If aSort = true, the body messages will be ordered by severity.
Definition at line 103 of file wx_html_report_panel.cpp.
References generateHtml(), WX_HTML_REPORT_PANEL_BASE::m_htmlView, m_report, m_reportHead, m_reportTail, and scrollToBottom().
Referenced by onCheckBox(), onThemeChanged(), and WX_HTML_REPORT_PANEL().
      
  | 
  private | 
Definition at line 169 of file wx_html_report_panel.cpp.
References _, GetVisibleSeverities(), KIPLATFORM::UI::IsDarkTheme(), WX_HTML_REPORT_PANEL::REPORT_LINE::message, RPT_SEVERITY_ACTION, RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, RPT_SEVERITY_WARNING, and WX_HTML_REPORT_PANEL::REPORT_LINE::severity.
      
  | 
  private | 
Definition at line 227 of file wx_html_report_panel.cpp.
References _, WX_HTML_REPORT_PANEL::REPORT_LINE::message, RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, RPT_SEVERITY_WARNING, and WX_HTML_REPORT_PANEL::REPORT_LINE::severity.
Referenced by onBtnSaveToFile().
      
  | 
  inline | 
Definition at line 109 of file wx_html_report_panel.h.
References m_reportFileName.
| int WX_HTML_REPORT_PANEL::GetVisibleSeverities | ( | ) | const | 
Definition at line 365 of file wx_html_report_panel.cpp.
References WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowActions, WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowErrors, WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowInfos, WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowWarnings, RPT_SEVERITY_ACTION, RPT_SEVERITY_ERROR, RPT_SEVERITY_INFO, and RPT_SEVERITY_WARNING.
Referenced by generateHtml(), and onCheckBox().
| void WX_HTML_REPORT_PANEL::MsgPanelSetMinSize | ( | const wxSize & | aMinSize | ) | 
Set the min size of the area which displays html messages.
Definition at line 69 of file wx_html_report_panel.cpp.
References WX_HTML_REPORT_PANEL_BASE::m_fgSizer.
      
  | 
  overrideprivatevirtual | 
Reimplemented from WX_HTML_REPORT_PANEL_BASE.
Definition at line 297 of file wx_html_report_panel.cpp.
References _, ConvertSmartQuotesAndDashes(), generatePlainText(), m_report, m_reportFileName, m_reportHead, m_reportTail, and FILEEXT::TextFileWildcard().
      
  | 
  overrideprivatevirtual | 
Reimplemented from WX_HTML_REPORT_PANEL_BASE.
Definition at line 276 of file wx_html_report_panel.cpp.
References Flush(), GetVisibleSeverities(), WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowActions, WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowAll, WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowErrors, WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowInfos, WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowWarnings, and RPT_SEVERITY_ALL.
      
  | 
  private | 
Definition at line 248 of file wx_html_report_panel.cpp.
References WX_HTML_REPORT_PANEL_BASE::m_htmlView.
Referenced by WX_HTML_REPORT_PANEL().
      
  | 
  overrideprivatevirtual | 
Reimplemented from WX_HTML_REPORT_PANEL_BASE.
Definition at line 239 of file wx_html_report_panel.cpp.
References _.
      
  | 
  private | 
Definition at line 61 of file wx_html_report_panel.cpp.
References Flush().
Referenced by WX_HTML_REPORT_PANEL().
| void WX_HTML_REPORT_PANEL::Report | ( | const wxString & | aText, | 
| SEVERITY | aSeverity, | ||
| REPORTER::LOCATION | aLocation = REPORTER::LOC_BODY ) | 
Report the string.
| aText | string message to report. | 
| aSeverity | string classification level bitfield. | 
| aLocation | REPORTER::LOCATION enum for placement of message. | 
Definition at line 82 of file wx_html_report_panel.cpp.
References generateHtml(), REPORTER::LOC_HEAD, REPORTER::LOC_TAIL, WX_HTML_REPORT_PANEL_BASE::m_htmlView, m_lazyUpdate, m_report, m_reportHead, m_reportTail, WX_HTML_REPORT_PANEL::REPORT_LINE::message, scrollToBottom(), and WX_HTML_REPORT_PANEL::REPORT_LINE::severity.
| REPORTER & WX_HTML_REPORT_PANEL::Reporter | ( | ) | 
Return the reporter object that reports to this panel.
Definition at line 76 of file wx_html_report_panel.cpp.
References m_reporter.
      
  | 
  private | 
Definition at line 130 of file wx_html_report_panel.cpp.
References WX_HTML_REPORT_PANEL_BASE::m_htmlView, and updateBadges().
      
  | 
  inline | 
Set the report full file name to the string.
Definition at line 106 of file wx_html_report_panel.h.
References m_reportFileName.
      
  | 
  override | 
Set the frame label.
Definition at line 359 of file wx_html_report_panel.cpp.
References WX_HTML_REPORT_PANEL_BASE::m_box.
      
  | 
  inline | 
Set the lazy update.
If this mode is on, messages are stored but the display is not updated (Updating display can be very time consuming if there are many messages) A call to Flush() will be needed after build the report
Definition at line 95 of file wx_html_report_panel.h.
References m_lazyUpdate.
      
  | 
  private | 
Definition at line 142 of file wx_html_report_panel.cpp.
References Count(), WX_HTML_REPORT_PANEL_BASE::m_errorsBadge, WX_HTML_REPORT_PANEL_BASE::m_warningsBadge, RPT_SEVERITY_ERROR, and RPT_SEVERITY_WARNING.
Referenced by scrollToBottom().
      
  | 
  protectedinherited | 
Definition at line 43 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::SetLabel(), and WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 54 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 52 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::GetVisibleSeverities(), WX_HTML_REPORT_PANEL::onCheckBox(), WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 47 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::onCheckBox(), WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 48 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::GetVisibleSeverities(), WX_HTML_REPORT_PANEL::onCheckBox(), WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 53 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::GetVisibleSeverities(), WX_HTML_REPORT_PANEL::onCheckBox(), WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 50 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::GetVisibleSeverities(), WX_HTML_REPORT_PANEL::onCheckBox(), WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 49 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::updateBadges(), and WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 44 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::MsgPanelSetMinSize(), and WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 45 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::Flush(), WX_HTML_REPORT_PANEL::onMenuEvent(), WX_HTML_REPORT_PANEL::Report(), WX_HTML_REPORT_PANEL::scrollToBottom(), WX_HTML_REPORT_PANEL::WX_HTML_REPORT_PANEL(), WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().
      
  | 
  private | 
Definition at line 141 of file wx_html_report_panel.h.
Referenced by Report(), SetLazyUpdate(), and WX_HTML_REPORT_PANEL().
      
  | 
  private | 
copy of the report, stored for filtering
Definition at line 137 of file wx_html_report_panel.h.
Referenced by Clear(), Count(), Flush(), onBtnSaveToFile(), and Report().
      
  | 
  private | 
Definition at line 135 of file wx_html_report_panel.h.
Referenced by Reporter(), and WX_HTML_REPORT_PANEL().
      
  | 
  private | 
defaults to the not very useful /bin/report.txt
Definition at line 143 of file wx_html_report_panel.h.
Referenced by GetFileName(), onBtnSaveToFile(), and SetFileName().
      
  | 
  private | 
... and at the beginning, regardless of sorting
Definition at line 139 of file wx_html_report_panel.h.
Referenced by Clear(), Count(), Flush(), onBtnSaveToFile(), and Report().
      
  | 
  private | 
Lines to print at the end, regardless of sorting.
Definition at line 138 of file wx_html_report_panel.h.
Referenced by Clear(), Count(), Flush(), onBtnSaveToFile(), and Report().
      
  | 
  protectedinherited | 
Definition at line 46 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL_BASE().
      
  | 
  protectedinherited | 
Definition at line 51 of file wx_html_report_panel_base.h.
Referenced by WX_HTML_REPORT_PANEL::updateBadges(), and WX_HTML_REPORT_PANEL_BASE().