KiCad PCB EDA Suite
dialog_gen_module_position_file_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Mar 28 2016)
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_MODULE_POSITION_BASE::DIALOG_GEN_MODULE_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* bDirSizer;
24  bDirSizer = new wxBoxSizer( wxVERTICAL );
25 
26  m_staticTextDir = new wxStaticText( this, wxID_ANY, _("Output directory:"), wxDefaultPosition, wxDefaultSize, 0 );
27  m_staticTextDir->Wrap( -1 );
28  bDirSizer->Add( m_staticTextDir, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
29 
30  wxBoxSizer* bSizerdirBrowse;
31  bSizerdirBrowse = new wxBoxSizer( wxHORIZONTAL );
32 
33  m_outputDirectoryName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
34  m_outputDirectoryName->SetToolTip( _("Target directory for plot files. Can be absolute or relative to the board file location.") );
35  m_outputDirectoryName->SetMinSize( wxSize( 350,-1 ) );
36 
37  bSizerdirBrowse->Add( m_outputDirectoryName, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
38 
39  m_browseButton = new wxButton( this, wxID_ANY, _("Browse..."), wxDefaultPosition, wxDefaultSize, 0 );
40  bSizerdirBrowse->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
41 
42 
43  bDirSizer->Add( bSizerdirBrowse, 1, wxEXPAND, 5 );
44 
45 
46  bUpperSizer->Add( bDirSizer, 1, 0, 5 );
47 
48 
49  m_MainSizer->Add( bUpperSizer, 0, wxEXPAND, 5 );
50 
51  wxBoxSizer* bSizerOptions;
52  bSizerOptions = new wxBoxSizer( wxHORIZONTAL );
53 
54  wxString m_rbFormatChoices[] = { _("Ascii"), _("CSV") };
55  int m_rbFormatNChoices = sizeof( m_rbFormatChoices ) / sizeof( wxString );
56  m_rbFormat = new wxRadioBox( this, wxID_ANY, _("Format:"), wxDefaultPosition, wxDefaultSize, m_rbFormatNChoices, m_rbFormatChoices, 1, wxRA_SPECIFY_COLS );
57  m_rbFormat->SetSelection( 0 );
58  bSizerOptions->Add( m_rbFormat, 0, wxALL, 5 );
59 
60  wxString m_radioBoxUnitsChoices[] = { _("Inches"), _("mm") };
61  int m_radioBoxUnitsNChoices = sizeof( m_radioBoxUnitsChoices ) / sizeof( wxString );
62  m_radioBoxUnits = new wxRadioBox( this, wxID_ANY, _("Units:"), wxDefaultPosition, wxDefaultSize, m_radioBoxUnitsNChoices, m_radioBoxUnitsChoices, 1, wxRA_SPECIFY_COLS );
63  m_radioBoxUnits->SetSelection( 0 );
64  bSizerOptions->Add( m_radioBoxUnits, 0, wxALL|wxEXPAND, 5 );
65 
66  wxString m_radioBoxFilesCountChoices[] = { _("One file per side"), _("One 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  bSizerOptions->Add( m_radioBoxFilesCount, 1, wxALL, 5 );
73 
74  wxString m_radioBoxForceSmdChoices[] = { _("With INSERT attribute set"), _("Force INSERT attribute for all SMD footprints") };
75  int m_radioBoxForceSmdNChoices = sizeof( m_radioBoxForceSmdChoices ) / sizeof( wxString );
76  m_radioBoxForceSmd = new wxRadioBox( this, wxID_ANY, _("Footprints Selection:"), wxDefaultPosition, wxDefaultSize, m_radioBoxForceSmdNChoices, m_radioBoxForceSmdChoices, 1, wxRA_SPECIFY_COLS );
77  m_radioBoxForceSmd->SetSelection( 0 );
78  m_radioBoxForceSmd->SetToolTip( _("Only footprints with option INSERT are listed in placement file.\nThis option can force this option for all footprints having only SMD pads.\nWarning: this options will modify the board.") );
79 
80  bSizerOptions->Add( m_radioBoxForceSmd, 0, wxALL, 5 );
81 
82 
83  m_MainSizer->Add( bSizerOptions, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
84 
85  wxBoxSizer* bSizer7;
86  bSizer7 = new wxBoxSizer( wxVERTICAL );
87 
88  m_messagesPanel = new WX_HTML_REPORT_PANEL( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
89  m_messagesPanel->SetMinSize( wxSize( 300,150 ) );
90 
91  bSizer7->Add( m_messagesPanel, 1, wxEXPAND | wxALL, 5 );
92 
93 
94  m_MainSizer->Add( bSizer7, 1, wxEXPAND, 5 );
95 
96  m_sdbSizerButtons = new wxStdDialogButtonSizer();
97  m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
99  m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
101  m_sdbSizerButtons->Realize();
102 
103  m_MainSizer->Add( m_sdbSizerButtons, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
104 
105 
106  this->SetSizer( m_MainSizer );
107  this->Layout();
108 
109  this->Centre( wxBOTH );
110 
111  // Connect Events
112  m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_MODULE_POSITION_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
113  m_sdbSizerButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_MODULE_POSITION_BASE::OnOKButton ), NULL, this );
114 }
115 
117 {
118  // Disconnect Events
119  m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_MODULE_POSITION_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
120  m_sdbSizerButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GEN_MODULE_POSITION_BASE::OnOKButton ), NULL, this );
121 
122 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
DIALOG_GEN_MODULE_POSITION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Generate Component Position Files"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(525, 304), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnOutputDirectoryBrowseClicked(wxCommandEvent &event)
virtual void OnOKButton(wxCommandEvent &event)
Class WX_HTML_REPORT_PANEL.