2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-10-10 16:38:04 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 26 2018)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2019-05-07 09:06:04 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_about_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
DIALOG_ABOUT_BASE::DIALOG_ABOUT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
|
2013-05-26 04:36:44 +00:00
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
wxBoxSizer* bSizerTitle;
|
|
|
|
bSizerTitle = new wxBoxSizer( wxHORIZONTAL );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
m_bitmapApp = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
|
2017-08-18 06:06:45 +00:00
|
|
|
bSizerTitle->Add( m_bitmapApp, 1, wxALIGN_CENTER|wxALL, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* b_apptitleSizer;
|
|
|
|
b_apptitleSizer = new wxBoxSizer( wxVERTICAL );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
m_staticTextAppTitle = new wxStaticText( this, wxID_ANY, _("App Title"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextAppTitle->Wrap( -1 );
|
2016-05-10 06:56:03 +00:00
|
|
|
m_staticTextAppTitle->SetFont( wxFont( 14, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
b_apptitleSizer->Add( m_staticTextAppTitle, 0, wxALIGN_CENTER|wxALL, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
m_staticTextCopyright = new wxStaticText( this, wxID_ANY, _("Copyright Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextCopyright->Wrap( -1 );
|
|
|
|
b_apptitleSizer->Add( m_staticTextCopyright, 0, wxALIGN_CENTER|wxALL, 1 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
m_staticTextBuildVersion = new wxStaticText( this, wxID_ANY, _("Build Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextBuildVersion->Wrap( -1 );
|
|
|
|
b_apptitleSizer->Add( m_staticTextBuildVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
m_staticTextLibVersion = new wxStaticText( this, wxID_ANY, _("Lib Version Info"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_staticTextLibVersion->Wrap( -1 );
|
2016-03-11 16:40:24 +00:00
|
|
|
b_apptitleSizer->Add( m_staticTextLibVersion, 0, wxALIGN_CENTER|wxLEFT|wxRIGHT|wxTOP, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
bSizerTitle->Add( b_apptitleSizer, 10, wxALL|wxEXPAND, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2020-02-21 02:17:32 +00:00
|
|
|
wxBoxSizer* bSizer5;
|
|
|
|
bSizer5 = new wxBoxSizer( wxVERTICAL );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2020-02-21 02:17:32 +00:00
|
|
|
|
|
|
|
bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_btCopyVersionInfo = new wxButton( this, wxID_COPY, _("&Copy Version Info"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_btCopyVersionInfo->SetToolTip( _("Copy KiCad version info to the clipboard") );
|
|
|
|
|
2020-02-22 16:23:47 +00:00
|
|
|
bSizer5->Add( m_btCopyVersionInfo, 0, wxALL|wxEXPAND, 5 );
|
2020-02-21 02:17:32 +00:00
|
|
|
|
|
|
|
m_btReportBug = new wxButton( this, wxID_COPY, _("&Report Bug"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_btReportBug->SetToolTip( _("Report a problem with KiCad") );
|
|
|
|
|
2020-03-28 09:28:57 +00:00
|
|
|
bSizer5->Add( m_btReportBug, 0, wxALL|wxEXPAND, 5 );
|
2020-02-21 02:17:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerTitle->Add( bSizer5, 0, wxEXPAND, 10 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerTitle->Add( 0, 0, 1, wxEXPAND, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
bSizerMain->Add( bSizerTitle, 0, wxEXPAND, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2020-10-10 16:38:04 +00:00
|
|
|
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_notebook->SetMinSize( wxSize( 750,350 ) );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
|
2020-10-10 16:38:04 +00:00
|
|
|
bSizerMain->Add( m_notebook, 2, wxEXPAND | wxALL, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
wxBoxSizer* bSizerButtons;
|
|
|
|
bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2019-05-07 09:23:10 +00:00
|
|
|
m_btOk = new wxButton( this, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
m_btOk->SetDefault();
|
2017-08-18 06:06:45 +00:00
|
|
|
bSizerButtons->Add( m_btOk, 0, wxALL, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
bSizerMain->Add( bSizerButtons, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 5 );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Layout();
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
// Connect Events
|
|
|
|
m_btCopyVersionInfo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
|
2020-02-21 02:17:32 +00:00
|
|
|
m_btReportBug->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onReportBug ), NULL, this );
|
2020-10-10 16:38:04 +00:00
|
|
|
m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_ABOUT_BASE::OnNotebookPageChanged ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|
|
|
|
|
2017-08-18 06:06:45 +00:00
|
|
|
DIALOG_ABOUT_BASE::~DIALOG_ABOUT_BASE()
|
2013-05-26 04:36:44 +00:00
|
|
|
{
|
2017-08-18 06:06:45 +00:00
|
|
|
// Disconnect Events
|
|
|
|
m_btCopyVersionInfo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onCopyVersionInfo ), NULL, this );
|
2020-02-21 02:17:32 +00:00
|
|
|
m_btReportBug->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_ABOUT_BASE::onReportBug ), NULL, this );
|
2020-10-10 16:38:04 +00:00
|
|
|
m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( DIALOG_ABOUT_BASE::OnNotebookPageChanged ), NULL, this );
|
2019-05-07 09:06:04 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|