KiCad PCB EDA Suite
WX_HTML_REPORT_PANEL_BASE Class Reference

Class WX_HTML_REPORT_PANEL_BASE. More...

#include <wx_html_report_panel_base.h>

Inheritance diagram for WX_HTML_REPORT_PANEL_BASE:
WX_HTML_REPORT_PANEL

Public Member Functions

 WX_HTML_REPORT_PANEL_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(567, 228), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
 
 ~WX_HTML_REPORT_PANEL_BASE ()
 

Protected Member Functions

virtual void onRightClick (wxMouseEvent &event)
 
virtual void onCheckBoxShowAll (wxCommandEvent &event)
 
virtual void onCheckBoxShowErrors (wxCommandEvent &event)
 
virtual void onCheckBoxShowWarnings (wxCommandEvent &event)
 
virtual void onCheckBoxShowActions (wxCommandEvent &event)
 
virtual void onCheckBoxShowInfos (wxCommandEvent &event)
 
virtual void onBtnSaveToFile (wxCommandEvent &event)
 

Protected Attributes

wxStaticBoxSizer * m_box
 
wxFlexGridSizer * m_fgSizer
 
wxHtmlWindow * m_htmlView
 
wxStaticText * m_staticTextShow
 
wxCheckBox * m_checkBoxShowAll
 
wxCheckBox * m_checkBoxShowErrors
 
wxStaticBitmap * m_errorsBadge
 
wxCheckBox * m_checkBoxShowWarnings
 
wxStaticBitmap * m_warningsBadge
 
wxCheckBox * m_checkBoxShowActions
 
wxCheckBox * m_checkBoxShowInfos
 
wxButton * m_btnSaveReportToFile
 

Detailed Description

Class WX_HTML_REPORT_PANEL_BASE.

Definition at line 36 of file wx_html_report_panel_base.h.

Constructor & Destructor Documentation

◆ WX_HTML_REPORT_PANEL_BASE()

WX_HTML_REPORT_PANEL_BASE::WX_HTML_REPORT_PANEL_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint pos = wxDefaultPosition,
const wxSize &  size = wxSize( 567,228 ),
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxEmptyString 
)

Definition at line 12 of file wx_html_report_panel_base.cpp.

