2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-02-04 17:38:01 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Aug 4 2017)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2018-02-04 17:38:01 +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 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
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 ) );
|
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
wxBoxSizer* bSizerpanelGen;
|
|
|
|
bSizerpanelGen = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_footprintGeneratorsGrid = new wxGrid( m_panelGenerators, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
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 );
|
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 );
|
|
|
|
m_footprintGeneratorsGrid->SetColLabelSize( 20 );
|
2017-01-04 14:03:43 +00:00
|
|
|
m_footprintGeneratorsGrid->SetColLabelValue( 0, wxEmptyString );
|
|
|
|
m_footprintGeneratorsGrid->SetColLabelValue( 1, _("Name") );
|
|
|
|
m_footprintGeneratorsGrid->SetColLabelValue( 2, _("Description") );
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
// Rows
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->AutoSizeRows();
|
|
|
|
m_footprintGeneratorsGrid->EnableDragRowSize( true );
|
|
|
|
m_footprintGeneratorsGrid->SetRowLabelSize( 1 );
|
|
|
|
m_footprintGeneratorsGrid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
// Label Appearance
|
|
|
|
|
|
|
|
// Cell Defaults
|
2015-10-31 11:54:48 +00:00
|
|
|
m_footprintGeneratorsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
|
|
m_footprintGeneratorsGrid->SetMinSize( wxSize( 485,120 ) );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
bSizerpanelGen->Add( m_footprintGeneratorsGrid, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2013-05-26 04:36:44 +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 );
|
2017-01-06 19:15:23 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
m_staticText1 = new wxStaticText( m_panelInfo, wxID_ANY, _("Search paths:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2017-01-06 19:15:23 +00:00
|
|
|
m_staticText1->Wrap( -1 );
|
2017-01-07 12:39:47 +00:00
|
|
|
m_bsizerPanelInfo->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
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 );
|
|
|
|
|
|
|
|
m_staticText11 = new wxStaticText( m_panelInfo, wxID_ANY, _("Not loadable python scripts:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticText11->Wrap( -1 );
|
|
|
|
m_bsizerPanelInfo->Add( m_staticText11, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
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 );
|
|
|
|
|
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 );
|
|
|
|
|
2017-01-06 19:15:23 +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 );
|
2017-01-06 19:15:23 +00:00
|
|
|
|
2017-01-07 12:39:47 +00:00
|
|
|
bSizerMain->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
|
2017-01-06 19:15:23 +00:00
|
|
|
|
2017-01-09 13:44:07 +00:00
|
|
|
wxBoxSizer* bSizerLower;
|
|
|
|
bSizerLower = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerLower->Add( 0, 0, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
m_buttonUpdateModules = new wxButton( this, wxID_ANY, _("Update Python Modules"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerLower->Add( m_buttonUpdateModules, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerLower->Add( 0, 0, 0, wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
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();
|
|
|
|
|
2017-01-09 13:44:07 +00:00
|
|
|
bSizerLower->Add( m_sdbSizer, 0, wxALL|wxALIGN_RIGHT, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerMain->Add( bSizerLower, 0, wxEXPAND, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// 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 );
|
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 );
|
2017-01-07 19:43:39 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_Message = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
|
2017-01-07 20:10:38 +00:00
|
|
|
m_Message->SetMinSize( wxSize( 550,300 ) );
|
|
|
|
|
2017-01-07 19:43:39 +00:00
|
|
|
bSizerMain->Add( m_Message, 1, wxALL|wxEXPAND, 5 );
|
2013-05-26 04:36:44 +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();
|
|
|
|
|
|
|
|
bSizerMain->Add( m_sdbSizer, 0, wxALIGN_RIGHT|wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_FOOTPRINT_WIZARD_LOG::~DIALOG_FOOTPRINT_WIZARD_LOG()
|
|
|
|
{
|
2013-05-26 04:36:44 +00:00
|
|
|
}
|