27 const wxArrayString& aVariants,
28 const wxString& aDefaultPath ) :
39 [
this]( wxCommandEvent& )
71 bool supportsVariants = target && target->
m_schVersion >= 20250922;
72 bool canFlatten = target && !supportsVariants &&
m_variantChoice->GetCount() > 1;
76 m_variantChoice->SetToolTip( supportsVariants ?
_(
"The target supports variants. All variants are exported." )
77 :
_(
"Choose the variant to flatten into the exported design." ) );
wxChoice * m_targetChoice
wxChoice * m_variantChoice
wxCheckBox * m_cbDropInsteadOfApproximate
wxDirPickerCtrl * m_destPicker
DIALOG_EXPORT_OLDER_VERSION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Export for Older KiCad Version"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_variantLabel
bool GetDropInsteadOfApproximate() const
wxString GetTarget() const
void updateVariantChoice()
bool TransferDataFromWindow() override
wxString GetVariant() const
The variant to flatten, or empty for the base design.
DIALOG_EXPORT_OLDER_VERSION(wxWindow *aParent, const wxArrayString &aTargets, const wxArrayString &aVariants, const wxString &aDefaultPath)
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...
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
This file is part of the common library.
const DOWNGRADE_TARGET * FindDowngradeTarget(const wxString &aNameOrId)
Match a user-supplied target string against name or stable id, case-insensitively.
An older KiCad release we can export a project back to.
int m_schVersion
SEXPR_SCHEMATIC_FILE_VERSION for the target.