|
KiCad PCB EDA Suite
|
The drill chart's own settings in the generated table dialog: which holes it reports, the totals row, the board's hole grouping and template import and export. More...
#include <panel_drill_chart_options.h>
Public Member Functions | |
| PANEL_DRILL_CHART_OPTIONS (wxWindow *aParent) | |
| void | TransferToWindow (const PCB_GENERATED_TABLE &aTable) override |
| bool | TransferFromWindow (PCB_GENERATED_TABLE &aTable, GENERATED_TABLE_REFRESH &aRefresh) override |
| Applies to the table. Board state goes into aRefresh so Cancel leaves the board alone. | |
Public Attributes | |
| std::function< std::optional< GENERATED_TABLE_FORMAT >()> | m_GetFormat |
| The dialog's columns, units and precision as edited so far, or nothing when a grid edit is invalid. | |
| std::function< void(const GENERATED_TABLE_FORMAT &)> | m_SetFormat |
| Hands the dialog a new column set, units and precision, e.g. from an imported template. | |
Protected Attributes | |
| wxCheckBox * | m_filterPlated |
| wxCheckBox * | m_filterNonPlated |
| wxCheckBox * | m_filterVias |
| wxCheckBox * | m_filterSlots |
| wxCheckBox * | m_filterBackdrills |
| wxCheckBox * | m_filterCastellated |
| wxCheckBox * | m_showTotals |
| wxCheckListBox * | m_groupByList |
| wxButton * | m_importTemplateButton |
| wxButton * | m_exportTemplateButton |
Private Member Functions | |
| void | onImportTemplate (wxCommandEvent &aEvent) override |
| void | onExportTemplate (wxCommandEvent &aEvent) override |
The drill chart's own settings in the generated table dialog: which holes it reports, the totals row, the board's hole grouping and template import and export.
Definition at line 30 of file panel_drill_chart_options.h.
|
explicit |
Definition at line 50 of file panel_drill_chart_options.cpp.
References PANEL_DRILL_CHART_OPTIONS_BASE::PANEL_DRILL_CHART_OPTIONS_BASE().
|
overrideprivatevirtual |
Reimplemented from PANEL_DRILL_CHART_OPTIONS_BASE.
Definition at line 138 of file panel_drill_chart_options.cpp.
References _, DRILL_CHART_TEMPLATE::Columns(), DisplayError(), GENERATED_TABLE_OPTIONS_PANEL::m_GetFormat, PANEL_DRILL_CHART_OPTIONS_BASE::m_showTotals, DRILL_CHART_TEMPLATE::SaveToFile(), DRILL_CHART_TEMPLATE::SetName(), DRILL_CHART_TEMPLATE::SetPrecision(), DRILL_CHART_TEMPLATE::SetShowTotals(), and DRILL_CHART_TEMPLATE::SetUnits().
|
overrideprivatevirtual |
Reimplemented from PANEL_DRILL_CHART_OPTIONS_BASE.
Definition at line 111 of file panel_drill_chart_options.cpp.
References _, DRILL_CHART_TEMPLATE::Columns(), DisplayError(), DRILL_CHART_TEMPLATE::GetPrecision(), DRILL_CHART_TEMPLATE::GetShowTotals(), DRILL_CHART_TEMPLATE::GetUnits(), DRILL_CHART_TEMPLATE::LoadFromFile(), GENERATED_TABLE_FORMAT::m_Columns, GENERATED_TABLE_FORMAT::m_Precision, GENERATED_TABLE_OPTIONS_PANEL::m_SetFormat, PANEL_DRILL_CHART_OPTIONS_BASE::m_showTotals, and GENERATED_TABLE_FORMAT::m_Units.
|
overridevirtual |
Applies to the table. Board state goes into aRefresh so Cancel leaves the board alone.
Implements GENERATED_TABLE_OPTIONS_PANEL.
Definition at line 80 of file panel_drill_chart_options.cpp.
References BOARD::BumpDrillModelGeneration(), PCB_DRILL_CHART::Filter(), filter, BOARD_ITEM::GetBoard(), DRILL_SYMBOL_PROFILE::GroupKeys(), PANEL_DRILL_CHART_OPTIONS_BASE::m_filterBackdrills, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterCastellated, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterNonPlated, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterPlated, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterSlots, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterVias, PANEL_DRILL_CHART_OPTIONS_BASE::m_groupByList, PANEL_DRILL_CHART_OPTIONS_BASE::m_showTotals, GENERATED_TABLE_REFRESH::Pending(), DRILL_SYMBOL_PROFILE::SetGroupedBy(), and PCB_DRILL_CHART::SetShowTotals().
|
overridevirtual |
Implements GENERATED_TABLE_OPTIONS_PANEL.
Definition at line 56 of file panel_drill_chart_options.cpp.
References PCB_DRILL_CHART::Filter(), filter, BOARD_ITEM::GetBoard(), PCB_DRILL_CHART::GetShowTotals(), DRILL_SYMBOL_PROFILE::IsGroupedBy(), PANEL_DRILL_CHART_OPTIONS_BASE::m_filterBackdrills, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterCastellated, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterNonPlated, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterPlated, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterSlots, PANEL_DRILL_CHART_OPTIONS_BASE::m_filterVias, PANEL_DRILL_CHART_OPTIONS_BASE::m_groupByList, and PANEL_DRILL_CHART_OPTIONS_BASE::m_showTotals.
|
protectedinherited |
Definition at line 48 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), and ~PANEL_DRILL_CHART_OPTIONS_BASE().
|
protectedinherited |
Definition at line 43 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().
|
protectedinherited |
Definition at line 44 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().
|
protectedinherited |
Definition at line 40 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().
|
protectedinherited |
Definition at line 39 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().
|
protectedinherited |
Definition at line 42 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().
|
protectedinherited |
Definition at line 41 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().
|
inherited |
The dialog's columns, units and precision as edited so far, or nothing when a grid edit is invalid.
Definition at line 62 of file dialog_generated_table_properties.h.
Referenced by PANEL_DRILL_CHART_OPTIONS::onExportTemplate().
|
protectedinherited |
Definition at line 46 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().
|
protectedinherited |
Definition at line 47 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS_BASE(), and ~PANEL_DRILL_CHART_OPTIONS_BASE().
|
inherited |
Hands the dialog a new column set, units and precision, e.g. from an imported template.
Definition at line 65 of file dialog_generated_table_properties.h.
Referenced by PANEL_DRILL_CHART_OPTIONS::onImportTemplate().
|
protectedinherited |
Definition at line 45 of file panel_drill_chart_options_base.h.
Referenced by PANEL_DRILL_CHART_OPTIONS::onExportTemplate(), PANEL_DRILL_CHART_OPTIONS::onImportTemplate(), PANEL_DRILL_CHART_OPTIONS_BASE(), PANEL_DRILL_CHART_OPTIONS::TransferFromWindow(), and PANEL_DRILL_CHART_OPTIONS::TransferToWindow().