14DIALOG_FP_EDIT_PAD_TABLE_BASE::DIALOG_FP_EDIT_PAD_TABLE_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 topSizer =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bSummarySizer;
22 bSummarySizer =
new wxBoxSizer( wxHORIZONTAL );
24 m_staticTextPinNumbers =
new wxStaticText(
this, wxID_ANY,
_(
"Pad numbers:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_pin_numbers_summary =
new wxStaticText(
this, wxID_ANY,
_(
"0"), wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_END );
33 bSummarySizer->Add( 0, 0, 1, wxEXPAND, 5 );
35 m_staticTextPinCount =
new wxStaticText(
this, wxID_ANY,
_(
"Pad count:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_pin_count =
new wxStaticText(
this, wxID_ANY,
_(
"0"), wxDefaultPosition, wxDefaultSize, 0 );
41 bSummarySizer->Add(
m_pin_count, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
44 bSummarySizer->Add( 0, 0, 1, wxEXPAND, 5 );
50 m_duplicate_pins =
new wxStaticText(
this, wxID_ANY,
_(
"0"), wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_END );
52 bSummarySizer->Add(
m_duplicate_pins, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
55 topSizer->Add( bSummarySizer, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
57 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxSize( 800,400 ), 0 );
60 m_grid->CreateGrid( 1, 11 );
61 m_grid->EnableEditing(
true );
62 m_grid->EnableGridLines(
true );
63 m_grid->EnableDragGridSize(
false );
64 m_grid->SetMargins( 0, 0 );
67 m_grid->SetColSize( 0, 60 );
68 m_grid->SetColSize( 1, 110 );
69 m_grid->SetColSize( 2, 140 );
70 m_grid->SetColSize( 3, 84 );
71 m_grid->SetColSize( 4, 84 );
72 m_grid->SetColSize( 5, 84 );
73 m_grid->SetColSize( 6, 84 );
74 m_grid->SetColSize( 7, 84 );
75 m_grid->SetColSize( 8, 84 );
76 m_grid->SetColSize( 9, 110 );
77 m_grid->SetColSize( 10, 110 );
78 m_grid->EnableDragColMove(
false );
79 m_grid->EnableDragColSize(
true );
80 m_grid->SetColLabelValue( 0,
_(
"Number") );
81 m_grid->SetColLabelValue( 1,
_(
"Type") );
82 m_grid->SetColLabelValue( 2,
_(
"Shape") );
83 m_grid->SetColLabelValue( 3,
_(
"X Position") );
84 m_grid->SetColLabelValue( 4,
_(
"Y Position") );
85 m_grid->SetColLabelValue( 5,
_(
"Size X") );
86 m_grid->SetColLabelValue( 6,
_(
"Size Y") );
87 m_grid->SetColLabelValue( 7,
_(
"Drill X") );
88 m_grid->SetColLabelValue( 8,
_(
"Drill Y") );
89 m_grid->SetColLabelValue( 9,
_(
"Pad->Die Length") );
90 m_grid->SetColLabelValue( 10,
_(
"Pad->Die Delay") );
91 m_grid->SetColLabelSize( 24 );
92 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
95 m_grid->EnableDragRowSize(
false );
96 m_grid->SetRowLabelSize( 0 );
97 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
102 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
103 topSizer->Add(
m_grid, 1, wxEXPAND|wxALL, 5 );
112 topSizer->Add(
m_sdbSizer, 0, wxALIGN_RIGHT|wxALL, 5 );
115 this->SetSizer( topSizer );
117 topSizer->Fit(
this );
119 this->Centre( wxBOTH );