2018-04-28 15:22:25 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-11-11 15:58:12 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version 3.9.0 Nov 1 2020)
|
2018-04-28 15:22:25 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_import_settings_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_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 )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_MainSizer = new wxBoxSizer( wxVERTICAL );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-09-20 12:42:43 +00:00
|
|
|
wxBoxSizer* bUpperSizer;
|
|
|
|
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
wxStaticText* importFromLabel;
|
|
|
|
importFromLabel = new wxStaticText( this, wxID_ANY, _("Import from:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
importFromLabel->Wrap( -1 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bUpperSizer->Add( importFromLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_filePathCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_filePathCtrl->SetToolTip( _("Target directory for plot files. Can be absolute or relative to the board file location.") );
|
|
|
|
m_filePathCtrl->SetMinSize( wxSize( 300,-1 ) );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-09-20 12:42:43 +00:00
|
|
|
bUpperSizer->Add( m_filePathCtrl, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
|
|
|
m_browseButton = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
2020-11-11 15:58:12 +00:00
|
|
|
bUpperSizer->Add( m_browseButton, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
|
|
|
|
2020-09-20 12:42:43 +00:00
|
|
|
m_MainSizer->Add( bUpperSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-09-20 12:42:43 +00:00
|
|
|
wxBoxSizer* bMiddleSizer;
|
|
|
|
bMiddleSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bLeftCol;
|
|
|
|
bLeftCol = new wxBoxSizer( wxVERTICAL );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
wxStaticText* importLabel;
|
|
|
|
importLabel = new wxStaticText( this, wxID_ANY, _("Import:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
importLabel->Wrap( -1 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( importLabel, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_LayersOpt = new wxCheckBox( this, wxID_ANY, _("Layers setup"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( m_LayersOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-07-06 10:51:04 +00:00
|
|
|
m_TextAndGraphicsOpt = new wxCheckBox( this, wxID_ANY, _("Text and graphics default properties"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( m_TextAndGraphicsOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-07-06 10:51:04 +00:00
|
|
|
m_ConstraintsOpt = new wxCheckBox( this, wxID_ANY, _("Design rules"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( m_ConstraintsOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-07-06 10:51:04 +00:00
|
|
|
m_TracksAndViasOpt = new wxCheckBox( this, wxID_ANY, _("Predefined track and via dimensions"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( m_TracksAndViasOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-07-06 10:51:04 +00:00
|
|
|
m_MaskAndPasteOpt = new wxCheckBox( this, wxID_ANY, _("Solder mask/paste defaults"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( m_MaskAndPasteOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
|
|
|
m_SeveritiesOpt = new wxCheckBox( this, wxID_ANY, _("Violation severities"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( m_SeveritiesOpt, 0, wxRIGHT|wxLEFT, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-07-06 10:51:04 +00:00
|
|
|
m_NetclassesOpt = new wxCheckBox( this, wxID_ANY, _("Net classes"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-09-20 12:42:43 +00:00
|
|
|
bLeftCol->Add( m_NetclassesOpt, 0, wxALL, 5 );
|
2020-07-06 10:51:04 +00:00
|
|
|
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-09-20 12:42:43 +00:00
|
|
|
bMiddleSizer->Add( bLeftCol, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2020-09-20 12:42:43 +00:00
|
|
|
wxBoxSizer* bRightCol;
|
|
|
|
bRightCol = new wxBoxSizer( wxVERTICAL );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_selectAllButton = new wxButton( this, wxID_ANY, _("Select All"), wxDefaultPosition, wxDefaultSize, 0 );
|
2020-11-11 15:58:12 +00:00
|
|
|
bRightCol->Add( m_selectAllButton, 0, wxALIGN_CENTER|wxALL, 10 );
|
2020-09-20 12:42:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
bMiddleSizer->Add( bRightCol, 1, wxEXPAND|wxALL, 20 );
|
|
|
|
|
|
|
|
|
|
|
|
m_MainSizer->Add( bMiddleSizer, 1, wxEXPAND|wxBOTTOM, 5 );
|
|
|
|
|
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
m_MainSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
m_buttonsSizer = new wxBoxSizer( wxHORIZONTAL );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1OK );
|
|
|
|
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
|
|
|
|
m_sdbSizer1->Realize();
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_buttonsSizer->Add( m_sdbSizer1, 1, wxALL|wxEXPAND, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
m_MainSizer->Add( m_buttonsSizer, 0, wxEXPAND, 5 );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
this->SetSizer( m_MainSizer );
|
|
|
|
this->Layout();
|
|
|
|
m_MainSizer->Fit( this );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
this->Centre( wxBOTH );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
// Connect Events
|
|
|
|
m_browseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnBrowseClicked ), NULL, this );
|
2020-08-07 17:08:45 +00:00
|
|
|
m_LayersOpt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_TextAndGraphicsOpt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_ConstraintsOpt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_TracksAndViasOpt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_MaskAndPasteOpt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_SeveritiesOpt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_NetclassesOpt->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
2018-04-28 15:22:25 +00:00
|
|
|
m_selectAllButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnSelectAll ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_IMPORT_SETTINGS_BASE::~DIALOG_IMPORT_SETTINGS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_browseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnBrowseClicked ), NULL, this );
|
2020-08-07 17:08:45 +00:00
|
|
|
m_LayersOpt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_TextAndGraphicsOpt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_ConstraintsOpt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_TracksAndViasOpt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_MaskAndPasteOpt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_SeveritiesOpt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
|
|
|
m_NetclassesOpt->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnCheckboxClicked ), NULL, this );
|
2018-04-28 15:22:25 +00:00
|
|
|
m_selectAllButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_IMPORT_SETTINGS_BASE::OnSelectAll ), NULL, this );
|
2020-03-10 18:46:57 +00:00
|
|
|
|
2018-04-28 15:22:25 +00:00
|
|
|
}
|