37 m_xPos( aEditFrame, m_xLabel, m_IDF_Xref, m_xUnits ),
38 m_yPos( aEditFrame, m_yLabel, m_IDF_Yref, m_yUnits )
75 KIDIALOG dlg(
this, wxString::Format(
_(
"File %s already exists." ), fn.GetPath() ),
76 _(
"Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
77 dlg.SetOKLabel(
_(
"Overwrite" ) );
97 brdFile.SetExt( wxT(
"emn" ) );
98 path = brdFile.GetFullPath();
122 wxString fullFilename = dlg.
FilePicker()->GetPath();
130 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.
wxCheckBox * m_cbSetBoardReferencePoint
wxFilePickerCtrl * m_filePickerIDF
bool TransferDataToWindow() override
wxFilePickerCtrl * FilePicker()
bool TransferDataFromWindow() override
bool GetSetBoardReferencePoint()
bool GetNoUnspecifiedOption()
DIALOG_EXPORT_IDF3(PCB_EDIT_FRAME *aEditFrame)
void OnBoardReferencePointChecked(wxCommandEvent &event)
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.
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 Enable(bool aEnable)
Enable/disable the label, widget and units label.
This file is part of the common library.
std::vector< FAB_LAYER_COLOR > dummy