KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_FAB_EXPORT_CONTENT Class Reference

#include <panel_fab_export_content.h>

Inheritance diagram for PANEL_FAB_EXPORT_CONTENT:
PANEL_FAB_EXPORT_CONTENT_BASE WX_PANEL

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
 

Detailed Description

Definition at line 41 of file panel_fab_export_content.h.

Constructor & Destructor Documentation

◆ PANEL_FAB_EXPORT_CONTENT()

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 )

Member Function Documentation

◆ changed()

void PANEL_FAB_EXPORT_CONTENT::changed ( )
private

◆ Configure()

◆ GetBoardMetadata()

bool PANEL_FAB_EXPORT_CONTENT::GetBoardMetadata ( ) const
inline

Definition at line 59 of file panel_fab_export_content.h.

References m_boardMetadata.

◆ GetBomFields()

const IPC2581_BOM_FIELDS & PANEL_FAB_EXPORT_CONTENT::GetBomFields ( ) const
inline

Definition at line 65 of file panel_fab_export_content.h.

References m_bomFields.

◆ GetDataSet()

FAB::MODE PANEL_FAB_EXPORT_CONTENT::GetDataSet ( ) const

◆ GetNetNames()

◆ GetRefDes()

◆ GetSectionKey()

const std::optional< wxString > & PANEL_FAB_EXPORT_CONTENT::GetSectionKey ( ) const
inline

Definition at line 57 of file panel_fab_export_content.h.

References m_sectionKey.

◆ GetVariantNames()

std::vector< wxString > PANEL_FAB_EXPORT_CONTENT::GetVariantNames ( ) const

◆ IsCombinedVariantOutput()

bool PANEL_FAB_EXPORT_CONTENT::IsCombinedVariantOutput ( ) const
inline

◆ onBomFieldsClick()

void PANEL_FAB_EXPORT_CONTENT::onBomFieldsClick ( wxCommandEvent & aEvent)
overrideprivatevirtual

◆ onCustomizeClick()

void PANEL_FAB_EXPORT_CONTENT::onCustomizeClick ( wxCommandEvent & aEvent)
overrideprivatevirtual

◆ onDataSetChange()

void PANEL_FAB_EXPORT_CONTENT::onDataSetChange ( wxCommandEvent & aEvent)
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().

◆ OnPaint()

void WX_PANEL::OnPaint ( wxPaintEvent & event)
privateinherited

◆ onVariantChange()

void PANEL_FAB_EXPORT_CONTENT::onVariantChange ( wxCommandEvent & aEvent)
overrideprivatevirtual

◆ onVariantOutputChange()

void PANEL_FAB_EXPORT_CONTENT::onVariantOutputChange ( wxCommandEvent & aEvent)
overrideprivatevirtual

Reimplemented from PANEL_FAB_EXPORT_CONTENT_BASE.

Definition at line 510 of file panel_fab_export_content.cpp.

References changed(), and updateVariantOutput().

◆ ResolvedSections()

◆ SetBoardMetadata()

void PANEL_FAB_EXPORT_CONTENT::SetBoardMetadata ( bool aValue)

Definition at line 292 of file panel_fab_export_content.cpp.

References m_boardMetadata, and updateSummary().

◆ SetBomFields()

void PANEL_FAB_EXPORT_CONTENT::SetBomFields ( const IPC2581_BOM_FIELDS & aFields)
inline

Definition at line 66 of file panel_fab_export_content.h.

References m_bomFields.

◆ SetBorderColor()

void WX_PANEL::SetBorderColor ( const KIGFX::COLOR4D & aColor)
inlineinherited

Definition at line 43 of file wx_panel.h.

References m_borderColor.

Referenced by SYMBOL_TREE_SYNCHRONIZING_ADAPTER::ShowPreview().

◆ SetBorders()

◆ SetCombinedVariantOutput()

void PANEL_FAB_EXPORT_CONTENT::SetCombinedVariantOutput ( bool aCombined)

◆ SetContentChanged()

void PANEL_FAB_EXPORT_CONTENT::SetContentChanged ( std::function< void()> aCallback)
inline

Definition at line 49 of file panel_fab_export_content.h.

References m_contentChanged.

◆ SetDataSet()

void PANEL_FAB_EXPORT_CONTENT::SetDataSet ( FAB::MODE aMode)

◆ SetNetNames()

void PANEL_FAB_EXPORT_CONTENT::SetNetNames ( JOB_EXPORT_PCB_FAB::NET_NAMES aNetNames)

◆ SetRefDes()

void PANEL_FAB_EXPORT_CONTENT::SetRefDes ( JOB_EXPORT_PCB_IPC2581::REF_DES aRefDes)

◆ SetSectionKey()

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().

◆ SetVariantNames()

void PANEL_FAB_EXPORT_CONTENT::SetVariantNames ( const std::vector< wxString > & aNames)

◆ updateSummary()

void PANEL_FAB_EXPORT_CONTENT::updateSummary ( )
private

◆ updateVariantOutput()

Member Data Documentation

◆ bSizerContentButtons

