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, wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
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, 5 );
29 bSizer2 =
new wxBoxSizer( wxHORIZONTAL );
32 bSizer3 =
new wxBoxSizer( wxVERTICAL );
34 m_staticText2 =
new wxStaticText(
this, wxID_ANY,
_(
"Grid reference point:"), wxDefaultPosition, wxDefaultSize, 0 );
38 m_cbAutoAdjustOffset =
new wxCheckBox(
this, wxID_ANY,
_(
"Adjust automatically"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
42 bSizer6 =
new wxBoxSizer( wxHORIZONTAL );
44 m_staticText5 =
new wxStaticText(
this, wxID_ANY,
_(
"Units:"), wxDefaultPosition, wxDefaultSize, 0 );
46 bSizer6->Add(
m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
48 wxString m_IDF_RefUnitChoiceChoices[] = {
_(
"mm"),
_(
"inch") };
49 int m_IDF_RefUnitChoiceNChoices =
sizeof( m_IDF_RefUnitChoiceChoices ) /
sizeof( wxString );
50 m_IDF_RefUnitChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_IDF_RefUnitChoiceNChoices, m_IDF_RefUnitChoiceChoices, 0 );
55 bSizer3->Add( bSizer6, 1, wxEXPAND, 5 );
58 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
60 m_staticText3 =
new wxStaticText(
this, wxID_ANY,
_(
"X position:"), wxDefaultPosition, wxDefaultSize, 0 );
62 bSizer4->Add(
m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
73 bSizer4->Add(
m_IDF_Xref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
76 bSizer3->Add( bSizer4, 1, wxEXPAND, 5 );
79 bSizer5 =
new wxBoxSizer( wxHORIZONTAL );
81 m_staticText4 =
new wxStaticText(
this, wxID_ANY,
_(
"Y position:"), wxDefaultPosition, wxDefaultSize, 0 );
83 bSizer5->Add(
m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
94 bSizer5->Add(
m_IDF_Yref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
97 bSizer3->Add( bSizer5, 1, wxEXPAND, 5 );
100 bSizer2->Add( bSizer3, 1, wxEXPAND|wxLEFT, 5 );
102 wxString m_rbUnitSelectionChoices[] = {
_(
"Millimeters"),
_(
"Mils") };
103 int m_rbUnitSelectionNChoices =
sizeof( m_rbUnitSelectionChoices ) /
sizeof( wxString );
104 m_rbUnitSelection =
new wxRadioBox(
this, wxID_ANY,
_(
"Output Units"), wxDefaultPosition, wxDefaultSize, m_rbUnitSelectionNChoices, m_rbUnitSelectionChoices, 1, wxRA_SPECIFY_COLS );
108 wxStaticBoxSizer* sbOtherOptions;
109 sbOtherOptions =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Other Options") ), wxVERTICAL );
111 m_cbRemoveDNP =
new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY,
_(
"Ignore 'Do not populate' components"), wxDefaultPosition, wxDefaultSize, 0 );
114 m_cbRemoveUnspecified =
new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY,
_(
"Ignore 'Unspecified' components"), wxDefaultPosition, wxDefaultSize, 0 );
118 bSizer2->Add( sbOtherOptions, 1, wxEXPAND|wxLEFT|wxRIGHT, 10 );
121 bSizerIDFFile->Add( bSizer2, 1, wxEXPAND, 5 );
130 bSizerIDFFile->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
133 this->SetSizer( bSizerIDFFile );
135 bSizerIDFFile->Fit(
this );
137 this->Centre( wxBOTH );
wxStaticText * m_staticText5
wxStaticText * m_staticText3
wxStaticText * m_staticText4
~DIALOG_EXPORT_IDF3_BASE()
TEXT_CTRL_EVAL * m_IDF_Xref
wxStaticText * m_staticText2
wxButton * m_sdbSizerCancel
wxStdDialogButtonSizer * m_sdbSizer
wxCheckBox * m_cbRemoveDNP
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)
wxCheckBox * m_cbAutoAdjustOffset
wxCheckBox * m_cbRemoveUnspecified
wxRadioBox * m_rbUnitSelection
TEXT_CTRL_EVAL * m_IDF_Yref
wxChoice * m_IDF_RefUnitChoice
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.