12  : wxPanel( parent, id, pos, size, style, name )
13 {
14  m_box = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Output Messages") ), wxVERTICAL );
15 
16  m_box->SetMinSize( wxSize( -1,130 ) );
17  m_fgSizer = new wxFlexGridSizer( 2, 1, 0, 0 );
18  m_fgSizer->AddGrowableCol( 0 );
19  m_fgSizer->AddGrowableRow( 0 );
20  m_fgSizer->SetFlexibleDirection( wxBOTH );
21  m_fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
22 
23  m_htmlView = new wxHtmlWindow( m_box->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
24  m_htmlView->SetFont( wxFont( 10, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
25 
26  m_fgSizer->Add( m_htmlView, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 2 );
27 
28  wxBoxSizer* bSizerBottom;
29  bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
30 
31  m_staticTextShow = new wxStaticText( m_box->GetStaticBox(), wxID_ANY, _("Show:"), wxDefaultPosition, wxDefaultSize, 0 );
32  m_staticTextShow->Wrap( -1 );
33  bSizerBottom->Add( m_staticTextShow, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
34 
35  m_checkBoxShowAll = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("All"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_checkBoxShowAll->SetValue(true);
37  bSizerBottom->Add( m_checkBoxShowAll, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
38 
39 
40  bSizerBottom->Add( 20, 0, 0, wxEXPAND, 5 );
41 
42  m_checkBoxShowErrors = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Errors"), wxDefaultPosition, wxDefaultSize, 0 );
43  bSizerBottom->Add( m_checkBoxShowErrors, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
44 
45  m_errorsBadge = new wxStaticBitmap( m_box->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
46  m_errorsBadge->SetMinSize( wxSize( 20,20 ) );
47 
48  bSizerBottom->Add( m_errorsBadge, 0, wxBOTTOM|wxRIGHT|wxTOP|wxALIGN_CENTER_VERTICAL, 4 );
49 
50  m_checkBoxShowWarnings = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Warnings"), wxDefaultPosition, wxDefaultSize, 0 );
51  bSizerBottom->Add( m_checkBoxShowWarnings, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
52 
53  m_warningsBadge = new wxStaticBitmap( m_box->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
54  m_warningsBadge->SetMinSize( wxSize( 20,20 ) );
55 
56  bSizerBottom->Add( m_warningsBadge, 0, wxBOTTOM|wxRIGHT|wxTOP|wxALIGN_CENTER_VERTICAL, 4 );
57 
58  m_checkBoxShowActions = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Actions"), wxDefaultPosition, wxDefaultSize, 0 );
59  bSizerBottom->Add( m_checkBoxShowActions, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
60 
61 
62  bSizerBottom->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
63 
64  m_checkBoxShowInfos = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Infos"), wxDefaultPosition, wxDefaultSize, 0 );
65  bSizerBottom->Add( m_checkBoxShowInfos, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
66 
67 
68  bSizerBottom->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
69 
70  m_btnSaveReportToFile = new wxButton( m_box->GetStaticBox(), wxID_ANY, _("Save..."), wxDefaultPosition, wxDefaultSize, 0 );
71  bSizerBottom->Add( m_btnSaveReportToFile, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
72 
73 
74  m_fgSizer->Add( bSizerBottom, 0, wxEXPAND, 5 );
75 
76 
77  m_box->Add( m_fgSizer, 1, wxEXPAND, 5 );
78 
79 
80  this->SetSizer( m_box );
81  this->Layout();
82 
83  // Connect Events
84  m_htmlView->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( WX_HTML_REPORT_PANEL_BASE::onRightClick ), NULL, this );
85  m_checkBoxShowAll->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ), NULL, this );
86  m_checkBoxShowErrors->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ), NULL, this );
87  m_checkBoxShowWarnings->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ), NULL, this );
88  m_checkBoxShowActions->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ), NULL, this );
89  m_checkBoxShowInfos->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowInfos ), NULL, this );
90  m_btnSaveReportToFile->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onBtnSaveToFile ), NULL, this );
91 }
virtual void onCheckBoxShowActions(wxCommandEvent &event)
virtual void onCheckBoxShowErrors(wxCommandEvent &event)
#define NULL
virtual void onBtnSaveToFile(wxCommandEvent &event)
const char * name
Definition: DXF_plotter.cpp:60
#define _(s)
Definition: 3d_actions.cpp:33
virtual void onCheckBoxShowInfos(wxCommandEvent &event)
virtual void onCheckBoxShowAll(wxCommandEvent &event)
virtual void onRightClick(wxMouseEvent &event)
virtual void onCheckBoxShowWarnings(wxCommandEvent &event)

References _, m_box, m_btnSaveReportToFile, m_checkBoxShowActions, m_checkBoxShowAll, m_checkBoxShowErrors, m_checkBoxShowInfos, m_checkBoxShowWarnings, m_errorsBadge, m_fgSizer, m_htmlView, m_staticTextShow, m_warningsBadge, NULL, onBtnSaveToFile(), onCheckBoxShowActions(), onCheckBoxShowAll(), onCheckBoxShowErrors(), onCheckBoxShowInfos(), onCheckBoxShowWarnings(), and onRightClick().

◆ ~WX_HTML_REPORT_PANEL_BASE()

WX_HTML_REPORT_PANEL_BASE::~WX_HTML_REPORT_PANEL_BASE ( )

Definition at line 93 of file wx_html_report_panel_base.cpp.

