KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_idf_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
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 )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bSizerIDFFile;
19 bSizerIDFFile = new wxBoxSizer( wxVERTICAL );
20
21 m_txtBrdFile = new wxStaticText( this, wxID_ANY, _("File name:"), wxDefaultPosition, wxDefaultSize, 0 );
22 m_txtBrdFile->Wrap( -1 );
23 bSizerIDFFile->Add( m_txtBrdFile, 0, wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
24
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 );
27
28 wxBoxSizer* bSizer2;
29 bSizer2 = new wxBoxSizer( wxHORIZONTAL );
30
31 wxBoxSizer* bSizer3;
32 bSizer3 = new wxBoxSizer( wxVERTICAL );
33
34 m_staticText2 = new wxStaticText( this, wxID_ANY, _("Grid reference point:"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_staticText2->Wrap( -1 );
36 bSizer3->Add( m_staticText2, 0, wxALL, 5 );
37
38 m_cbAutoAdjustOffset = new wxCheckBox( this, wxID_ANY, _("Adjust automatically"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
39 bSizer3->Add( m_cbAutoAdjustOffset, 0, wxALL, 5 );
40
41 wxBoxSizer* bSizer6;
42 bSizer6 = new wxBoxSizer( wxHORIZONTAL );
43
44 m_staticText5 = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_staticText5->Wrap( -1 );
46 bSizer6->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
47
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 );
51 m_IDF_RefUnitChoice->SetSelection( 0 );
52 bSizer6->Add( m_IDF_RefUnitChoice, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
53
54
55 bSizer3->Add( bSizer6, 1, wxEXPAND, 5 );
56
57 wxBoxSizer* bSizer4;
58 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
59
60 m_staticText3 = new wxStaticText( this, wxID_ANY, _("X position:"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_staticText3->Wrap( -1 );
62 bSizer4->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
63
64 m_IDF_Xref = new TEXT_CTRL_EVAL( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
65 #ifdef __WXGTK__
66 if ( !m_IDF_Xref->HasFlag( wxTE_MULTILINE ) )
67 {
68 m_IDF_Xref->SetMaxLength( 8 );
69 }
70 #else
71 m_IDF_Xref->SetMaxLength( 8 );
72 #endif
73 bSizer4->Add( m_IDF_Xref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
74
75
76 bSizer3->Add( bSizer4, 1, wxEXPAND, 5 );
77
78 wxBoxSizer* bSizer5;
79 bSizer5 = new wxBoxSizer( wxHORIZONTAL );
80
81 m_staticText4 = new wxStaticText( this, wxID_ANY, _("Y position:"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_staticText4->Wrap( -1 );
83 bSizer5->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
84
85 m_IDF_Yref = new TEXT_CTRL_EVAL( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
86 #ifdef __WXGTK__
87 if ( !m_IDF_Yref->HasFlag( wxTE_MULTILINE ) )
88 {
89 m_IDF_Yref->SetMaxLength( 8 );
90 }
91 #else
92 m_IDF_Yref->SetMaxLength( 8 );
93 #endif
94 bSizer5->Add( m_IDF_Yref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
95
96
97 bSizer3->Add( bSizer5, 1, wxEXPAND, 5 );
98
99
100 bSizer2->Add( bSizer3, 1, wxEXPAND|wxLEFT, 5 );
101
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 );
105 m_rbUnitSelection->SetSelection( 0 );
106 bSizer2->Add( m_rbUnitSelection, 0, wxALL, 5 );
107
108 wxStaticBoxSizer* sbOtherOptions;
109 sbOtherOptions = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Other Options") ), wxVERTICAL );
110
111 m_cbRemoveDNP = new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Ignore 'Do not populate' components"), wxDefaultPosition, wxDefaultSize, 0 );
112 sbOtherOptions->Add( m_cbRemoveDNP, 0, wxALL, 5 );
113
114 m_cbRemoveUnspecified = new wxCheckBox( sbOtherOptions->GetStaticBox(), wxID_ANY, _("Ignore 'Unspecified' components"), wxDefaultPosition, wxDefaultSize, 0 );
115 sbOtherOptions->Add( m_cbRemoveUnspecified, 0, wxALL, 5 );
116
117
118 bSizer2->Add( sbOtherOptions, 1, wxEXPAND|wxLEFT|wxRIGHT, 10 );
119
120
121 bSizerIDFFile->Add( bSizer2, 1, wxEXPAND, 5 );
122
123 m_sdbSizer = new wxStdDialogButtonSizer();
124 m_sdbSizerOK = new wxButton( this, wxID_OK );
125 m_sdbSizer->AddButton( m_sdbSizerOK );
126 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
127 m_sdbSizer->AddButton( m_sdbSizerCancel );
128 m_sdbSizer->Realize();
129
130 bSizerIDFFile->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
131
132
133 this->SetSizer( bSizerIDFFile );
134 this->Layout();
135 bSizerIDFFile->Fit( this );
136
137 this->Centre( wxBOTH );
138}
139
141{
142}
wxStdDialogButtonSizer * m_sdbSizer
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)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
wxTextCtrl wrapper to handle math expression evaluation.
#define _(s)