15DIALOG_IMPORT_NETLIST_BASE::DIALOG_IMPORT_NETLIST_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( wxDefaultSize, wxDefaultSize );
19 wxBoxSizer* bMainSizer;
20 bMainSizer =
new wxBoxSizer( wxVERTICAL );
22 wxBoxSizer* bSizerNetlistFilename;
23 bSizerNetlistFilename =
new wxBoxSizer( wxHORIZONTAL );
25 wxStaticText* staticTextNetlistFile;
26 staticTextNetlistFile =
new wxStaticText(
this, wxID_ANY,
_(
"Netlist file:"), wxDefaultPosition, wxDefaultSize, 0 );
27 staticTextNetlistFile->Wrap( -1 );
28 bSizerNetlistFilename->Add( staticTextNetlistFile, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
30 m_NetlistFilenameCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
34 bSizerNetlistFilename->Add(
m_browseButton, 0, wxALIGN_CENTER_VERTICAL, 2 );
37 bMainSizer->Add( bSizerNetlistFilename, 0, wxEXPAND|wxALL, 10 );
39 wxBoxSizer* bUpperSizer;
40 bUpperSizer =
new wxBoxSizer( wxHORIZONTAL );
42 wxString m_matchByTimestampChoices[] = {
_(
"Link footprints using component tstamps (unique ids)"),
_(
"Link footprints using reference designators") };
43 int m_matchByTimestampNChoices =
sizeof( m_matchByTimestampChoices ) /
sizeof( wxString );
44 m_matchByTimestamp =
new wxRadioBox(
this, wxID_ANY,
_(
"Link Method"), wxDefaultPosition, wxDefaultSize, m_matchByTimestampNChoices, m_matchByTimestampChoices, 1, wxRA_SPECIFY_COLS );
46 m_matchByTimestamp->SetToolTip(
_(
"Select whether to update footprint references to match their currently-assigned symbols, or to re-assign footprints to symbols which match their current references.") );
48 bUpperSizer->Add(
m_matchByTimestamp, 1, wxALIGN_TOP|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
50 wxStaticBoxSizer* sbSizer1;
51 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Options") ), wxVERTICAL );
53 m_cbDeleteExtraFootprints =
new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Delete footprints with no components in netlist"), wxDefaultPosition, wxDefaultSize, 0 );
56 m_cbUpdateFootprints =
new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Replace footprints with those specified in netlist"), wxDefaultPosition, wxDefaultSize, 0 );
59 m_cbOverrideLocks =
new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Delete/replace footprints even if locked"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_cbDeleteShortingTracks =
new wxCheckBox( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Delete tracks shorting multiple nets"), wxDefaultPosition, wxDefaultSize, 0 );
66 bUpperSizer->Add( sbSizer1, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
69 bMainSizer->Add( bUpperSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
71 wxBoxSizer* bLowerSizer;
72 bLowerSizer =
new wxBoxSizer( wxVERTICAL );
74 bLowerSizer->SetMinSize( wxSize( -1,250 ) );
79 bMainSizer->Add( bLowerSizer, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
98 this->SetSizer( bMainSizer );
100 bMainSizer->Fit(
this );
wxCheckBox * m_cbDeleteExtraFootprints
wxCheckBox * m_cbUpdateFootprints
wxTextCtrl * m_NetlistFilenameCtrl
virtual void onUpdatePCB(wxCommandEvent &event)
wxButton * m_sdbSizerApply
DIALOG_IMPORT_NETLIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Import Netlist"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onImportNetlist(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_browseButton
virtual void OnMatchChanged(wxCommandEvent &event)
wxRadioBox * m_matchByTimestamp
wxCheckBox * m_cbOverrideLocks
wxButton * m_sdbSizerCancel
~DIALOG_IMPORT_NETLIST_BASE()
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnOptionChanged(wxCommandEvent &event)
WX_HTML_REPORT_PANEL * m_MessageWindow
virtual void onBrowseNetlistFiles(wxCommandEvent &event)
virtual void OnFilenameKillFocus(wxFocusEvent &event)
wxBoxSizer * m_buttonsSizer
wxCheckBox * m_cbDeleteShortingTracks
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.