14DIALOG_SCH_IMPORT_SETTINGS_BASE::DIALOG_SCH_IMPORT_SETTINGS_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 wxStaticText* importFromLabel;
24 importFromLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Import from:"), wxDefaultPosition, wxDefaultSize, 0 );
25 importFromLabel->Wrap( -1 );
26 bupperSizer->Add( importFromLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
28 m_filePathCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
29 m_filePathCtrl->SetToolTip(
_(
"Target directory for plot files. Can be absolute or relative to the board file location.") );
32 bupperSizer->Add(
m_filePathCtrl, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
35 bupperSizer->Add(
m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
38 m_MainSizer->Add( bupperSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
40 wxBoxSizer* bmiddleSizer;
41 bmiddleSizer =
new wxBoxSizer( wxVERTICAL );
43 wxStaticText* importLabel;
44 importLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Import:"), wxDefaultPosition, wxDefaultSize, 0 );
45 importLabel->Wrap( -1 );
46 bmiddleSizer->Add( importLabel, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
48 m_FormattingOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Formatting preferences"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_FieldNameTemplatesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Field name templates"), wxDefaultPosition, wxDefaultSize, 0 );
54 m_BomPresetsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"BOM presets"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_BomFmtPresetsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"BOM format presets"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_SeveritiesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Violation severities"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_PinMapOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Pin conflict map"), wxDefaultPosition, wxDefaultSize, 0 );
64 bmiddleSizer->Add(
m_PinMapOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
66 m_NetClassesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Net classes"), wxDefaultPosition, wxDefaultSize, 0 );
69 m_BusAliasesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Bus alias definitions"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_TextVarsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Text variables"), wxDefaultPosition, wxDefaultSize, 0 );
73 bmiddleSizer->Add(
m_TextVarsOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
76 m_MainSizer->Add( bmiddleSizer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
80 m_selectAllButton =
new wxButton(
this, wxID_ANY,
_(
"Select All"), wxDefaultPosition, wxDefaultSize, 0 );
100 this->Centre( wxBOTH );
virtual void OnSelectAll(wxCommandEvent &event)
wxCheckBox * m_BomPresetsOpt
STD_BITMAP_BUTTON * m_browseButton
wxTextCtrl * m_filePathCtrl
wxStdDialogButtonSizer * m_sdbSizer1
wxCheckBox * m_NetClassesOpt
wxCheckBox * m_FormattingOpt
virtual void OnBrowseClicked(wxCommandEvent &event)
wxBoxSizer * m_buttonsSizer
wxButton * m_sdbSizer1Cancel
wxCheckBox * m_BusAliasesOpt
wxButton * m_selectAllButton
wxCheckBox * m_FieldNameTemplatesOpt
~DIALOG_SCH_IMPORT_SETTINGS_BASE()
wxCheckBox * m_SeveritiesOpt
wxCheckBox * m_TextVarsOpt
DIALOG_SCH_IMPORT_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Import Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxCheckBox * m_BomFmtPresetsOpt
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...