KiCad PCB EDA Suite
dialog_export_idf_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 6 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_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 )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerIDFFile;
17  bSizerIDFFile = new wxBoxSizer( wxVERTICAL );
18 
19  m_txtBrdFile = new wxStaticText( this, wxID_ANY, _("File name:"), wxDefaultPosition, wxDefaultSize, 0 );
20  m_txtBrdFile->Wrap( -1 );
21  bSizerIDFFile->Add( m_txtBrdFile, 0, wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
22 
23  m_filePickerIDF = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, _("Select an IDF export filename"), wxT("*.emn"), wxDefaultPosition, wxSize( 450,-1 ), wxFLP_OVERWRITE_PROMPT|wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
24  bSizerIDFFile->Add( m_filePickerIDF, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
25 
26  wxBoxSizer* bSizer2;
27  bSizer2 = new wxBoxSizer( wxHORIZONTAL );
28 
29  wxBoxSizer* bSizer3;
30  bSizer3 = new wxBoxSizer( wxVERTICAL );
31 
32  m_staticText2 = new wxStaticText( this, wxID_ANY, _("Grid Reference Point:"), wxDefaultPosition, wxDefaultSize, 0 );
33  m_staticText2->Wrap( -1 );
34  bSizer3->Add( m_staticText2, 0, wxALL, 5 );
35 
36  m_cbAutoAdjustOffset = new wxCheckBox( this, wxID_ANY, _("Adjust automatically"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
37  bSizer3->Add( m_cbAutoAdjustOffset, 0, wxALL, 5 );
38 
39  wxBoxSizer* bSizer6;
40  bSizer6 = new wxBoxSizer( wxHORIZONTAL );
41 
42  m_staticText5 = new wxStaticText( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, 0 );
43  m_staticText5->Wrap( -1 );
44  bSizer6->Add( m_staticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
45 
46  wxString m_IDF_RefUnitChoiceChoices[] = { _("mm"), _("inch") };
47  int m_IDF_RefUnitChoiceNChoices = sizeof( m_IDF_RefUnitChoiceChoices ) / sizeof( wxString );
48  m_IDF_RefUnitChoice = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_IDF_RefUnitChoiceNChoices, m_IDF_RefUnitChoiceChoices, 0 );
49  m_IDF_RefUnitChoice->SetSelection( 0 );
50  bSizer6->Add( m_IDF_RefUnitChoice, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
51 
52 
53  bSizer3->Add( bSizer6, 1, wxEXPAND, 5 );
54 
55  wxBoxSizer* bSizer4;
56  bSizer4 = new wxBoxSizer( wxHORIZONTAL );
57 
58  m_staticText3 = new wxStaticText( this, wxID_ANY, _("X Position:"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_staticText3->Wrap( -1 );
60  bSizer4->Add( m_staticText3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
61 
62  m_IDF_Xref = new wxTextCtrl( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
63  #ifdef __WXGTK__
64  if ( !m_IDF_Xref->HasFlag( wxTE_MULTILINE ) )
65  {
66  m_IDF_Xref->SetMaxLength( 8 );
67  }
68  #else
69  m_IDF_Xref->SetMaxLength( 8 );
70  #endif
71  bSizer4->Add( m_IDF_Xref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
72 
73 
74  bSizer3->Add( bSizer4, 1, wxEXPAND, 5 );
75 
76  wxBoxSizer* bSizer5;
77  bSizer5 = new wxBoxSizer( wxHORIZONTAL );
78 
79  m_staticText4 = new wxStaticText( this, wxID_ANY, _("Y Position:"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_staticText4->Wrap( -1 );
81  bSizer5->Add( m_staticText4, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
82 
83  m_IDF_Yref = new wxTextCtrl( this, wxID_ANY, _("0"), wxDefaultPosition, wxDefaultSize, 0 );
84  #ifdef __WXGTK__
85  if ( !m_IDF_Yref->HasFlag( wxTE_MULTILINE ) )
86  {
87  m_IDF_Yref->SetMaxLength( 8 );
88  }
89  #else
90  m_IDF_Yref->SetMaxLength( 8 );
91  #endif
92  bSizer5->Add( m_IDF_Yref, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
93 
94 
95  bSizer3->Add( bSizer5, 1, wxEXPAND, 5 );
96 
97 
98  bSizer2->Add( bSizer3, 1, wxEXPAND|wxLEFT, 5 );
99 
100  wxString m_rbUnitSelectionChoices[] = { _("Millimeters"), _("Mils") };
101  int m_rbUnitSelectionNChoices = sizeof( m_rbUnitSelectionChoices ) / sizeof( wxString );
102  m_rbUnitSelection = new wxRadioBox( this, wxID_ANY, _("Output Units:"), wxDefaultPosition, wxDefaultSize, m_rbUnitSelectionNChoices, m_rbUnitSelectionChoices, 1, wxRA_SPECIFY_COLS );
103  m_rbUnitSelection->SetSelection( 0 );
104  bSizer2->Add( m_rbUnitSelection, 0, wxALL, 5 );
105 
106 
107  bSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
108 
109 
110  bSizerIDFFile->Add( bSizer2, 1, wxEXPAND, 5 );
111 
112  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
113  bSizerIDFFile->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
114 
115  m_sdbSizer = new wxStdDialogButtonSizer();
116  m_sdbSizerOK = new wxButton( this, wxID_OK );
117  m_sdbSizer->AddButton( m_sdbSizerOK );
118  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
119  m_sdbSizer->AddButton( m_sdbSizerCancel );
120  m_sdbSizer->Realize();
121 
122  bSizerIDFFile->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
123 
124 
125  this->SetSizer( bSizerIDFFile );
126  this->Layout();
127  bSizerIDFFile->Fit( this );
128 
129  this->Centre( wxBOTH );
130 }
131 
133 {
134 }
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)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
wxStdDialogButtonSizer * m_sdbSizer