14DIALOG_IMPORT_SETTINGS_BASE::DIALOG_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, wxALL|wxALIGN_CENTER_VERTICAL, 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.") );
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( wxHORIZONTAL );
44 bLeftCol =
new wxBoxSizer( wxVERTICAL );
46 wxStaticText* importLabel;
47 importLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Import:"), wxDefaultPosition, wxDefaultSize, 0 );
48 importLabel->Wrap( -1 );
49 bLeftCol->Add( importLabel, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
51 m_LayersOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Board layers and physical stackup"), wxDefaultPosition, wxDefaultSize, 0 );
52 bLeftCol->Add(
m_LayersOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
54 m_MaskAndPasteOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Solder mask/paste defaults"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_TextAndGraphicsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Text && graphics default properties"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_FormattingOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Text && graphics formatting"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_ConstraintsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Design rule constraints"), wxDefaultPosition, wxDefaultSize, 0 );
66 m_TracksAndViasOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Predefined track && via dimensions"), wxDefaultPosition, wxDefaultSize, 0 );
69 m_TeardropsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Teardrop defaults"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_TuningPatternsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Length-tuning pattern defaults"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_NetclassesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Net classes"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_CustomRulesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Custom rules"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_SeveritiesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Violation severities"), wxDefaultPosition, wxDefaultSize, 0 );
85 bMiddleSizer->Add( bLeftCol, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
88 m_MainSizer->Add( bMiddleSizer, 1, wxEXPAND|wxBOTTOM, 5 );
92 m_selectAllButton =
new wxButton(
this, wxID_ANY,
_(
"Select All"), wxDefaultPosition, wxDefaultSize, 0 );
112 this->Centre( wxBOTH );
wxBoxSizer * m_buttonsSizer
virtual void OnSelectAll(wxCommandEvent &event)
wxCheckBox * m_CustomRulesOpt
wxButton * m_selectAllButton
wxCheckBox * m_MaskAndPasteOpt
wxCheckBox * m_ConstraintsOpt
~DIALOG_IMPORT_SETTINGS_BASE()
wxCheckBox * m_TuningPatternsOpt
virtual void OnCheckboxClicked(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_browseButton
wxStdDialogButtonSizer * m_sdbSizer1
wxCheckBox * m_SeveritiesOpt
wxCheckBox * m_TextAndGraphicsOpt
wxButton * m_sdbSizer1Cancel
wxCheckBox * m_FormattingOpt
wxCheckBox * m_TeardropsOpt
DIALOG_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)
wxTextCtrl * m_filePathCtrl
virtual void OnBrowseClicked(wxCommandEvent &event)
wxCheckBox * m_TracksAndViasOpt
wxCheckBox * m_NetclassesOpt
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...