diff options
Diffstat (limited to 'pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp')
-rw-r--r-- | pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp b/pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp new file mode 100644 index 0000000..73641f7 --- /dev/null +++ b/pcbnew/dialogs/dialog_footprint_wizard_list_base.cpp @@ -0,0 +1,79 @@ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version Jun 17 2015) +// 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_footprintGeneratorsGrid = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); + + // Grid + m_footprintGeneratorsGrid->CreateGrid( 0, 2 ); + m_footprintGeneratorsGrid->EnableEditing( false ); + m_footprintGeneratorsGrid->EnableGridLines( true ); + m_footprintGeneratorsGrid->EnableDragGridSize( false ); + m_footprintGeneratorsGrid->SetMargins( 0, 0 ); + + // Columns + m_footprintGeneratorsGrid->SetColSize( 0, 160 ); + m_footprintGeneratorsGrid->SetColSize( 1, 325 ); + m_footprintGeneratorsGrid->EnableDragColMove( false ); + m_footprintGeneratorsGrid->EnableDragColSize( true ); + m_footprintGeneratorsGrid->SetColLabelSize( 20 ); + m_footprintGeneratorsGrid->SetColLabelValue( 0, _("Name") ); + m_footprintGeneratorsGrid->SetColLabelValue( 1, _("Description") ); + m_footprintGeneratorsGrid->SetColLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTRE ); + + // Rows + m_footprintGeneratorsGrid->AutoSizeRows(); + m_footprintGeneratorsGrid->EnableDragRowSize( true ); + m_footprintGeneratorsGrid->SetRowLabelSize( 1 ); + m_footprintGeneratorsGrid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE ); + + // Label Appearance + + // Cell Defaults + m_footprintGeneratorsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP ); + m_footprintGeneratorsGrid->SetMinSize( wxSize( 485,120 ) ); + + bSizerMain->Add( m_footprintGeneratorsGrid, 1, wxALL|wxEXPAND, 5 ); + + m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); + bSizerMain->Add( m_staticline, 0, wxEXPAND | wxALL, 5 ); + + 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(); + + bSizerMain->Add( m_sdbSizer, 0, wxEXPAND|wxALL, 5 ); + + + this->SetSizer( bSizerMain ); + this->Layout(); + + this->Centre( wxBOTH ); + + // Connect Events + m_footprintGeneratorsGrid->Connect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this ); +} + +DIALOG_FOOTPRINT_WIZARD_LIST_BASE::~DIALOG_FOOTPRINT_WIZARD_LIST_BASE() +{ + // Disconnect Events + m_footprintGeneratorsGrid->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( DIALOG_FOOTPRINT_WIZARD_LIST_BASE::OnCellFpGeneratorClick ), NULL, this ); + +} |