KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_drill_chart_options_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 wxBoxSizer* bMain;
15 bMain = new wxBoxSizer( wxVERTICAL );
16
17 wxBoxSizer* bOptions;
18 bOptions = new wxBoxSizer( wxHORIZONTAL );
19
20 wxStaticBoxSizer* sbInclude;
21 sbInclude = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Include") ), wxVERTICAL );
22
23 wxFlexGridSizer* fgFilter;
24 fgFilter = new wxFlexGridSizer( 0, 2, 5, 5 );
25 fgFilter->SetFlexibleDirection( wxBOTH );
26 fgFilter->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27
28 m_filterPlated = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Plated holes"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_filterPlated->SetValue(true);
30 fgFilter->Add( m_filterPlated, 0, wxRIGHT, 5 );
31
32 m_filterNonPlated = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Non-plated holes"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_filterNonPlated->SetValue(true);
34 fgFilter->Add( m_filterNonPlated, 0, wxRIGHT, 5 );
35
36 m_filterVias = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_filterVias->SetValue(true);
38 fgFilter->Add( m_filterVias, 0, wxRIGHT, 5 );
39
40 m_filterSlots = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Slots"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_filterSlots->SetValue(true);
42 fgFilter->Add( m_filterSlots, 0, wxRIGHT, 5 );
43
44 m_filterBackdrills = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Backdrills"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_filterBackdrills->SetValue(true);
46 fgFilter->Add( m_filterBackdrills, 0, wxRIGHT, 5 );
47
48 m_filterCastellated = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Castellated"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_filterCastellated->SetValue(true);
50 fgFilter->Add( m_filterCastellated, 0, wxRIGHT, 5 );
51
52
53 sbInclude->Add( fgFilter, 0, wxEXPAND|wxALL, 5 );
54
55 m_showTotals = new wxCheckBox( sbInclude->GetStaticBox(), wxID_ANY, _("Show totals row"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_showTotals->SetValue(true);
57 sbInclude->Add( m_showTotals, 0, wxALL|wxEXPAND, 5 );
58
59
60 bOptions->Add( sbInclude, 1, wxEXPAND|wxALL, 5 );
61
62 wxStaticBoxSizer* sbGroupBy;
63 sbGroupBy = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Group holes by") ), wxVERTICAL );
64
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") );
69 m_groupByList->SetMinSize( wxSize( -1,140 ) );
70
71 sbGroupBy->Add( m_groupByList, 1, wxEXPAND|wxALL, 5 );
72
73
74 bOptions->Add( sbGroupBy, 1, wxEXPAND|wxALL, 5 );
75
76
77 bMain->Add( bOptions, 0, wxEXPAND, 0 );
78
79 wxBoxSizer* bTemplate;
80 bTemplate = new wxBoxSizer( wxHORIZONTAL );
81
82 m_importTemplateButton = new wxButton( this, wxID_ANY, _("Import Template..."), wxDefaultPosition, wxDefaultSize, 0 );
83 bTemplate->Add( m_importTemplateButton, 0, wxRIGHT, 5 );
84
85 m_exportTemplateButton = new wxButton( this, wxID_ANY, _("Export Template..."), wxDefaultPosition, wxDefaultSize, 0 );
86 bTemplate->Add( m_exportTemplateButton, 0, wxRIGHT, 5 );
87
88
89 bMain->Add( bTemplate, 0, wxEXPAND|wxALL, 5 );
90
91
92 this->SetSizer( bMain );
93 this->Layout();
94 bMain->Fit( this );
95
96 // Connect Events
97 m_importTemplateButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_DRILL_CHART_OPTIONS_BASE::onImportTemplate ), NULL, this );
98 m_exportTemplateButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_DRILL_CHART_OPTIONS_BASE::onExportTemplate ), NULL, this );
99}
100
102{
103 // Disconnect Events
104 m_importTemplateButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_DRILL_CHART_OPTIONS_BASE::onImportTemplate ), NULL, this );
105 m_exportTemplateButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_DRILL_CHART_OPTIONS_BASE::onExportTemplate ), NULL, this );
106
107}
const char * name
Settings only one kind of generated table has, shown below the shared column grid.
virtual void onImportTemplate(wxCommandEvent &event)
virtual void onExportTemplate(wxCommandEvent &event)
PANEL_DRILL_CHART_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
#define _(s)