12PANEL_DRILL_CHART_OPTIONS_BASE::PANEL_DRILL_CHART_OPTIONS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
GENERATED_TABLE_OPTIONS_PANEL( parent, id, pos, size, style,
name )
15 bMain =
new wxBoxSizer( wxVERTICAL );
18 bOptions =
new wxBoxSizer( wxHORIZONTAL );
20 wxStaticBoxSizer* sbInclude;
21 sbInclude =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Include") ), wxVERTICAL );
23 wxFlexGridSizer* fgFilter;
24 fgFilter =
new wxFlexGridSizer( 0, 2, 5, 5 );
25 fgFilter->SetFlexibleDirection( wxBOTH );
26 fgFilter->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
28 m_filterPlated =
new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY,
_(
"Plated holes"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_filterNonPlated =
new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY,
_(
"Non-plated holes"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_filterVias =
new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY,
_(
"Vias"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_filterSlots =
new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY,
_(
"Slots"), wxDefaultPosition, wxDefaultSize, 0 );
44 m_filterBackdrills =
new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY,
_(
"Backdrills"), wxDefaultPosition, wxDefaultSize, 0 );
48 m_filterCastellated =
new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY,
_(
"Castellated"), wxDefaultPosition, wxDefaultSize, 0 );
53 sbInclude->Add( fgFilter, 0, wxEXPAND|wxALL, 5 );
55 m_showTotals =
new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY,
_(
"Show totals row"), wxDefaultPosition, wxDefaultSize, 0 );
60 bOptions->Add( sbInclude, 1, wxEXPAND|wxALL, 5 );
62 wxStaticBoxSizer* sbGroupBy;
63 sbGroupBy =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Group holes by") ), wxVERTICAL );
65 wxString m_groupByListChoices[] = {
_(
"Hole size"),
_(
"Slot shape"),
_(
"Plating"),
_(
"Layer span"),
_(
"Drill operation"),
_(
"Hole function"),
_(
"IPC-4761 protection"),
_(
"Post-machining") };
66 int m_groupByListNChoices =
sizeof( m_groupByListChoices ) /
sizeof( wxString );
67 m_groupByList =
new wxCheckListBox( sbGroupBy->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_groupByListNChoices, m_groupByListChoices, 0 );
68 m_groupByList->SetToolTip(
_(
"Grouping is shared by every drill chart and drill map on the board") );
74 bOptions->Add( sbGroupBy, 1, wxEXPAND|wxALL, 5 );
77 bMain->Add( bOptions, 0, wxEXPAND, 0 );
79 wxBoxSizer* bTemplate;
80 bTemplate =
new wxBoxSizer( wxHORIZONTAL );
82 m_importTemplateButton =
new wxButton(
this, wxID_ANY,
_(
"Import Template..."), wxDefaultPosition, wxDefaultSize, 0 );
85 m_exportTemplateButton =
new wxButton(
this, wxID_ANY,
_(
"Export Template..."), wxDefaultPosition, wxDefaultSize, 0 );
89 bMain->Add( bTemplate, 0, wxEXPAND|wxALL, 5 );
92 this->SetSizer( bMain );