75 KIDIALOG dlg(
this, wxString::Format(
_(
"File %s already exists." ), fn.GetPath() ),
76 _(
"Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
77 dlg.SetOKLabel(
_(
"Overwrite" ) );
96 wxFileName brdFile =
board->GetFileName();
97 brdFile.SetExt( wxT(
"emn" ) );
98 path = brdFile.GetFullPath();
117 BOX2I bbox =
board->GetBoardEdgesBoundingBox();
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.
constexpr Vec Centre() const
TEXT_CTRL_EVAL * m_IDF_Xref
wxCheckBox * m_cbSetBoardReferencePoint
wxFilePickerCtrl * m_filePickerIDF
DIALOG_EXPORT_IDF3_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export IDFv3"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
TEXT_CTRL_EVAL * m_IDF_Yref
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.
std::vector< FAB_LAYER_COLOR > dummy