37 m_idfThouOpt( false ),
38 m_AutoAdjust( false ),
42 m_editFrame( aEditFrame )
52 m_XRef = cfg->m_ExportIdf.ref_x;
53 m_YRef = cfg->m_ExportIdf.ref_y;
99 cfg->m_ExportIdf.ref_x =
m_XRef;
100 cfg->m_ExportIdf.ref_y =
m_YRef;
131 if( fn.FileExists() )
133 wxString msg = wxString::Format(
_(
"File %s already exists." ), fn.GetPath() );
134 KIDIALOG dlg(
this, msg,
_(
"Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
135 dlg.SetOKLabel(
_(
"Overwrite" ) );
155 brdFile.SetExt( wxT(
"emn" ) );
156 path = brdFile.GetFullPath();
190 wxString fullFilename = dlg.
FilePicker()->GetPath();
196 wxMessageBox( wxString::Format(
_(
"Failed to create file '%s'." ), fullFilename ) );
constexpr EDA_IU_SCALE pcbIUScale
int ExportIDF(const TOOL_EVENT &aEvent)
Information pertinent to a Pcbnew printed circuit board.
const BOX2I GetBoardEdgesBoundingBox() const
Return the board bounding box calculated using exclusively the board edges (graphics on Edge....
const wxString & GetFileName() const
constexpr Vec Centre() const
Class DIALOG_EXPORT_IDF3_BASE.
TEXT_CTRL_EVAL * m_IDF_Xref
wxCheckBox * m_cbRemoveDNP
wxFilePickerCtrl * m_filePickerIDF
wxCheckBox * m_cbAutoAdjustOffset
wxCheckBox * m_cbRemoveUnspecified
wxRadioBox * m_rbUnitSelection
TEXT_CTRL_EVAL * m_IDF_Yref
wxChoice * m_IDF_RefUnitChoice
bool GetAutoAdjustOffset()
wxFilePickerCtrl * FilePicker()
bool TransferDataFromWindow() override
void OnAutoAdjustOffset(wxCommandEvent &event)
PCB_EDIT_FRAME * m_editFrame
bool GetNoUnspecifiedOption()
DIALOG_EXPORT_IDF3(PCB_EDIT_FRAME *aEditFrame)
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling.
void DoNotShowCheckbox(wxString file, int line)
Shows the 'do not show again' checkbox.
PCBNEW_SETTINGS * GetPcbNewSettings() const
The main frame for Pcbnew.
void SetLastPath(LAST_PATH_TYPE aType, const wxString &aLastPath)
Set the path of the last file successfully read.
wxString GetLastPath(LAST_PATH_TYPE aType)
Get the last path for a particular type.
bool Export_IDF3(BOARD *aPcb, const wxString &aFullFileName, bool aUseThou, double aXRef, double aYRef, bool aIncludeUnspecified, bool aIncludeDNP)
Create an IDF3 compliant BOARD (*.emn) and LIBRARY (*.emp) file.
void SetValue(const wxString &aValue) override
Set a new value in evaluator buffer and display it in the wxTextCtrl.
This file is part of the common library.
std::vector< FAB_LAYER_COLOR > dummy