2018-08-02 17:00:41 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2020-01-04 23:27:32 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version v3.8.0)
|
2018-08-02 17:00:41 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_keepout_area_properties_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::DIALOG_KEEPOUT_AREA_PROPERTIES_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 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
wxBoxSizer* bUpperSizer;
|
|
|
|
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
wxBoxSizer* bLayersListSizer;
|
|
|
|
bLayersListSizer = new wxBoxSizer( wxVERTICAL );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_staticTextLayerSelection = new wxStaticText( this, wxID_ANY, _("Layers:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextLayerSelection->Wrap( -1 );
|
|
|
|
bLayersListSizer->Add( m_staticTextLayerSelection, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_layers = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_NO_HEADER|wxBORDER_SIMPLE );
|
|
|
|
bLayersListSizer->Add( m_layers, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
bUpperSizer->Add( bLayersListSizer, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
wxBoxSizer* bSizerRight;
|
|
|
|
bSizerRight = new wxBoxSizer( wxVERTICAL );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_cbTracksCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerRight->Add( m_cbTracksCtrl, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_cbViasCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerRight->Add( m_cbViasCtrl, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_cbCopperPourCtrl = new wxCheckBox( this, wxID_ANY, _("Keep out copper pours"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerRight->Add( m_cbCopperPourCtrl, 0, wxALL|wxEXPAND, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
bSizerRight->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_cbConstrainCtrl = new wxCheckBox( this, wxID_ANY, _("Constrain outline to H, V and 45 deg"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerRight->Add( m_cbConstrainCtrl, 0, wxALL, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
bSizerRight->Add( 0, 0, 0, wxTOP|wxBOTTOM, 5 );
|
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
wxBoxSizer* bSizerLowerRight;
|
|
|
|
bSizerLowerRight = new wxBoxSizer( wxHORIZONTAL );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Outline display:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
m_staticTextStyle->Wrap( -1 );
|
|
|
|
bSizerLowerRight->Add( m_staticTextStyle, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
wxString m_OutlineAppearanceCtrlChoices[] = { _("Line"), _("Hatched"), _("Fully hatched") };
|
|
|
|
int m_OutlineAppearanceCtrlNChoices = sizeof( m_OutlineAppearanceCtrlChoices ) / sizeof( wxString );
|
|
|
|
m_OutlineAppearanceCtrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_OutlineAppearanceCtrlNChoices, m_OutlineAppearanceCtrlChoices, 0 );
|
|
|
|
m_OutlineAppearanceCtrl->SetSelection( 0 );
|
2019-10-28 09:15:03 +00:00
|
|
|
bSizerLowerRight->Add( m_OutlineAppearanceCtrl, 0, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bSizerRight->Add( bSizerLowerRight, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bUpperSizer->Add( bSizerRight, 0, wxALL|wxEXPAND, 10 );
|
|
|
|
|
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
bMainSizer->Add( bUpperSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
|
|
bMainSizer->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
m_sdbSizerButtons = new wxStdDialogButtonSizer();
|
|
|
|
m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
|
|
|
|
m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
|
|
|
|
m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
|
|
|
|
m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
|
|
|
|
m_sdbSizerButtons->Realize();
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
bMainSizer->Add( m_sdbSizerButtons, 0, wxEXPAND|wxALL, 5 );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
|
|
|
bMainSizer->Fit( this );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
this->Centre( wxBOTH );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
// Connect Events
|
|
|
|
m_layers->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
|
2019-10-28 09:15:03 +00:00
|
|
|
m_layers->Connect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::onLayerListRightDown ), NULL, this );
|
2018-08-02 17:00:41 +00:00
|
|
|
m_layers->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::OnSizeLayersList ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::~DIALOG_KEEPOUT_AREA_PROPERTIES_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
|
|
|
m_layers->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
|
2019-10-28 09:15:03 +00:00
|
|
|
m_layers->Disconnect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::onLayerListRightDown ), NULL, this );
|
2018-08-02 17:00:41 +00:00
|
|
|
m_layers->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::OnSizeLayersList ), NULL, this );
|
2019-10-28 09:15:03 +00:00
|
|
|
|
2018-08-02 17:00:41 +00:00
|
|
|
}
|