12PANEL_FAB_EXPORT_CONTENT_BASE::PANEL_FAB_EXPORT_CONTENT_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
WX_PANEL( parent, id, pos, size, style,
name )
14 wxBoxSizer* bSizerRightCol;
15 bSizerRightCol =
new wxBoxSizer( wxVERTICAL );
17 m_columnsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Content"), wxDefaultPosition, wxDefaultSize, 0 );
21 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
22 bSizerRightCol->Add(
m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
24 wxFlexGridSizer* fgSizer4;
25 fgSizer4 =
new wxFlexGridSizer( 0, 2, 5, 5 );
26 fgSizer4->AddGrowableCol( 1 );
27 fgSizer4->SetFlexibleDirection( wxBOTH );
28 fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30 m_lblDataSet =
new wxStaticText(
this, wxID_ANY,
_(
"Data set:"), wxDefaultPosition, wxDefaultSize, 0 );
32 fgSizer4->Add(
m_lblDataSet, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
34 wxString m_choiceDataSetChoices[] = {
_(
"All data (user-defined)"),
_(
"Bill of materials"),
_(
"Stackup"),
_(
"Fabrication"),
_(
"Assembly"),
_(
"Test"),
_(
"Stencil") };
35 int m_choiceDataSetNChoices =
sizeof( m_choiceDataSetChoices ) /
sizeof( wxString );
36 m_choiceDataSet =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDataSetNChoices, m_choiceDataSetChoices, 0 );
38 m_choiceDataSet->SetToolTip(
_(
"Which sections of the design the file carries, per the IPC-2581 function mode table") );
42 m_lblNetNames =
new wxStaticText(
this, wxID_ANY,
_(
"Net names:"), wxDefaultPosition, wxDefaultSize, 0 );
44 fgSizer4->Add(
m_lblNetNames, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
46 wxString m_choiceNetNamesChoices[] = {
_(
"Include"),
_(
"Anonymize") };
47 int m_choiceNetNamesNChoices =
sizeof( m_choiceNetNamesChoices ) /
sizeof( wxString );
48 m_choiceNetNames =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceNetNamesNChoices, m_choiceNetNamesChoices, 0 );
50 m_choiceNetNames->SetToolTip(
_(
"Anonymized names keep connectivity for netlist compare without carrying the design intent") );
54 m_lblVariant =
new wxStaticText(
this, wxID_ANY,
_(
"Variant:"), wxDefaultPosition, wxDefaultSize, 0 );
56 fgSizer4->Add(
m_lblVariant, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
58 wxString m_choiceVariantChoices[] = {
_(
"Current") };
59 int m_choiceVariantNChoices =
sizeof( m_choiceVariantChoices ) /
sizeof( wxString );
60 m_choiceVariant =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceVariantNChoices, m_choiceVariantChoices, 0 );
66 m_lblRefDes =
new wxStaticText(
this, wxID_ANY,
_(
"Reference designators:"), wxDefaultPosition, wxDefaultSize, 0 );
68 fgSizer4->Add(
m_lblRefDes, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
70 wxString m_choiceRefDesChoices[] = {
_(
"Include"),
_(
"Omit") };
71 int m_choiceRefDesNChoices =
sizeof( m_choiceRefDesChoices ) /
sizeof( wxString );
72 m_choiceRefDes =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceRefDesNChoices, m_choiceRefDesChoices, 0 );
74 m_choiceRefDes->SetToolTip(
_(
"Omits the designator from the component, BOM and artwork metadata. Reference text drawn on silkscreen is artwork the fabricator must reproduce and is always kept.") );
79 bSizerRightCol->Add( fgSizer4, 1, wxALL|wxEXPAND, 5 );
81 wxString m_variantOutputChoices[] = {
_(
"One package per variant"),
_(
"One package, all variants inside") };
82 int m_variantOutputNChoices =
sizeof( m_variantOutputChoices ) /
sizeof( wxString );
83 m_variantOutput =
new wxRadioBox(
this, wxID_ANY,
_(
"Variant output"), wxDefaultPosition, wxDefaultSize, m_variantOutputNChoices, m_variantOutputChoices, 1, wxRA_SPECIFY_COLS );
85 bSizerRightCol->Add(
m_variantOutput, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
87 m_variantHint =
new wxStaticText(
this, wxID_ANY,
_(
"${VARIANT} is replaced per package"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_lblIncludes =
new wxStaticText(
this, wxID_ANY,
_(
"Includes:"), wxDefaultPosition, wxDefaultSize, 0 );
93 bSizerRightCol->Add(
m_lblIncludes, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
97 m_btnCustomize =
new wxButton(
this, wxID_ANY,
_(
"Customize..."), wxDefaultPosition, wxDefaultSize, 0 );
103 m_btnBomFields =
new wxButton(
this, wxID_ANY,
_(
"BOM Fields..."), wxDefaultPosition, wxDefaultSize, 0 );
110 this->SetSizer( bSizerRightCol );
112 bSizerRightCol->Fit(
this );
133DIALOG_FAB_CUSTOMIZE_BASE::DIALOG_FAB_CUSTOMIZE_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
135 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
137 wxBoxSizer* bMainSizer;
138 bMainSizer =
new wxBoxSizer( wxVERTICAL );
140 m_intro =
new wxStaticText(
this, wxID_ANY,
_(
"Choose the optional sections to include"), wxDefaultPosition, wxDefaultSize, 0 );
142 bMainSizer->Add(
m_intro, 0, wxALL, 10 );
144 m_sections =
new wxDataViewListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_ROW_LINES|wxDV_VERT_RULES|wxBORDER_SIMPLE );
147 bMainSizer->Add(
m_sections, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
159 this->SetSizer( bMainSizer );
161 bMainSizer->Fit(
this );
163 this->Centre( wxBOTH );
PANEL_FAB_EXPORT_CONTENT_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)