2015-06-16 12:20:42 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2021-09-12 11:17:22 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2015-06-16 12:20:42 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-02-28 09:44:22 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2015-06-16 12:20:42 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "wx_html_report_panel_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2020-02-28 00:05:40 +00:00
|
|
|
WX_HTML_REPORT_PANEL_BASE::WX_HTML_REPORT_PANEL_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
|
2015-06-16 12:20:42 +00:00
|
|
|
{
|
2021-08-17 16:40:15 +00:00
|
|
|
this->SetMinSize( wxSize( -1,225 ) );
|
|
|
|
|
2018-02-28 09:44:22 +00:00
|
|
|
m_box = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Output Messages") ), wxVERTICAL );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2018-02-17 11:43:56 +00:00
|
|
|
m_fgSizer = new wxFlexGridSizer( 2, 1, 0, 0 );
|
|
|
|
m_fgSizer->AddGrowableCol( 0 );
|
|
|
|
m_fgSizer->AddGrowableRow( 0 );
|
|
|
|
m_fgSizer->SetFlexibleDirection( wxBOTH );
|
|
|
|
m_fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2015-10-26 07:46:19 +00:00
|
|
|
m_htmlView = new wxHtmlWindow( m_box->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
|
2018-02-19 01:15:30 +00:00
|
|
|
m_fgSizer->Add( m_htmlView, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 2 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2018-07-31 11:16:58 +00:00
|
|
|
wxBoxSizer* bSizerBottom;
|
|
|
|
bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2018-07-31 11:16:58 +00:00
|
|
|
m_staticTextShow = new wxStaticText( m_box->GetStaticBox(), wxID_ANY, _("Show:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextShow->Wrap( -1 );
|
2021-08-17 16:40:15 +00:00
|
|
|
bSizerBottom->Add( m_staticTextShow, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2015-10-26 07:46:19 +00:00
|
|
|
m_checkBoxShowAll = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("All"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-02-28 00:05:40 +00:00
|
|
|
m_checkBoxShowAll->SetValue(true);
|
2021-08-17 16:40:15 +00:00
|
|
|
bSizerBottom->Add( m_checkBoxShowAll, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerBottom->Add( 20, 0, 0, wxEXPAND, 5 );
|
|
|
|
|
2018-02-20 01:40:14 +00:00
|
|
|
m_checkBoxShowErrors = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Errors"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-08-17 16:40:15 +00:00
|
|
|
bSizerBottom->Add( m_checkBoxShowErrors, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2020-10-20 01:32:49 +00:00
|
|
|
m_errorsBadge = new NUMBER_BADGE( m_box->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerBottom->Add( m_errorsBadge, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 4 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2018-02-20 01:40:14 +00:00
|
|
|
m_checkBoxShowWarnings = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Warnings"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-08-17 16:40:15 +00:00
|
|
|
bSizerBottom->Add( m_checkBoxShowWarnings, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2020-10-20 01:32:49 +00:00
|
|
|
m_warningsBadge = new NUMBER_BADGE( m_box->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerBottom->Add( m_warningsBadge, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxTOP, 4 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2018-07-08 20:01:40 +00:00
|
|
|
m_checkBoxShowActions = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Actions"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-08-17 16:40:15 +00:00
|
|
|
bSizerBottom->Add( m_checkBoxShowActions, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
|
|
|
|
2018-07-31 11:16:58 +00:00
|
|
|
bSizerBottom->Add( 0, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2018-07-08 20:01:40 +00:00
|
|
|
m_checkBoxShowInfos = new wxCheckBox( m_box->GetStaticBox(), wxID_ANY, _("Infos"), wxDefaultPosition, wxDefaultSize, 0 );
|
2021-08-17 16:40:15 +00:00
|
|
|
bSizerBottom->Add( m_checkBoxShowInfos, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
|
|
|
|
2018-07-31 11:16:58 +00:00
|
|
|
bSizerBottom->Add( 0, 0, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2018-02-28 09:44:22 +00:00
|
|
|
m_btnSaveReportToFile = new wxButton( m_box->GetStaticBox(), wxID_ANY, _("Save..."), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-07-31 11:16:58 +00:00
|
|
|
bSizerBottom->Add( m_btnSaveReportToFile, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
|
|
|
|
2018-07-31 11:16:58 +00:00
|
|
|
m_fgSizer->Add( bSizerBottom, 0, wxEXPAND, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
|
|
|
|
2018-02-19 01:15:30 +00:00
|
|
|
m_box->Add( m_fgSizer, 1, wxEXPAND, 5 );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
|
|
|
|
2015-07-24 15:47:48 +00:00
|
|
|
this->SetSizer( m_box );
|
2015-06-16 12:20:42 +00:00
|
|
|
this->Layout();
|
2021-08-17 16:40:15 +00:00
|
|
|
m_box->Fit( this );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2015-06-16 12:20:42 +00:00
|
|
|
// Connect Events
|
2018-03-19 16:03:36 +00:00
|
|
|
m_htmlView->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( WX_HTML_REPORT_PANEL_BASE::onRightClick ), NULL, this );
|
2015-06-16 12:20:42 +00:00
|
|
|
m_checkBoxShowAll->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ), NULL, this );
|
|
|
|
m_checkBoxShowErrors->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ), NULL, this );
|
2018-02-20 01:40:14 +00:00
|
|
|
m_checkBoxShowWarnings->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ), NULL, this );
|
2015-06-16 12:20:42 +00:00
|
|
|
m_checkBoxShowActions->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ), NULL, this );
|
2018-07-08 20:01:40 +00:00
|
|
|
m_checkBoxShowInfos->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowInfos ), NULL, this );
|
2015-06-16 12:20:42 +00:00
|
|
|
m_btnSaveReportToFile->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onBtnSaveToFile ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
WX_HTML_REPORT_PANEL_BASE::~WX_HTML_REPORT_PANEL_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2018-03-19 16:03:36 +00:00
|
|
|
m_htmlView->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( WX_HTML_REPORT_PANEL_BASE::onRightClick ), NULL, this );
|
2015-06-16 12:20:42 +00:00
|
|
|
m_checkBoxShowAll->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowAll ), NULL, this );
|
|
|
|
m_checkBoxShowErrors->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowErrors ), NULL, this );
|
2018-02-20 01:40:14 +00:00
|
|
|
m_checkBoxShowWarnings->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowWarnings ), NULL, this );
|
2015-06-16 12:20:42 +00:00
|
|
|
m_checkBoxShowActions->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowActions ), NULL, this );
|
2018-07-08 20:01:40 +00:00
|
|
|
m_checkBoxShowInfos->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onCheckBoxShowInfos ), NULL, this );
|
2015-06-16 12:20:42 +00:00
|
|
|
m_btnSaveReportToFile->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_HTML_REPORT_PANEL_BASE::onBtnSaveToFile ), NULL, this );
|
2020-02-28 00:05:40 +00:00
|
|
|
|
2015-06-16 12:20:42 +00:00
|
|
|
}
|