|
KiCad PCB EDA Suite
|
#include <panel_fab_export_content.h>
Public Member Functions | |
| PANEL_FAB_EXPORT_CONTENT (wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString) | |
| void | Configure (FAB_CONTENT_FORMAT aFormat, BOARD *aBoard) |
| void | SetContentChanged (std::function< void()> aCallback) |
| FAB::MODE | GetDataSet () const |
| void | SetDataSet (FAB::MODE aMode) |
| JOB_EXPORT_PCB_FAB::NET_NAMES | GetNetNames () const |
| void | SetNetNames (JOB_EXPORT_PCB_FAB::NET_NAMES aNetNames) |
| JOB_EXPORT_PCB_IPC2581::REF_DES | GetRefDes () const |
| void | SetRefDes (JOB_EXPORT_PCB_IPC2581::REF_DES aRefDes) |
| const std::optional< wxString > & | GetSectionKey () const |
| void | SetSectionKey (const std::optional< wxString > &aKey) |
| bool | GetBoardMetadata () const |
| void | SetBoardMetadata (bool aValue) |
| std::vector< wxString > | GetVariantNames () const |
| void | SetVariantNames (const std::vector< wxString > &aNames) |
| bool | IsCombinedVariantOutput () const |
| void | SetCombinedVariantOutput (bool aCombined) |
| const IPC2581_BOM_FIELDS & | GetBomFields () const |
| void | SetBomFields (const IPC2581_BOM_FIELDS &aFields) |
| FAB::SECTION_SET | ResolvedSections () const |
| void | SetBorders (bool aLeft, bool aRight, bool aTop, bool aBottom) |
| void | SetBorderColor (const KIGFX::COLOR4D &aColor) |
Protected Attributes | |
| wxStaticText * | m_columnsLabel |
| wxStaticLine * | m_staticline2 |
| wxStaticText * | m_lblDataSet |
| wxChoice * | m_choiceDataSet |
| wxStaticText * | m_lblNetNames |
| wxChoice * | m_choiceNetNames |
| wxStaticText * | m_lblVariant |
| wxChoice * | m_choiceVariant |
| wxStaticText * | m_lblRefDes |
| wxChoice * | m_choiceRefDes |
| wxRadioBox * | m_variantOutput |
| wxStaticText * | m_variantHint |
| wxStaticText * | m_lblIncludes |
| wxBoxSizer * | bSizerContentButtons |
| wxButton * | m_btnCustomize |
| wxButton * | m_btnBomFields |
Private Member Functions | |
| void | onDataSetChange (wxCommandEvent &aEvent) override |
| void | onVariantChange (wxCommandEvent &aEvent) override |
| void | onVariantOutputChange (wxCommandEvent &aEvent) override |
| void | onCustomizeClick (wxCommandEvent &aEvent) override |
| void | onBomFieldsClick (wxCommandEvent &aEvent) override |
| void | updateSummary () |
| Set the Includes line and BOM Fields button from the function mode. | |
| void | updateVariantOutput () |
| void | changed () |
| void | OnPaint (wxPaintEvent &event) |
Private Attributes | |
| FAB_CONTENT_FORMAT | m_format = FAB_CONTENT_FORMAT::IPC2581 |
| BOARD * | m_board = nullptr |
| IPC2581_BOM_FIELDS | m_bomFields |
| std::vector< FAB::MODE > | m_modes |
| std::vector< wxString > | m_selectedVariants |
| std::optional< wxString > | m_sectionKey |
| Set after Customize An empty IPC-2581 key is a true empty selection. | |
| bool | m_boardMetadata = true |
| std::function< void()> | m_contentChanged |
| int | m_selectedChoice = 0 |
| bool | m_leftBorder |
| bool | m_rightBorder |
| bool | m_topBorder |
| bool | m_bottomBorder |
| KIGFX::COLOR4D | m_borderColor |
Definition at line 41 of file panel_fab_export_content.h.
| PANEL_FAB_EXPORT_CONTENT::PANEL_FAB_EXPORT_CONTENT | ( | wxWindow * | aParent, |
| wxWindowID | aId = wxID_ANY, | ||
| const wxPoint & | aPos = wxDefaultPosition, | ||
| const wxSize & | aSize = wxDefaultSize, | ||
| long | aStyle = wxTAB_TRAVERSAL, | ||
| const wxString & | aName = wxEmptyString ) |
Definition at line 173 of file panel_fab_export_content.cpp.
References PANEL_FAB_EXPORT_CONTENT_BASE::PANEL_FAB_EXPORT_CONTENT_BASE().
|
private |
Definition at line 441 of file panel_fab_export_content.cpp.
References m_contentChanged.
Referenced by onCustomizeClick(), onDataSetChange(), onVariantChange(), and onVariantOutputChange().
| void PANEL_FAB_EXPORT_CONTENT::Configure | ( | FAB_CONTENT_FORMAT | aFormat, |
| BOARD * | aBoard ) |
Definition at line 180 of file panel_fab_export_content.cpp.
References _, BOARD::GetCurrentVariant(), GetDefaultVariantName(), BOARD::GetVariantNames(), m_board, PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceDataSet, PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceRefDes, PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceVariant, m_format, PANEL_FAB_EXPORT_CONTENT_BASE::m_lblRefDes, PANEL_FAB_EXPORT_CONTENT_BASE::m_lblVariant, m_modes, m_selectedChoice, PANEL_FAB_EXPORT_CONTENT_BASE::m_variantHint, PANEL_FAB_EXPORT_CONTENT_BASE::m_variantOutput, ODBPP, and updateSummary().
|
inline |
Definition at line 59 of file panel_fab_export_content.h.
References m_boardMetadata.
|
inline |
Definition at line 65 of file panel_fab_export_content.h.
References m_bomFields.
| FAB::MODE PANEL_FAB_EXPORT_CONTENT::GetDataSet | ( | ) | const |
Definition at line 243 of file panel_fab_export_content.cpp.
References PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceDataSet, and m_modes.
Referenced by onCustomizeClick(), and ResolvedSections().
| JOB_EXPORT_PCB_FAB::NET_NAMES PANEL_FAB_EXPORT_CONTENT::GetNetNames | ( | ) | const |
Definition at line 259 of file panel_fab_export_content.cpp.
References JOB_EXPORT_PCB_FAB::ANONYMIZE, JOB_EXPORT_PCB_FAB::INCLUDE, and PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceNetNames.
| JOB_EXPORT_PCB_IPC2581::REF_DES PANEL_FAB_EXPORT_CONTENT::GetRefDes | ( | ) | const |
Definition at line 272 of file panel_fab_export_content.cpp.
References JOB_EXPORT_PCB_IPC2581::INCLUDE, PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceRefDes, and JOB_EXPORT_PCB_IPC2581::OMIT.
|
inline |
Definition at line 57 of file panel_fab_export_content.h.
References m_sectionKey.
| std::vector< wxString > PANEL_FAB_EXPORT_CONTENT::GetVariantNames | ( | ) | const |
Definition at line 299 of file panel_fab_export_content.cpp.
References GetDefaultVariantName(), IPC2581, m_board, PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceVariant, m_format, and m_selectedVariants.
Referenced by updateVariantOutput().
|
inline |
Definition at line 63 of file panel_fab_export_content.h.
References PANEL_FAB_EXPORT_CONTENT_BASE::m_variantOutput.
Referenced by updateVariantOutput().
|
overrideprivatevirtual |
Reimplemented from PANEL_FAB_EXPORT_CONTENT_BASE.
Definition at line 538 of file panel_fab_export_content.cpp.
References DIALOG_EXPORT_2581_BOM::GetFields(), m_board, m_bomFields, m_format, ODBPP, and DIALOG_SHIM::ShowModal().
|
overrideprivatevirtual |
Reimplemented from PANEL_FAB_EXPORT_CONTENT_BASE.
Definition at line 517 of file panel_fab_export_content.cpp.
References changed(), GetDataSet(), m_boardMetadata, m_format, m_sectionKey, ODBPP, OdbSectionKeyForSelection(), ResolvedSections(), FAB::SectionKeyString(), and updateSummary().
|
overrideprivatevirtual |
Reimplemented from PANEL_FAB_EXPORT_CONTENT_BASE.
Definition at line 448 of file panel_fab_export_content.cpp.
References changed(), m_sectionKey, and updateSummary().
|
privateinherited |
Definition at line 43 of file wx_panel.cpp.
References m_borderColor, m_bottomBorder, m_leftBorder, m_rightBorder, m_topBorder, KIGFX::COLOR4D::Mix(), KIGFX::COLOR4D::ToColour(), and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by WX_PANEL(), and ~WX_PANEL().
|
overrideprivatevirtual |
Reimplemented from PANEL_FAB_EXPORT_CONTENT_BASE.
Definition at line 457 of file panel_fab_export_content.cpp.
References _, changed(), GetDefaultVariantName(), index, m_board, PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceVariant, m_format, m_selectedChoice, m_selectedVariants, name, ODBPP, and updateVariantOutput().
|
overrideprivatevirtual |
Reimplemented from PANEL_FAB_EXPORT_CONTENT_BASE.
Definition at line 510 of file panel_fab_export_content.cpp.
References changed(), and updateVariantOutput().
| FAB::SECTION_SET PANEL_FAB_EXPORT_CONTENT::ResolvedSections | ( | ) | const |
Definition at line 357 of file panel_fab_export_content.cpp.
References IPC2581::C, FAB::COMPONENTS, FAB::SECTION_SET::Contains(), GetDataSet(), m_format, IPC2581::RESOLVE_RESULT::m_included, m_sectionKey, OdbDefaultSections(), ODBPP, FAB::PACKAGES, FAB::RecommendedOptionalSections(), IPC2581::ResolveSections(), FAB::SectionSetFromKeyString(), and FAB::SECTION_SET::Set().
Referenced by onCustomizeClick(), and updateSummary().
| void PANEL_FAB_EXPORT_CONTENT::SetBoardMetadata | ( | bool | aValue | ) |
Definition at line 292 of file panel_fab_export_content.cpp.
References m_boardMetadata, and updateSummary().
|
inline |
Definition at line 66 of file panel_fab_export_content.h.
References m_bomFields.
|
inlineinherited |
Definition at line 43 of file wx_panel.h.
References m_borderColor.
Referenced by SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().
|
inlineinherited |
Definition at line 35 of file wx_panel.h.
References m_bottomBorder, m_leftBorder, m_rightBorder, and m_topBorder.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_3D::APPEARANCE_CONTROLS_3D(), PAGED_DIALOG::PAGED_DIALOG(), PANEL_DRC_RULE_EDITOR::PANEL_DRC_RULE_EDITOR(), PANEL_SCH_SELECTION_FILTER::PANEL_SCH_SELECTION_FILTER(), PANEL_SELECTION_FILTER::PANEL_SELECTION_FILTER(), RULE_EDITOR_DIALOG_BASE::RULE_EDITOR_DIALOG_BASE(), and SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().
| void PANEL_FAB_EXPORT_CONTENT::SetCombinedVariantOutput | ( | bool | aCombined | ) |
Definition at line 350 of file panel_fab_export_content.cpp.
References PANEL_FAB_EXPORT_CONTENT_BASE::m_variantOutput, and updateVariantOutput().
|
inline |
Definition at line 49 of file panel_fab_export_content.h.
References m_contentChanged.
| void PANEL_FAB_EXPORT_CONTENT::SetDataSet | ( | FAB::MODE | aMode | ) |
Definition at line 251 of file panel_fab_export_content.cpp.
References PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceDataSet, m_modes, and updateSummary().
| void PANEL_FAB_EXPORT_CONTENT::SetNetNames | ( | JOB_EXPORT_PCB_FAB::NET_NAMES | aNetNames | ) |
Definition at line 266 of file panel_fab_export_content.cpp.
References JOB_EXPORT_PCB_FAB::ANONYMIZE, and PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceNetNames.
| void PANEL_FAB_EXPORT_CONTENT::SetRefDes | ( | JOB_EXPORT_PCB_IPC2581::REF_DES | aRefDes | ) |
Definition at line 279 of file panel_fab_export_content.cpp.
References PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceRefDes, and JOB_EXPORT_PCB_IPC2581::OMIT.
| void PANEL_FAB_EXPORT_CONTENT::SetSectionKey | ( | const std::optional< wxString > & | aKey | ) |
Definition at line 285 of file panel_fab_export_content.cpp.
References m_sectionKey, and updateSummary().
| void PANEL_FAB_EXPORT_CONTENT::SetVariantNames | ( | const std::vector< wxString > & | aNames | ) |
Definition at line 323 of file panel_fab_export_content.cpp.
References m_board, PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceVariant, m_format, m_selectedChoice, m_selectedVariants, ODBPP, and updateVariantOutput().
|
private |
Set the Includes line and BOM Fields button from the function mode.
Definition at line 382 of file panel_fab_export_content.cpp.
References _, FAB::BOM_AVL, FAB::COMPONENTS, FAB::SECTION_SET::Contains(), m_boardMetadata, PANEL_FAB_EXPORT_CONTENT_BASE::m_btnBomFields, m_format, PANEL_FAB_EXPORT_CONTENT_BASE::m_lblIncludes, ODBPP, and ResolvedSections().
Referenced by Configure(), onCustomizeClick(), onDataSetChange(), SetBoardMetadata(), SetDataSet(), and SetSectionKey().
|
private |
Definition at line 429 of file panel_fab_export_content.cpp.
References GetVariantNames(), IsCombinedVariantOutput(), m_format, PANEL_FAB_EXPORT_CONTENT_BASE::m_variantHint, PANEL_FAB_EXPORT_CONTENT_BASE::m_variantOutput, and ODBPP.
Referenced by onVariantChange(), onVariantOutputChange(), SetCombinedVariantOutput(), and SetVariantNames().
|
protectedinherited |
Definition at line 56 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().
|
private |
Definition at line 82 of file panel_fab_export_content.h.
Referenced by Configure(), GetVariantNames(), onBomFieldsClick(), onVariantChange(), and SetVariantNames().
|
private |
Definition at line 88 of file panel_fab_export_content.h.
Referenced by GetBoardMetadata(), onCustomizeClick(), SetBoardMetadata(), and updateSummary().
|
private |
Definition at line 83 of file panel_fab_export_content.h.
Referenced by GetBomFields(), onBomFieldsClick(), and SetBomFields().
|
privateinherited |
Definition at line 57 of file wx_panel.h.
Referenced by OnPaint(), SetBorderColor(), and WX_PANEL().
|
privateinherited |
Definition at line 55 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
protectedinherited |
Definition at line 58 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE(), PANEL_FAB_EXPORT_CONTENT::updateSummary(), and ~PANEL_FAB_EXPORT_CONTENT_BASE().
|
protectedinherited |
Definition at line 57 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE(), and ~PANEL_FAB_EXPORT_CONTENT_BASE().
|
protectedinherited |
Definition at line 46 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::Configure(), PANEL_FAB_EXPORT_CONTENT::GetDataSet(), PANEL_FAB_EXPORT_CONTENT_BASE(), PANEL_FAB_EXPORT_CONTENT::SetDataSet(), and ~PANEL_FAB_EXPORT_CONTENT_BASE().
|
protectedinherited |
Definition at line 48 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::GetNetNames(), PANEL_FAB_EXPORT_CONTENT_BASE(), and PANEL_FAB_EXPORT_CONTENT::SetNetNames().
|
protectedinherited |
Definition at line 52 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::Configure(), PANEL_FAB_EXPORT_CONTENT::GetRefDes(), PANEL_FAB_EXPORT_CONTENT_BASE(), and PANEL_FAB_EXPORT_CONTENT::SetRefDes().
|
protectedinherited |
Definition at line 50 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::Configure(), PANEL_FAB_EXPORT_CONTENT::GetVariantNames(), PANEL_FAB_EXPORT_CONTENT::onVariantChange(), PANEL_FAB_EXPORT_CONTENT_BASE(), PANEL_FAB_EXPORT_CONTENT::SetVariantNames(), and ~PANEL_FAB_EXPORT_CONTENT_BASE().
|
protectedinherited |
Definition at line 43 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().
|
private |
Definition at line 89 of file panel_fab_export_content.h.
Referenced by changed(), and SetContentChanged().
|
private |
Definition at line 81 of file panel_fab_export_content.h.
Referenced by Configure(), GetVariantNames(), onBomFieldsClick(), onCustomizeClick(), onVariantChange(), ResolvedSections(), SetVariantNames(), updateSummary(), and updateVariantOutput().
|
protectedinherited |
Definition at line 45 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().
|
protectedinherited |
Definition at line 55 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE(), and PANEL_FAB_EXPORT_CONTENT::updateSummary().
|
protectedinherited |
Definition at line 47 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().
|
protectedinherited |
Definition at line 51 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::Configure(), and PANEL_FAB_EXPORT_CONTENT_BASE().
|
protectedinherited |
Definition at line 49 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::Configure(), and PANEL_FAB_EXPORT_CONTENT_BASE().
|
privateinherited |
Definition at line 52 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
private |
Definition at line 84 of file panel_fab_export_content.h.
Referenced by Configure(), GetDataSet(), and SetDataSet().
|
privateinherited |
Definition at line 53 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
private |
Set after Customize An empty IPC-2581 key is a true empty selection.
Definition at line 87 of file panel_fab_export_content.h.
Referenced by GetSectionKey(), onCustomizeClick(), onDataSetChange(), ResolvedSections(), and SetSectionKey().
|
private |
Definition at line 90 of file panel_fab_export_content.h.
Referenced by Configure(), onVariantChange(), and SetVariantNames().
|
private |
Definition at line 85 of file panel_fab_export_content.h.
Referenced by GetVariantNames(), onVariantChange(), and SetVariantNames().
|
protectedinherited |
Definition at line 44 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().
|
privateinherited |
Definition at line 54 of file wx_panel.h.
Referenced by OnPaint(), SetBorders(), and WX_PANEL().
|
protectedinherited |
Definition at line 54 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::Configure(), PANEL_FAB_EXPORT_CONTENT_BASE(), and PANEL_FAB_EXPORT_CONTENT::updateVariantOutput().
|
protectedinherited |
Definition at line 53 of file panel_fab_export_content_base.h.
Referenced by PANEL_FAB_EXPORT_CONTENT::Configure(), PANEL_FAB_EXPORT_CONTENT::IsCombinedVariantOutput(), PANEL_FAB_EXPORT_CONTENT_BASE(), PANEL_FAB_EXPORT_CONTENT::SetCombinedVariantOutput(), PANEL_FAB_EXPORT_CONTENT::updateVariantOutput(), and ~PANEL_FAB_EXPORT_CONTENT_BASE().