14DIALOG_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 )
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
20 wxBoxSizer* bUpperSizer;
21 bUpperSizer =
new wxBoxSizer( wxHORIZONTAL );
23 wxBoxSizer* bSizerdirBrowse;
24 bSizerdirBrowse =
new wxBoxSizer( wxHORIZONTAL );
26 m_staticTextDir =
new wxStaticText(
this, wxID_ANY,
_(
"Output directory:"), wxDefaultPosition, wxDefaultSize, 0 );
28 bSizerdirBrowse->Add(
m_staticTextDir, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
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.") );
36 m_browseButton =
new wxBitmapButton(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
37 bSizerdirBrowse->Add(
m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
40 bUpperSizer->Add( bSizerdirBrowse, 1, wxEXPAND|wxALL, 10 );
45 wxBoxSizer* bSizerMiddle;
46 bSizerMiddle =
new wxBoxSizer( wxHORIZONTAL );
48 wxString m_rbFormatChoices[] = {
_(
"ASCII"),
_(
"CSV"),
_(
"Gerber (experimental)") };
49 int m_rbFormatNChoices =
sizeof( m_rbFormatChoices ) /
sizeof( wxString );
50 m_rbFormat =
new wxRadioBox(
this, wxID_ANY,
_(
"Format"), wxDefaultPosition, wxDefaultSize, m_rbFormatNChoices, m_rbFormatChoices, 1, wxRA_SPECIFY_COLS );
52 bSizerMiddle->Add(
m_rbFormat, 1, wxALL|wxEXPAND, 5 );
54 wxString m_radioBoxUnitsChoices[] = {
_(
"Inches"),
_(
"Millimeters") };
55 int m_radioBoxUnitsNChoices =
sizeof( m_radioBoxUnitsChoices ) /
sizeof( wxString );
56 m_radioBoxUnits =
new wxRadioBox(
this, wxID_ANY,
_(
"Units"), wxDefaultPosition, wxDefaultSize, m_radioBoxUnitsNChoices, m_radioBoxUnitsChoices, 1, wxRA_SPECIFY_COLS );
60 wxString m_radioBoxFilesCountChoices[] = {
_(
"Separate files for front, back"),
_(
"Single file for board") };
61 int m_radioBoxFilesCountNChoices =
sizeof( m_radioBoxFilesCountChoices ) /
sizeof( wxString );
62 m_radioBoxFilesCount =
new wxRadioBox(
this, wxID_ANY,
_(
"Files"), wxDefaultPosition, wxDefaultSize, m_radioBoxFilesCountNChoices, m_radioBoxFilesCountChoices, 1, wxRA_SPECIFY_COLS );
64 m_radioBoxFilesCount->SetToolTip(
_(
"Creates 2 files: one for each board side or\nCreates only one file containing all footprints to place\n") );
69 m_MainSizer->Add( bSizerMiddle, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
71 wxBoxSizer* bSizerLower;
72 bSizerLower =
new wxBoxSizer( wxVERTICAL );
74 m_onlySMD =
new wxCheckBox(
this, wxID_ANY,
_(
"Include only SMD footprints"), wxDefaultPosition, wxDefaultSize, 0 );
75 bSizerLower->Add(
m_onlySMD, 0, wxALL, 5 );
77 m_excludeTH =
new wxCheckBox(
this, wxID_ANY,
_(
"Exclude all footprints with through hole pads"), wxDefaultPosition, wxDefaultSize, 0 );
78 bSizerLower->Add(
m_excludeTH, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
80 m_cbIncludeBoardEdge =
new wxCheckBox(
this, wxID_ANY,
_(
"Include board edge layer"), wxDefaultPosition, wxDefaultSize, 0 );
83 m_useDrillPlaceOrigin =
new wxCheckBox(
this, wxID_ANY,
_(
"Use drill/place file origin"), wxDefaultPosition, wxDefaultSize, 0 );
86 m_negateXcb =
new wxCheckBox(
this, wxID_ANY,
_(
"Use negative X coordinates for footprints on bottom layer"), wxDefaultPosition, wxDefaultSize, 0 );
87 bSizerLower->Add(
m_negateXcb, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
95 m_MainSizer->Add( bSizerLower, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
97 m_staticline =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
114 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.