14DIALOG_EXPORT_IDF3_BASE::DIALOG_EXPORT_IDF3_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bSizerIDFFile;
19 bSizerIDFFile =
new wxBoxSizer( wxVERTICAL );
21 m_txtBrdFile =
new wxStaticText(
this, wxID_ANY,
_(
"File name:"), wxDefaultPosition, wxDefaultSize, 0 );
23 bSizerIDFFile->Add(
m_txtBrdFile, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
25 m_filePickerIDF =
new wxFilePickerCtrl(
this, wxID_ANY, wxEmptyString,
_(
"Select an IDF export filename"),
_(
"*.emn"), wxDefaultPosition, wxSize( 450,-1 ), wxFLP_OVERWRITE_PROMPT|wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
26 bSizerIDFFile->Add(
m_filePickerIDF, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
28 wxGridBagSizer* gbSizer1;
29 gbSizer1 =
new wxGridBagSizer( 2, 3 );
30 gbSizer1->SetFlexibleDirection( wxBOTH );
31 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
33 m_cbSetBoardReferencePoint =
new wxCheckBox(
this, wxID_ANY,
_(
"Set board reference point:"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
36 m_xLabel =
new wxStaticText(
this, wxID_ANY,
_(
"X position:"), wxDefaultPosition, wxDefaultSize, 0 );
38 gbSizer1->Add(
m_xLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 23 );
49 gbSizer1->Add(
m_IDF_Xref, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
51 m_xUnits =
new wxStaticText(
this, wxID_ANY,
_(
"units"), wxDefaultPosition, wxDefaultSize, 0 );
53 gbSizer1->Add(
m_xUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
55 m_yLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Y position:"), wxDefaultPosition, wxDefaultSize, 0 );
57 gbSizer1->Add(
m_yLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 23 );
68 gbSizer1->Add(
m_IDF_Yref, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
70 m_yUnits =
new wxStaticText(
this, wxID_ANY,
_(
"units"), wxDefaultPosition, wxDefaultSize, 0 );
72 gbSizer1->Add(
m_yUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
74 m_outputUnitsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Output units:"), wxDefaultPosition, wxDefaultSize, 0 );
76 gbSizer1->Add(
m_outputUnitsLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 8 );
78 wxString m_outputUnitsChoiceChoices[] = {
_(
"Millimeters"),
_(
"Mils") };
79 int m_outputUnitsChoiceNChoices =
sizeof( m_outputUnitsChoiceChoices ) /
sizeof( wxString );
80 m_outputUnitsChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_outputUnitsChoiceNChoices, m_outputUnitsChoiceChoices, 0 );
82 gbSizer1->Add(
m_outputUnitsChoice, wxGBPosition( 3, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
84 m_cbRemoveDNP =
new wxCheckBox(
this, wxID_ANY,
_(
"Ignore 'Do not populate' components"), wxDefaultPosition, wxDefaultSize, 0 );
85 gbSizer1->Add(
m_cbRemoveDNP, wxGBPosition( 4, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM, 5 );
87 m_cbRemoveUnspecified =
new wxCheckBox(
this, wxID_ANY,
_(
"Ignore 'Unspecified' components"), wxDefaultPosition, wxDefaultSize, 0 );
91 bSizerIDFFile->Add( gbSizer1, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
100 bSizerIDFFile->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
103 this->SetSizer( bSizerIDFFile );
105 bSizerIDFFile->Fit(
this );
107 this->Centre( wxBOTH );
~DIALOG_EXPORT_IDF3_BASE()
TEXT_CTRL_EVAL * m_IDF_Xref
wxButton * m_sdbSizerCancel
wxStdDialogButtonSizer * m_sdbSizer
wxCheckBox * m_cbSetBoardReferencePoint
wxCheckBox * m_cbRemoveDNP
wxFilePickerCtrl * m_filePickerIDF
wxChoice * m_outputUnitsChoice
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)
wxStaticText * m_outputUnitsLabel
wxCheckBox * m_cbRemoveUnspecified
TEXT_CTRL_EVAL * m_IDF_Yref
wxStaticText * m_txtBrdFile
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxTextCtrl wrapper to handle math expression evaluation.