2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2023-01-09 13:49:20 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-05-20 19:58:52 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_footprint_wizard_list_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_FOOTPRINT_WIZARD_LIST_BASE::DIALOG_FOOTPRINT_WIZARD_LIST_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
2017-01-07 20:10:38 +00:00
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_panelGenerators = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
2017-01-07 20:10:38 +00:00
|
|
|
m_panelGenerators->SetMinSize( wxSize( 550,300 ) );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
wxBoxSizer* bSizerpanelGen;
|
|
|
|
bSizerpanelGen = new wxBoxSizer( wxVERTICAL );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
m_footprintGeneratorsGrid = new wxGrid( m_panelGenerators, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
// Grid
|
2017-01-04 14:03:43 +00:00
|
|
|
m_footprintGeneratorsGrid->CreateGrid( 0, 3 );
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->EnableEditing( false );
|
|
|
|
m_footprintGeneratorsGrid->EnableGridLines( true );
|
|
|
|
m_footprintGeneratorsGrid->EnableDragGridSize( false );
|
|
|
|
m_footprintGeneratorsGrid->SetMargins( 0, 0 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
// Columns
|
2017-01-07 12:39:47 +00:00
|
|
|
m_footprintGeneratorsGrid->SetColSize( 0, 40 );
|
|
|
|
m_footprintGeneratorsGrid->SetColSize( 1, 160 );
|
|
|
|
m_footprintGeneratorsGrid->SetColSize( 2, 325 );
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->EnableDragColMove( false );
|
|
|
|
m_footprintGeneratorsGrid->EnableDragColSize( true );
|
2017-01-04 14:03:43 +00:00
|
|
|
m_footprintGeneratorsGrid->SetColLabelValue( 0, wxEmptyString );
|
|
|
|
m_footprintGeneratorsGrid->SetColLabelValue( 1, _("Name") );
|
|
|
|
m_footprintGeneratorsGrid->SetColLabelValue( 2, _("Description") );
|
2022-06-21 07:42:21 +00:00
|
|
|
m_footprintGeneratorsGrid->SetColLabelSize( 20 );
|
|
|
|
m_footprintGeneratorsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
// Rows
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->AutoSizeRows();
|
|
|
|
m_footprintGeneratorsGrid->EnableDragRowSize( true );
|
2018-05-20 19:58:52 +00:00
|
|
|
m_footprintGeneratorsGrid->SetRowLabelSize( 0 );
|
2022-06-21 07:42:21 +00:00
|
|
|
m_footprintGeneratorsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
// Label Appearance
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
// Cell Defaults
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
|
|
m_footprintGeneratorsGrid->SetMinSize( wxSize( 485,120 ) );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
bSizerpanelGen->Add( m_footprintGeneratorsGrid, 1, wxALL|wxEXPAND, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
m_panelGenerators->SetSizer( bSizerpanelGen );
|
|
|
|
m_panelGenerators->Layout();
|
|
|
|
bSizerpanelGen->Fit( m_panelGenerators );
|
2018-02-04 17:38:01 +00:00
|
|
|
m_notebook->AddPage( m_panelGenerators, _("Available Footprint Generators"), true );
|
2017-01-07 12:39:47 +00:00
|
|
|
m_panelInfo = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
|
|
|
wxBoxSizer* m_bsizerPanelInfo;
|
|
|
|
m_bsizerPanelInfo = new wxBoxSizer( wxVERTICAL );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2018-11-04 14:50:29 +00:00
|
|
|
m_staticTextSearchPaths = new wxStaticText( m_panelInfo, wxID_ANY, _("Search paths:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextSearchPaths->Wrap( -1 );
|
|
|
|
m_bsizerPanelInfo->Add( m_staticTextSearchPaths, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
m_tcSearchPaths = new wxTextCtrl( m_panelInfo, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
|
|
|
|
m_bsizerPanelInfo->Add( m_tcSearchPaths, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2018-11-04 14:50:29 +00:00
|
|
|
m_staticTextNotLoaded = new wxStaticText( m_panelInfo, wxID_ANY, _("Not loadable python scripts:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextNotLoaded->Wrap( -1 );
|
|
|
|
m_bsizerPanelInfo->Add( m_staticTextNotLoaded, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
m_tcNotLoaded = new wxTextCtrl( m_panelInfo, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
|
|
|
|
m_bsizerPanelInfo->Add( m_tcNotLoaded, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
m_buttonShowTrace = new wxButton( m_panelInfo, wxID_ANY, _("Show Trace"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_bsizerPanelInfo->Add( m_buttonShowTrace, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
m_panelInfo->SetSizer( m_bsizerPanelInfo );
|
|
|
|
m_panelInfo->Layout();
|
|
|
|
m_bsizerPanelInfo->Fit( m_panelInfo );
|
2018-02-04 17:38:01 +00:00
|
|
|
m_notebook->AddPage( m_panelInfo, _("Messages"), false );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
bSizerMain->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-09 13:44:07 +00:00
|
|
|
wxBoxSizer* bSizerLower;
|
|
|
|
bSizerLower = new wxBoxSizer( wxHORIZONTAL );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-09 13:44:07 +00:00
|
|
|
m_buttonUpdateModules = new wxButton( this, wxID_ANY, _("Update Python Modules"), wxDefaultPosition, wxDefaultSize, 0 );
|
2018-05-20 19:58:52 +00:00
|
|
|
bSizerLower->Add( m_buttonUpdateModules, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
|
|
|
|
2018-05-20 19:58:52 +00:00
|
|
|
bSizerLower->Add( 0, 0, 1, wxRIGHT|wxLEFT, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2013-08-05 13:43:15 +00:00
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerCancel );
|
|
|
|
m_sdbSizer->Realize();
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2018-11-04 14:50:29 +00:00
|
|
|
bSizerLower->Add( m_sdbSizer, 0, wxALL, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
|
|
|
|
2018-05-20 19:58:52 +00:00
|
|
|
bSizerMain->Add( bSizerLower, 0, wxEXPAND|wxLEFT, 10 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2023-01-09 13:49:20 +00:00
|
|
|
bSizerMain->Fit( this );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
this->Centre( wxBOTH );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2013-05-26 04:36:44 +00:00
|
|
|
// Connect Events
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
|
2017-01-07 12:39:47 +00:00
|
|
|
m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
|
2017-01-07 19:43:39 +00:00
|
|
|
m_buttonShowTrace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onShowTrace ), NULL, this );
|
2017-01-09 13:44:07 +00:00
|
|
|
m_buttonUpdateModules->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onUpdatePythonModulesClick ), NULL, this );
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_FOOTPRINT_WIZARD_LIST_BASE::~DIALOG_FOOTPRINT_WIZARD_LIST_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this );
|
2017-01-07 12:39:47 +00:00
|
|
|
m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_DCLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorDoubleClick ), NULL, this );
|
2017-01-07 19:43:39 +00:00
|
|
|
m_buttonShowTrace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onShowTrace ), NULL, this );
|
2017-01-09 13:44:07 +00:00
|
|
|
m_buttonUpdateModules->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::onUpdatePythonModulesClick ), NULL, this );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_FOOTPRINT_WIZARD_LOG::DIALOG_FOOTPRINT_WIZARD_LOG( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
|
|
|
{
|
2017-01-07 20:10:38 +00:00
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
m_Message = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
|
2022-06-21 07:42:21 +00:00
|
|
|
m_Message->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_TELETYPE, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
|
2017-01-07 20:10:38 +00:00
|
|
|
m_Message->SetMinSize( wxSize( 550,300 ) );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
bSizerMain->Add( m_Message, 1, wxALL|wxEXPAND, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
m_sdbSizer = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer->AddButton( m_sdbSizerOK );
|
|
|
|
m_sdbSizer->Realize();
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2018-11-04 14:50:29 +00:00
|
|
|
bSizerMain->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
2023-01-09 13:49:20 +00:00
|
|
|
bSizerMain->Fit( this );
|
2022-06-21 07:42:21 +00:00
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_FOOTPRINT_WIZARD_LOG::~DIALOG_FOOTPRINT_WIZARD_LOG()
|
|
|
|
{
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|