2013-05-26 04:36:44 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2015-02-17 16:32:47 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Jun 5 2014)
|
2013-05-26 04:36:44 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#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 )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( 400,200 ), wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerMain;
|
|
|
|
bSizerMain = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
m_footprintWizardsGrid = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
|
|
|
|
// Grid
|
2015-04-21 15:42:30 +00:00
|
|
|
m_footprintWizardsGrid->CreateGrid( 0, 2 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_footprintWizardsGrid->EnableEditing( false );
|
|
|
|
m_footprintWizardsGrid->EnableGridLines( true );
|
|
|
|
m_footprintWizardsGrid->EnableDragGridSize( false );
|
|
|
|
m_footprintWizardsGrid->SetMargins( 0, 0 );
|
|
|
|
|
|
|
|
// Columns
|
2015-04-21 15:42:30 +00:00
|
|
|
m_footprintWizardsGrid->SetColSize( 0, 160 );
|
|
|
|
m_footprintWizardsGrid->SetColSize( 1, 325 );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_footprintWizardsGrid->EnableDragColMove( false );
|
|
|
|
m_footprintWizardsGrid->EnableDragColSize( true );
|
|
|
|
m_footprintWizardsGrid->SetColLabelSize( 20 );
|
2015-04-21 15:42:30 +00:00
|
|
|
m_footprintWizardsGrid->SetColLabelValue( 0, _("Name") );
|
|
|
|
m_footprintWizardsGrid->SetColLabelValue( 1, _("Description") );
|
2013-05-26 04:36:44 +00:00
|
|
|
m_footprintWizardsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Rows
|
|
|
|
m_footprintWizardsGrid->AutoSizeRows();
|
|
|
|
m_footprintWizardsGrid->EnableDragRowSize( true );
|
|
|
|
m_footprintWizardsGrid->SetRowLabelSize( 1 );
|
|
|
|
m_footprintWizardsGrid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
|
|
|
|
|
|
|
|
// Label Appearance
|
|
|
|
|
|
|
|
// Cell Defaults
|
|
|
|
m_footprintWizardsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
|
|
|
m_footprintWizardsGrid->SetMinSize( wxSize( 485,120 ) );
|
|
|
|
|
|
|
|
bSizerMain->Add( m_footprintWizardsGrid, 1, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2015-04-21 15:42:30 +00:00
|
|
|
m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bSizerMain->Add( m_staticline, 0, wxEXPAND | wxALL, 5 );
|
2015-02-17 16:32:47 +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();
|
|
|
|
|
2015-02-17 16:32:47 +00:00
|
|
|
bSizerMain->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
|
2013-05-26 04:36:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer( bSizerMain );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_footprintWizardsGrid->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellWizardClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_FOOTPRINT_WIZARD_LIST_BASE::~DIALOG_FOOTPRINT_WIZARD_LIST_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_footprintWizardsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellWizardClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|