94 {
95  // Disconnect Events
96  m_htmlView->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( WX_HTML_REPORT_PANEL_BASE::onRightClick ), NULL, this );
97  m_checkBoxShowAll->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ), NULL, this );
98  m_checkBoxShowErrors->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ), NULL, this );
99  m_checkBoxShowWarnings->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ), NULL, this );
100  m_checkBoxShowActions->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ), NULL, this );
101  m_checkBoxShowInfos->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowInfos ), NULL, this );
102  m_btnSaveReportToFile->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onBtnSaveToFile ), NULL, this );
103 
104 }
virtual void onCheckBoxShowActions(wxCommandEvent &event)
virtual void onCheckBoxShowErrors(wxCommandEvent &event)
#define NULL
virtual void onBtnSaveToFile(wxCommandEvent &event)
virtual void onCheckBoxShowInfos(wxCommandEvent &event)
virtual void onCheckBoxShowAll(wxCommandEvent &event)
virtual void onRightClick(wxMouseEvent &event)
virtual void onCheckBoxShowWarnings(wxCommandEvent &event)

References m_btnSaveReportToFile, m_checkBoxShowActions, m_checkBoxShowAll, m_checkBoxShowErrors, m_checkBoxShowInfos, m_checkBoxShowWarnings, m_htmlView, NULL, onBtnSaveToFile(), onCheckBoxShowActions(), onCheckBoxShowAll(), onCheckBoxShowErrors(), onCheckBoxShowInfos(), onCheckBoxShowWarnings(), and onRightClick().

Member Function Documentation

◆ onBtnSaveToFile()

virtual void WX_HTML_REPORT_PANEL_BASE::onBtnSaveToFile ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 61 of file wx_html_report_panel_base.h.

61 { event.Skip(); }

Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

◆ onCheckBoxShowActions()

virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 59 of file wx_html_report_panel_base.h.

59 { event.Skip(); }

Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

◆ onCheckBoxShowAll()

virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 56 of file wx_html_report_panel_base.h.

56 { event.Skip(); }

Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

◆ onCheckBoxShowErrors()

virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 57 of file wx_html_report_panel_base.h.

57 { event.Skip(); }

Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

◆ onCheckBoxShowInfos()

virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowInfos ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 60 of file wx_html_report_panel_base.h.

60 { event.Skip(); }

Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

◆ onCheckBoxShowWarnings()

virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 58 of file wx_html_report_panel_base.h.

58 { event.Skip(); }

Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

◆ onRightClick()

virtual void WX_HTML_REPORT_PANEL_BASE::onRightClick ( wxMouseEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 55 of file wx_html_report_panel_base.h.

55 { event.Skip(); }

Referenced by WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

Member Data Documentation

◆ m_box

wxStaticBoxSizer* WX_HTML_REPORT_PANEL_BASE::m_box
protected

◆ m_btnSaveReportToFile

wxButton* WX_HTML_REPORT_PANEL_BASE::m_btnSaveReportToFile
protected

◆ m_checkBoxShowActions

wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowActions
protected

◆ m_checkBoxShowAll

wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowAll
protected

◆ m_checkBoxShowErrors

wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowErrors
protected

◆ m_checkBoxShowInfos

wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowInfos
protected

◆ m_checkBoxShowWarnings

wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowWarnings
protected

◆ m_errorsBadge

wxStaticBitmap* WX_HTML_REPORT_PANEL_BASE::m_errorsBadge
protected

◆ m_fgSizer

wxFlexGridSizer* WX_HTML_REPORT_PANEL_BASE::m_fgSizer
protected

◆ m_htmlView

◆ m_staticTextShow

wxStaticText* WX_HTML_REPORT_PANEL_BASE::m_staticTextShow
protected

Definition at line 44 of file wx_html_report_panel_base.h.

Referenced by WX_HTML_REPORT_PANEL_BASE().

◆ m_warningsBadge

wxStaticBitmap* WX_HTML_REPORT_PANEL_BASE::m_warningsBadge
protected

The documentation for this class was generated from the following files: