57 m_XRef = cfg->m_ExportIdf.ref_x;
58 m_YRef = cfg->m_ExportIdf.ref_y;
99 cfg->m_ExportIdf.ref_x =
m_XRef;
100 cfg->m_ExportIdf.ref_y =
m_YRef;
159 if( fn.FileExists() )
162 KIDIALOG dlg(
this, msg,
_(
"Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
163 dlg.SetOKLabel(
_(
"Overwrite" ) );
164 dlg.DoNotShowCheckbox( __FILE__, __LINE__ );
166 return ( dlg.ShowModal() == wxID_OK );
181 brdFile.SetExt(
"emn" );
182 path = brdFile.GetFullPath();
188 if ( dlg.ShowModal() != wxID_OK )
199 aXRef = bbox.
Centre().x * MM_PER_IU;
200 aYRef = bbox.
Centre().y * MM_PER_IU;
218 wxString fullFilename = dlg.
FilePicker()->GetPath();
wxChoice * m_IDF_RefUnitChoice
void OnExportIDF3(wxCommandEvent &event)
Will export the current BOARD to a IDFv3 board and lib files.
wxFilePickerCtrl * m_filePickerIDF
Helper class to create more flexible dialogs, including 'do not show again' checkbox handling.
This file is part of the common library.
wxRadioBox * m_rbUnitSelection
void OnAutoAdjustOffset(wxCommandEvent &event)
const EDA_RECT GetBoardEdgesBoundingBox() const
Returns the board bounding box calculated using exclusively the board edges (graphics on Edge....
DIALOG_EXPORT_IDF m_ExportIdf
bool Export_IDF3(BOARD *aPcb, const wxString &aFullFileName, bool aUseThou, double aXRef, double aYRef)
Creates an IDF3 compliant BOARD (*.emn) and LIBRARY (*.emp) file.
static LIB_PART * dummy()
Used to draw a dummy shape when a LIB_PART is not found in library.
const wxString & GetFileName() const
void SetValue(const wxString &aValue) override
Set a new value in evaluator buffer, and display it in the wxTextCtrl.
wxString GetLastPath(LAST_PATH_TYPE aType)
Get the last path for a particular type.
TEXT_CTRL_EVAL * m_IDF_Xref
bool TransferDataFromWindow() override
wxCheckBox * m_cbAutoAdjustOffset
bool GetAutoAdjustOffset()
TEXT_CTRL_EVAL * m_IDF_Yref
Class DIALOG_EXPORT_IDF3_BASE.
wxFilePickerCtrl * FilePicker()
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Handle the component boundary box.
The main frame for Pcbnew.
PCBNEW_SETTINGS * GetPcbNewSettings() const
DIALOG_EXPORT_IDF3(PCB_EDIT_FRAME *parent)
double DoubleValueFromString(EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType)
Function DoubleValueFromString converts aTextValue to a double.
void SetLastPath(LAST_PATH_TYPE aType, const wxString &aLastPath)
Set the path of the last file successfully read.
PCB_EDIT_FRAME * m_parent