15DIALOG_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 )
17 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
21 wxBoxSizer* bUpperSizer;
22 bUpperSizer =
new wxBoxSizer( wxHORIZONTAL );
24 wxBoxSizer* bSizerdirBrowse;
25 bSizerdirBrowse =
new wxBoxSizer( wxHORIZONTAL );
27 m_staticTextDir =
new wxStaticText(
this, wxID_ANY,
_(
"Output directory:"), wxDefaultPosition, wxDefaultSize, 0 );
29 bSizerdirBrowse->Add(
m_staticTextDir, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
31 m_outputDirectoryName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32 m_outputDirectoryName->SetToolTip(
_(
"Target directory for plot files. Can be absolute or relative to the board file location.") );
38 bSizerdirBrowse->Add(
m_browseButton, 0, wxALIGN_CENTER_VERTICAL, 5 );
41 bUpperSizer->Add( bSizerdirBrowse, 1, wxEXPAND|wxALL, 10 );
46 wxBoxSizer* bSizerMiddle;
47 bSizerMiddle =
new wxBoxSizer( wxHORIZONTAL );
49 wxString m_rbFormatChoices[] = {
_(
"ASCII"),
_(
"CSV"),
_(
"Gerber X3") };
50 int m_rbFormatNChoices =
sizeof( m_rbFormatChoices ) /
sizeof( wxString );
51 m_rbFormat =
new wxRadioBox(
this, wxID_ANY,
_(
"Format"), wxDefaultPosition, wxDefaultSize, m_rbFormatNChoices, m_rbFormatChoices, 1, wxRA_SPECIFY_COLS );
53 bSizerMiddle->Add(
m_rbFormat, 1, wxALL|wxEXPAND, 5 );
55 wxString m_radioBoxUnitsChoices[] = {
_(
"Inches"),
_(
"Millimeters") };
56 int m_radioBoxUnitsNChoices =
sizeof( m_radioBoxUnitsChoices ) /
sizeof( wxString );
57 m_radioBoxUnits =
new wxRadioBox(
this, wxID_ANY,
_(
"Units"), wxDefaultPosition, wxDefaultSize, m_radioBoxUnitsNChoices, m_radioBoxUnitsChoices, 1, wxRA_SPECIFY_COLS );
61 wxString m_radioBoxFilesCountChoices[] = {
_(
"Separate files for front, back"),
_(
"Single file for board") };
62 int m_radioBoxFilesCountNChoices =
sizeof( m_radioBoxFilesCountChoices ) /
sizeof( wxString );
63 m_radioBoxFilesCount =
new wxRadioBox(
this, wxID_ANY,
_(
"Files"), wxDefaultPosition, wxDefaultSize, m_radioBoxFilesCountNChoices, m_radioBoxFilesCountChoices, 1, wxRA_SPECIFY_COLS );
65 m_radioBoxFilesCount->SetToolTip(
_(
"Creates 2 files: one for each board side or\nCreates only one file containing all footprints to place\n") );
70 m_MainSizer->Add( bSizerMiddle, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
72 wxBoxSizer* bSizerLower;
73 bSizerLower =
new wxBoxSizer( wxVERTICAL );
75 m_onlySMD =
new wxCheckBox(
this, wxID_ANY,
_(
"Include only SMD footprints"), wxDefaultPosition, wxDefaultSize, 0 );
76 bSizerLower->Add(
m_onlySMD, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
78 m_excludeTH =
new wxCheckBox(
this, wxID_ANY,
_(
"Exclude all footprints with through hole pads"), wxDefaultPosition, wxDefaultSize, 0 );
79 bSizerLower->Add(
m_excludeTH, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
81 m_excludeDNP =
new wxCheckBox(
this, wxID_ANY,
_(
"Exclude all footprints with the Do Not Populate flag set"), wxDefaultPosition, wxDefaultSize, 0 );
84 m_cbIncludeBoardEdge =
new wxCheckBox(
this, wxID_ANY,
_(
"Include board edge layer"), wxDefaultPosition, wxDefaultSize, 0 );
87 m_useDrillPlaceOrigin =
new wxCheckBox(
this, wxID_ANY,
_(
"Use drill/place file origin"), wxDefaultPosition, wxDefaultSize, 0 );
90 m_negateXcb =
new wxCheckBox(
this, wxID_ANY,
_(
"Use negative X coordinates for footprints on bottom layer"), wxDefaultPosition, wxDefaultSize, 0 );
91 bSizerLower->Add(
m_negateXcb, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
99 m_MainSizer->Add( bSizerLower, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
115 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
A widget for browsing a rich text error/status report.