KiCad PCB EDA Suite
dialog_gen_footprint_position_file_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #include "wx_html_report_panel.h"
9 
11 
13 
14 DIALOG_GEN_FOOTPRINT_POSITION_BASE::DIALOG_GEN_FOOTPRINT_POSITION_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( wxSize( -1,-1 ), wxDefaultSize );
17 
18  m_MainSizer = new wxBoxSizer( wxVERTICAL );
19 
20  wxBoxSizer* bUpperSizer;
21  bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
22 
23  wxBoxSizer* bSizerdirBrowse;
24  bSizerdirBrowse = new wxBoxSizer( wxHORIZONTAL );
25 
26  m_staticTextDir = new wxStaticText( this, wxID_ANY, _("Output directory:"), wxDefaultPosition, wxDefaultSize, 0 );
27  m_staticTextDir->Wrap( -1 );
28  bSizerdirBrowse->Add( m_staticTextDir, 0, wxEXPAND|wxRIGHT|wxTOP, 5 );
29 
30  m_outputDirectoryName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
31  m_outputDirectoryName->SetToolTip( _("Target directory for plot files. Can be absolute or relative to the board file location.") );
32  m_outputDirectoryName->SetMinSize( wxSize( 350,-1 ) );
33 
34  bSizerdirBrowse->Add( m_outputDirectoryName, 1, wxBOTTOM|wxEXPAND|wxTOP, 3 );
35 
36  m_browseButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
37  m_browseButton->SetMinSize( wxSize( 30,28 ) );
38 
39  bSizerdirBrowse->Add( m_browseButton, 0, 0, 0 );
40 
41 
42  bUpperSizer->Add( bSizerdirBrowse, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
43 
44 
45  m_MainSizer->Add( bUpperSizer, 0, wxEXPAND, 2 );
46 
47  wxBoxSizer* bSizer71;
48  bSizer71 = new wxBoxSizer( wxHORIZONTAL );
49 
50  wxString m_rbFormatChoices[] = { _("ASCII"), _("CSV") };
51  int m_rbFormatNChoices = sizeof( m_rbFormatChoices ) / sizeof( wxString );
52  m_rbFormat = new wxRadioBox( this, wxID_ANY, _("Format"), wxDefaultPosition, wxDefaultSize, m_rbFormatNChoices, m_rbFormatChoices, 1, wxRA_SPECIFY_COLS );
53  m_rbFormat->SetSelection( 0 );
54  m_rbFormat->SetMinSize( wxSize( 90,-1 ) );
55 
56  bSizer71->Add( m_rbFormat, 1, wxALL, 5 );
57 
58  wxString m_radioBoxUnitsChoices[] = { _("Inches"), _("Millimeters") };
59  int m_radioBoxUnitsNChoices = sizeof( m_radioBoxUnitsChoices ) / sizeof( wxString );
60  m_radioBoxUnits = new wxRadioBox( this, wxID_ANY, _("Units"), wxDefaultPosition, wxDefaultSize, m_radioBoxUnitsNChoices, m_radioBoxUnitsChoices, 1, wxRA_SPECIFY_COLS );
61  m_radioBoxUnits->SetSelection( 0 );
62  m_radioBoxUnits->SetMinSize( wxSize( 90,-1 ) );
63 
64  bSizer71->Add( m_radioBoxUnits, 1, wxALL, 5 );
65 
66  wxString m_radioBoxFilesCountChoices[] = { _("Separate files for front and back"), _("Single file for board") };
67  int m_radioBoxFilesCountNChoices = sizeof( m_radioBoxFilesCountChoices ) / sizeof( wxString );
68  m_radioBoxFilesCount = new wxRadioBox( this, wxID_ANY, _("Files"), wxDefaultPosition, wxDefaultSize, m_radioBoxFilesCountNChoices, m_radioBoxFilesCountChoices, 1, wxRA_SPECIFY_COLS );
69  m_radioBoxFilesCount->SetSelection( 0 );
70  m_radioBoxFilesCount->SetToolTip( _("Creates 2 files: one for each board side or\nCreates only one file containing all footprints to place\n") );
71 
72  bSizer71->Add( m_radioBoxFilesCount, 2, wxALL, 5 );
73 
74 
75  m_MainSizer->Add( bSizer71, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
76 
77  wxBoxSizer* bSizer7;
78  bSizer7 = new wxBoxSizer( wxVERTICAL );
79 
80  m_forceSMDOpt = new wxCheckBox( this, wxID_ANY, _("Include footprints with SMD pads even if not marked Surface Mount"), wxDefaultPosition, wxDefaultSize, 0 );
81  bSizer7->Add( m_forceSMDOpt, 0, wxALL, 5 );
82 
83  m_messagesPanel = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
84  m_messagesPanel->SetMinSize( wxSize( 300,150 ) );
85 
86  bSizer7->Add( m_messagesPanel, 1, wxEXPAND | wxALL, 5 );
87 
88 
89  m_MainSizer->Add( bSizer7, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
90 
91  m_sdbSizer1 = new wxStdDialogButtonSizer();
92  m_sdbSizer1OK = new wxButton( this, wxID_OK );
93  m_sdbSizer1->AddButton( m_sdbSizer1OK );
94  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
95  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
96  m_sdbSizer1->Realize();
97 
98  m_MainSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
99 
100 
101  this->SetSizer( m_MainSizer );
102  this->Layout();
103  m_MainSizer->Fit( this );
104 
105  this->Centre( wxBOTH );
106 
107  // Connect Events
108  m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_FOOTPRINT_POSITION_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
109  m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_FOOTPRINT_POSITION_BASE::OnGenerate ), NULL, this );
110 }
111 
113 {
114  // Disconnect Events
115  m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_FOOTPRINT_POSITION_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
116  m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_FOOTPRINT_POSITION_BASE::OnGenerate ), NULL, this );
117 
118 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:53
virtual void OnOutputDirectoryBrowseClicked(wxCommandEvent &event)
DIALOG_GEN_FOOTPRINT_POSITION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Generate Footprint Position Files"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Class WX_HTML_REPORT_PANEL.