wxBoxSizer* PANEL_FAB_EXPORT_CONTENT_BASE::bSizerContentButtons
protectedinherited

Definition at line 56 of file panel_fab_export_content_base.h.

Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().

◆ m_board

BOARD* PANEL_FAB_EXPORT_CONTENT::m_board = nullptr
private

◆ m_boardMetadata

bool PANEL_FAB_EXPORT_CONTENT::m_boardMetadata = true
private

◆ m_bomFields

IPC2581_BOM_FIELDS PANEL_FAB_EXPORT_CONTENT::m_bomFields
private

Definition at line 83 of file panel_fab_export_content.h.

Referenced by GetBomFields(), onBomFieldsClick(), and SetBomFields().

◆ m_borderColor

KIGFX::COLOR4D WX_PANEL::m_borderColor
privateinherited

Definition at line 57 of file wx_panel.h.

Referenced by OnPaint(), SetBorderColor(), and WX_PANEL().

◆ m_bottomBorder

bool WX_PANEL::m_bottomBorder
privateinherited

Definition at line 55 of file wx_panel.h.

Referenced by OnPaint(), SetBorders(), and WX_PANEL().

◆ m_btnBomFields

wxButton* PANEL_FAB_EXPORT_CONTENT_BASE::m_btnBomFields
protectedinherited

◆ m_btnCustomize

wxButton* PANEL_FAB_EXPORT_CONTENT_BASE::m_btnCustomize
protectedinherited

◆ m_choiceDataSet

◆ m_choiceNetNames

wxChoice* PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceNetNames
protectedinherited

◆ m_choiceRefDes

wxChoice* PANEL_FAB_EXPORT_CONTENT_BASE::m_choiceRefDes
protectedinherited

◆ m_choiceVariant

◆ m_columnsLabel

wxStaticText* PANEL_FAB_EXPORT_CONTENT_BASE::m_columnsLabel
protectedinherited

Definition at line 43 of file panel_fab_export_content_base.h.

Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().

◆ m_contentChanged

std::function<void()> PANEL_FAB_EXPORT_CONTENT::m_contentChanged
private

Definition at line 89 of file panel_fab_export_content.h.

Referenced by changed(), and SetContentChanged().

◆ m_format

◆ m_lblDataSet

wxStaticText* PANEL_FAB_EXPORT_CONTENT_BASE::m_lblDataSet
protectedinherited

Definition at line 45 of file panel_fab_export_content_base.h.

Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().

◆ m_lblIncludes

wxStaticText* PANEL_FAB_EXPORT_CONTENT_BASE::m_lblIncludes
protectedinherited

◆ m_lblNetNames

wxStaticText* PANEL_FAB_EXPORT_CONTENT_BASE::m_lblNetNames
protectedinherited

Definition at line 47 of file panel_fab_export_content_base.h.

Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().

◆ m_lblRefDes

wxStaticText* PANEL_FAB_EXPORT_CONTENT_BASE::m_lblRefDes
protectedinherited

◆ m_lblVariant

wxStaticText* PANEL_FAB_EXPORT_CONTENT_BASE::m_lblVariant
protectedinherited

◆ m_leftBorder

bool WX_PANEL::m_leftBorder
privateinherited

Definition at line 52 of file wx_panel.h.

Referenced by OnPaint(), SetBorders(), and WX_PANEL().

◆ m_modes

std::vector<FAB::MODE> PANEL_FAB_EXPORT_CONTENT::m_modes
private

Definition at line 84 of file panel_fab_export_content.h.

Referenced by Configure(), GetDataSet(), and SetDataSet().

◆ m_rightBorder

bool WX_PANEL::m_rightBorder
privateinherited

Definition at line 53 of file wx_panel.h.

Referenced by OnPaint(), SetBorders(), and WX_PANEL().

◆ m_sectionKey

std::optional<wxString> PANEL_FAB_EXPORT_CONTENT::m_sectionKey
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().

◆ m_selectedChoice

int PANEL_FAB_EXPORT_CONTENT::m_selectedChoice = 0
private

Definition at line 90 of file panel_fab_export_content.h.

Referenced by Configure(), onVariantChange(), and SetVariantNames().

◆ m_selectedVariants

std::vector<wxString> PANEL_FAB_EXPORT_CONTENT::m_selectedVariants
private

Definition at line 85 of file panel_fab_export_content.h.

Referenced by GetVariantNames(), onVariantChange(), and SetVariantNames().

◆ m_staticline2

wxStaticLine* PANEL_FAB_EXPORT_CONTENT_BASE::m_staticline2
protectedinherited

Definition at line 44 of file panel_fab_export_content_base.h.

Referenced by PANEL_FAB_EXPORT_CONTENT_BASE().

◆ m_topBorder

bool WX_PANEL::m_topBorder
privateinherited

Definition at line 54 of file wx_panel.h.

Referenced by OnPaint(), SetBorders(), and WX_PANEL().

◆ m_variantHint

wxStaticText* PANEL_FAB_EXPORT_CONTENT_BASE::m_variantHint
protectedinherited

◆ m_variantOutput


The documentation for this class was generated from the following files: