20#ifndef IPC2581_EXPORT_DIALOG_H
21#define IPC2581_EXPORT_DIALOG_H
60 return wxString::Format(
"%d",
m_precision->GetValue() );
80 return m_choiceNetNames->GetSelection() == 1 ? wxT(
"anonymize" ) : wxT(
"include" );
85 return m_choiceRefDes->GetSelection() == 1 ? wxT(
"omit" ) : wxT(
"include" );
94 void onOKClick( wxCommandEvent& event )
override;
101 static std::vector<std::pair<IPC2581::SECTION, wxString>>
sectionLabels();
Information pertinent to a Pcbnew printed circuit board.
wxTextCtrl * m_outputFileName
wxChoice * m_versionChoice
DIALOG_EXPORT_2581_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export IPC-2581"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxChoice * m_choiceDataSet
wxChoice * m_choiceRefDes
wxChoice * m_choiceNetNames
wxCheckBox * m_cbCompress
void onCustomizeClick(wxCommandEvent &event) override
wxString GetNetNamePolicy() const
static bool GenerateFile(JOB_EXPORT_PCB_IPC2581 &aJob, BOARD *aBoard, PROGRESS_REPORTER *aProgressReporter, REPORTER *aReporter)
IPC2581::SECTION_SET resolvedSections() const
wxString GetPrecision() const
IPC2581_BOM_FIELDS m_bomFields
bool TransferDataToWindow() override
void onCompressCheck(wxCommandEvent &event) override
std::optional< wxString > m_sectionKey
Set when the user selects the sections An empty value is then a true selection.
void onDataSetChange(wxCommandEvent &event) override
void onOKClick(wxCommandEvent &event) override
void updateContentSummary()
Set the includes line and the BOM Fields button from the function mode.
bool TransferDataFromWindow() override
static std::vector< std::pair< IPC2581::SECTION, wxString > > sectionLabels()
IPC2581::MODE GetDataSet() const
void onBomFieldsClick(wxCommandEvent &event) override
wxString GetRefDesPolicy() const
DIALOG_EXPORT_2581(PCB_EDIT_FRAME *aParent)
PCB_EDIT_FRAME * m_parent
void onBrowseClicked(wxCommandEvent &event) override
wxString GetUnitsString() const
JOB_EXPORT_PCB_IPC2581 * m_job
wxString GetOutputPath() const
void saveToProject()
Keep the dialog selections A job keeps them on the job.
The main frame for Pcbnew.
A progress reporter interface for use in multi-threaded environments.
A pure virtual class used to derive REPORTER objects from.
Fields that supply the IPC-2581 BOM section.