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(-1,-1), long style=wxTAB_TRAVERSAL)
 
 ~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 onCheckBoxShowInfos (wxCommandEvent &event)
 
virtual void onCheckBoxShowActions (wxCommandEvent &event)
 
virtual void onBtnSaveToFile (wxCommandEvent &event)
 

Protected Attributes

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

Detailed Description

Class WX_HTML_REPORT_PANEL_BASE.

Definition at line 37 of file wx_html_report_panel_base.h.

Constructor & Destructor Documentation

WX_HTML_REPORT_PANEL_BASE::WX_HTML_REPORT_PANEL_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,-1 ),
long  style = wxTAB_TRAVERSAL 
)

Definition at line 12 of file wx_html_report_panel_base.cpp.

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

Referenced by onBtnSaveToFile().

12  : wxPanel( parent, id, pos, size, style )
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  wxFlexGridSizer* fgSizer3;
29  fgSizer3 = new wxFlexGridSizer( 1, 9, 0, 0 );
30  fgSizer3->AddGrowableCol( 8 );
31  fgSizer3->SetFlexibleDirection( wxBOTH );
32  fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33 
34  m_staticText3 = new wxStaticText( m_box->GetStaticBox(), wxID_ANY, _("Show:"), wxDefaultPosition, wxDefaultSize, 0 );
35  m_staticText3->Wrap( -1 );
36  fgSizer3->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
37 
38  m_checkBoxShowAll = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("All"), wxDefaultPosition, wxDefaultSize, 0 );
39  m_checkBoxShowAll->SetValue(true);
40  fgSizer3->Add( m_checkBoxShowAll, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
41 
42  m_checkBoxShowErrors = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Errors"), wxDefaultPosition, wxDefaultSize, 0 );
43  fgSizer3->Add( m_checkBoxShowErrors, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
44 
45  m_errorsBadge = new wxStaticBitmap( m_box->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
46  fgSizer3->Add( m_errorsBadge, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
47 
48  m_checkBoxShowWarnings = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Warnings"), wxDefaultPosition, wxDefaultSize, 0 );
49  fgSizer3->Add( m_checkBoxShowWarnings, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
50 
51  m_warningsBadge = new wxStaticBitmap( m_box->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
52  fgSizer3->Add( m_warningsBadge, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
53 
54  m_checkBoxShowInfos = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Infos"), wxDefaultPosition, wxDefaultSize, 0 );
55  fgSizer3->Add( m_checkBoxShowInfos, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
56 
57  m_checkBoxShowActions = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Actions"), wxDefaultPosition, wxDefaultSize, 0 );
58  fgSizer3->Add( m_checkBoxShowActions, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
59 
60  m_btnSaveReportToFile = new wxButton( m_box->GetStaticBox(), wxID_ANY, _("Save Report File"), wxDefaultPosition, wxDefaultSize, 0 );
61  fgSizer3->Add( m_btnSaveReportToFile, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
62 
63 
64  m_fgSizer->Add( fgSizer3, 1, wxEXPAND, 5 );
65 
66 
67  m_box->Add( m_fgSizer, 1, wxEXPAND, 5 );
68 
69 
70  this->SetSizer( m_box );
71  this->Layout();
72  m_box->Fit( this );
73 
74  // Connect Events
75  m_htmlView->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( WX_HTML_REPORT_PANEL_BASE::onRightClick ), NULL, this );
76  m_checkBoxShowAll->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ), NULL, this );
77  m_checkBoxShowErrors->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ), NULL, this );
78  m_checkBoxShowWarnings->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ), NULL, this );
79  m_checkBoxShowInfos->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowInfos ), NULL, this );
80  m_checkBoxShowActions->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ), NULL, this );
81  m_btnSaveReportToFile->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onBtnSaveToFile ), NULL, this );
82 }
virtual void onCheckBoxShowActions(wxCommandEvent &event)
virtual void onCheckBoxShowErrors(wxCommandEvent &event)
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)
WX_HTML_REPORT_PANEL_BASE::~WX_HTML_REPORT_PANEL_BASE ( )

Definition at line 84 of file wx_html_report_panel_base.cpp.

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

Referenced by onBtnSaveToFile().

85 {
86  // Disconnect Events
87  m_htmlView->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( WX_HTML_REPORT_PANEL_BASE::onRightClick ), NULL, this );
88  m_checkBoxShowAll->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ), NULL, this );
89  m_checkBoxShowErrors->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ), NULL, this );
90  m_checkBoxShowWarnings->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ), NULL, this );
91  m_checkBoxShowInfos->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowInfos ), NULL, this );
92  m_checkBoxShowActions->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ), NULL, this );
93  m_btnSaveReportToFile->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onBtnSaveToFile ), NULL, this );
94 
95 }
virtual void onCheckBoxShowActions(wxCommandEvent &event)
virtual void onCheckBoxShowErrors(wxCommandEvent &event)
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)

Member Function Documentation

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

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 62 of file wx_html_report_panel_base.h.

References WX_HTML_REPORT_PANEL_BASE(), and ~WX_HTML_REPORT_PANEL_BASE().

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

62 { event.Skip(); }
virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 61 of file wx_html_report_panel_base.h.

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

61 { event.Skip(); }
virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 57 of file wx_html_report_panel_base.h.

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

57 { event.Skip(); }
virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 58 of file wx_html_report_panel_base.h.

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

58 { event.Skip(); }
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.

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

60 { event.Skip(); }
virtual void WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ( wxCommandEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 59 of file wx_html_report_panel_base.h.

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

59 { event.Skip(); }
virtual void WX_HTML_REPORT_PANEL_BASE::onRightClick ( wxMouseEvent &  event)
inlineprotectedvirtual

Reimplemented in WX_HTML_REPORT_PANEL.

Definition at line 56 of file wx_html_report_panel_base.h.

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

56 { event.Skip(); }

Member Data Documentation

wxStaticBoxSizer* WX_HTML_REPORT_PANEL_BASE::m_box
protected
wxButton* WX_HTML_REPORT_PANEL_BASE::m_btnSaveReportToFile
protected
wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowActions
protected
wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowAll
protected
wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowErrors
protected
wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowInfos
protected
wxCheckBox* WX_HTML_REPORT_PANEL_BASE::m_checkBoxShowWarnings
protected
wxStaticBitmap* WX_HTML_REPORT_PANEL_BASE::m_errorsBadge
protected
wxFlexGridSizer* WX_HTML_REPORT_PANEL_BASE::m_fgSizer
protected
wxStaticText* WX_HTML_REPORT_PANEL_BASE::m_staticText3
protected

Definition at line 45 of file wx_html_report_panel_base.h.

Referenced by WX_HTML_REPORT_PANEL_BASE().

wxStaticBitmap* WX_HTML_REPORT_PANEL_BASE::m_warningsBadge
protected

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