12DIALOG_EXPORT_OLDER_VERSION_BASE::DIALOG_EXPORT_OLDER_VERSION_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxFlexGridSizer* fgSizerFields;
20 fgSizerFields =
new wxFlexGridSizer( 3, 2, 5, 5 );
21 fgSizerFields->AddGrowableCol( 1 );
22 fgSizerFields->SetFlexibleDirection( wxBOTH );
23 fgSizerFields->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25 m_targetLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Target version:"), wxDefaultPosition, wxDefaultSize, 0 );
29 wxArrayString m_targetChoiceChoices;
30 m_targetChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_targetChoiceChoices, 0 );
34 m_variantLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Variant:"), wxDefaultPosition, wxDefaultSize, 0 );
38 wxArrayString m_variantChoiceChoices;
39 m_variantChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_variantChoiceChoices, 0 );
43 m_destLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Destination folder:"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_destPicker =
new wxDirPickerCtrl(
this, wxID_ANY, wxEmptyString,
_(
"Select a folder"), wxDefaultPosition, wxDefaultSize, wxDIRP_DEFAULT_STYLE );
50 fgSizerFields->Add(
m_destPicker, 0, wxALL|wxEXPAND, 5 );
53 bSizerMain->Add( fgSizerFields, 1, wxALL|wxEXPAND, 10 );
55 m_cbDropInsteadOfApproximate =
new wxCheckBox(
this, wxID_ANY,
_(
"Drop features instead of approximating them"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_cbDropInsteadOfApproximate->SetToolTip(
_(
"Omit features that would otherwise be approximated. This may remove drawing or electrical data from the exported copy.") );
67 bSizerMain->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
70 this->SetSizer( bSizerMain );
72 bSizerMain->Fit(
this );
74 this->Centre( wxBOTH );
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)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)