KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_fab_export_content_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
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 )
13{
14 wxBoxSizer* bSizerRightCol;
15 bSizerRightCol = new wxBoxSizer( wxVERTICAL );
16
17 m_columnsLabel = new wxStaticText( this, wxID_ANY, _("Content"), wxDefaultPosition, wxDefaultSize, 0 );
18 m_columnsLabel->Wrap( -1 );
19 bSizerRightCol->Add( m_columnsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 8 );
20
21 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
22 bSizerRightCol->Add( m_staticline2, 0, wxEXPAND|wxBOTTOM, 5 );
23
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 );
29
30 m_lblDataSet = new wxStaticText( this, wxID_ANY, _("Data set:"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_lblDataSet->Wrap( -1 );
32 fgSizer4->Add( m_lblDataSet, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
33
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 );
37 m_choiceDataSet->SetSelection( 0 );
38 m_choiceDataSet->SetToolTip( _("Which sections of the design the file carries, per the IPC-2581 function mode table") );
39
40 fgSizer4->Add( m_choiceDataSet, 0, wxEXPAND|wxRIGHT, 5 );
41
42 m_lblNetNames = new wxStaticText( this, wxID_ANY, _("Net names:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_lblNetNames->Wrap( -1 );
44 fgSizer4->Add( m_lblNetNames, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
45
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 );
49 m_choiceNetNames->SetSelection( 0 );
50 m_choiceNetNames->SetToolTip( _("Anonymized names keep connectivity for netlist compare without carrying the design intent") );
51
52 fgSizer4->Add( m_choiceNetNames, 0, wxEXPAND|wxRIGHT, 5 );
53
54 m_lblVariant = new wxStaticText( this, wxID_ANY, _("Variant:"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_lblVariant->Wrap( -1 );
56 fgSizer4->Add( m_lblVariant, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
57
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 );
61 m_choiceVariant->SetSelection( 0 );
62 m_choiceVariant->SetToolTip( _("Select a board variant for this export") );
63
64 fgSizer4->Add( m_choiceVariant, 0, wxEXPAND|wxRIGHT, 5 );
65
66 m_lblRefDes = new wxStaticText( this, wxID_ANY, _("Reference designators:"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_lblRefDes->Wrap( -1 );
68 fgSizer4->Add( m_lblRefDes, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
69
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 );
73 m_choiceRefDes->SetSelection( 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.") );
75
76 fgSizer4->Add( m_choiceRefDes, 0, wxEXPAND|wxRIGHT, 5 );
77
78
79 bSizerRightCol->Add( fgSizer4, 1, wxALL|wxEXPAND, 5 );
80
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 );
84 m_variantOutput->SetSelection( 0 );
85 bSizerRightCol->Add( m_variantOutput, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
86
87 m_variantHint = new wxStaticText( this, wxID_ANY, _("${VARIANT} is replaced per package"), wxDefaultPosition, wxDefaultSize, 0 );
88 m_variantHint->Wrap( 280 );
89 bSizerRightCol->Add( m_variantHint, 0, wxLEFT|wxRIGHT, 5 );
90
91 m_lblIncludes = new wxStaticText( this, wxID_ANY, _("Includes:"), wxDefaultPosition, wxDefaultSize, 0 );
92 m_lblIncludes->Wrap( 280 );
93 bSizerRightCol->Add( m_lblIncludes, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
94
95 bSizerContentButtons = new wxBoxSizer( wxHORIZONTAL );
96
97 m_btnCustomize = new wxButton( this, wxID_ANY, _("Customize..."), wxDefaultPosition, wxDefaultSize, 0 );
98 bSizerContentButtons->Add( m_btnCustomize, 0, wxRIGHT, 5 );
99
100
101 bSizerContentButtons->Add( 0, 0, 1, wxEXPAND, 5 );
102
103 m_btnBomFields = new wxButton( this, wxID_ANY, _("BOM Fields..."), wxDefaultPosition, wxDefaultSize, 0 );
104 bSizerContentButtons->Add( m_btnBomFields, 0, wxLEFT, 5 );
105
106
107 bSizerRightCol->Add( bSizerContentButtons, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
108
109
110 this->SetSizer( bSizerRightCol );
111 this->Layout();
112 bSizerRightCol->Fit( this );
113
114 // Connect Events
115 m_choiceDataSet->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onDataSetChange ), NULL, this );
116 m_choiceVariant->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onVariantChange ), NULL, this );
117 m_variantOutput->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onVariantOutputChange ), NULL, this );
118 m_btnCustomize->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onCustomizeClick ), NULL, this );
119 m_btnBomFields->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onBomFieldsClick ), NULL, this );
120}
121
123{
124 // Disconnect Events
125 m_choiceDataSet->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onDataSetChange ), NULL, this );
126 m_choiceVariant->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onVariantChange ), NULL, this );
127 m_variantOutput->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onVariantOutputChange ), NULL, this );
128 m_btnCustomize->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onCustomizeClick ), NULL, this );
129 m_btnBomFields->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_FAB_EXPORT_CONTENT_BASE::onBomFieldsClick ), NULL, this );
130
131}
132
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 )
134{
135 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
136
137 wxBoxSizer* bMainSizer;
138 bMainSizer = new wxBoxSizer( wxVERTICAL );
139
140 m_intro = new wxStaticText( this, wxID_ANY, _("Choose the optional sections to include"), wxDefaultPosition, wxDefaultSize, 0 );
141 m_intro->Wrap( -1 );
142 bMainSizer->Add( m_intro, 0, wxALL, 10 );
143
144 m_sections = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_ROW_LINES|wxDV_VERT_RULES|wxBORDER_SIMPLE );
145 m_sections->SetMinSize( wxSize( 520,410 ) );
146
147 bMainSizer->Add( m_sections, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
148
149 m_stdButtons = new wxStdDialogButtonSizer();
150 m_stdButtonsOK = new wxButton( this, wxID_OK );
151 m_stdButtons->AddButton( m_stdButtonsOK );
152 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
153 m_stdButtons->AddButton( m_stdButtonsCancel );
154 m_stdButtons->Realize();
155
156 bMainSizer->Add( m_stdButtons, 0, wxALL|wxEXPAND, 5 );
157
158
159 this->SetSizer( bMainSizer );
160 this->Layout();
161 bMainSizer->Fit( this );
162
163 this->Centre( wxBOTH );
164}
165
const char * name
DIALOG_FAB_CUSTOMIZE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Customize Content"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
virtual void onVariantOutputChange(wxCommandEvent &event)
virtual void onCustomizeClick(wxCommandEvent &event)
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)
virtual void onDataSetChange(wxCommandEvent &event)
virtual void onBomFieldsClick(wxCommandEvent &event)
virtual void onVariantChange(wxCommandEvent &event)
WX_PANEL(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
Definition wx_panel.cpp:24
#define _(s)