KiCad PCB EDA Suite
dialog_keepout_area_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Aug 4 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
13  EVT_DATAVIEW_ITEM_VALUE_CHANGED( wxID_ANY, DIALOG_KEEPOUT_AREA_PROPERTIES_BASE::_wxFB_OnLayerSelection )
14 END_EVENT_TABLE()
15 
16 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 )
17 {
18  this->SetSizeHints( wxSize( 500,-1 ), wxDefaultSize );
19 
20  wxBoxSizer* m_MainSizer;
21  m_MainSizer = new wxBoxSizer( wxVERTICAL );
22 
23  wxBoxSizer* m_UpperSizer;
24  m_UpperSizer = new wxBoxSizer( wxHORIZONTAL );
25 
26  wxBoxSizer* m_layersListSizer;
27  m_layersListSizer = new wxBoxSizer( wxVERTICAL );
28 
29  m_staticTextLayerSelection = new wxStaticText( this, wxID_ANY, _("Keepout Area Layers:"), wxDefaultPosition, wxDefaultSize, 0 );
30  m_staticTextLayerSelection->Wrap( -1 );
31  m_layersListSizer->Add( m_staticTextLayerSelection, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
32 
33  m_layers = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_NO_HEADER );
34  m_layersListSizer->Add( m_layers, 1, wxALL|wxEXPAND, 5 );
35 
36 
37  m_UpperSizer->Add( m_layersListSizer, 1, wxEXPAND, 5 );
38 
39  wxBoxSizer* bSizerRight;
40  bSizerRight = new wxBoxSizer( wxVERTICAL );
41 
42  m_staticTextprops = new wxStaticText( this, wxID_ANY, _("Properties:"), wxDefaultPosition, wxDefaultSize, 0 );
43  m_staticTextprops->Wrap( -1 );
44  bSizerRight->Add( m_staticTextprops, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
45 
46  wxString m_OrientEdgesOptChoices[] = { _("Any orientation"), _("180, 90, and 45 degrees") };
47  int m_OrientEdgesOptNChoices = sizeof( m_OrientEdgesOptChoices ) / sizeof( wxString );
48  m_OrientEdgesOpt = new wxRadioBox( this, wxID_ANY, _("Zone Edge Orientation:"), wxDefaultPosition, wxDefaultSize, m_OrientEdgesOptNChoices, m_OrientEdgesOptChoices, 1, wxRA_SPECIFY_COLS );
49  m_OrientEdgesOpt->SetSelection( 1 );
50  bSizerRight->Add( m_OrientEdgesOpt, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
51 
52  wxString m_OutlineAppearanceCtrlChoices[] = { _("Line"), _("Hatched Outline"), _("Full Hatched") };
53  int m_OutlineAppearanceCtrlNChoices = sizeof( m_OutlineAppearanceCtrlChoices ) / sizeof( wxString );
54  m_OutlineAppearanceCtrl = new wxRadioBox( this, wxID_ANY, _("Outline Appearence:"), wxDefaultPosition, wxDefaultSize, m_OutlineAppearanceCtrlNChoices, m_OutlineAppearanceCtrlChoices, 1, wxRA_SPECIFY_COLS );
55  m_OutlineAppearanceCtrl->SetSelection( 1 );
56  bSizerRight->Add( m_OutlineAppearanceCtrl, 0, wxALL|wxEXPAND, 5 );
57 
58  wxStaticBoxSizer* sbSizerCutoutOpts;
59  sbSizerCutoutOpts = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Keepout Options:") ), wxVERTICAL );
60 
61  m_cbTracksCtrl = new wxCheckBox( sbSizerCutoutOpts->GetStaticBox(), wxID_ANY, _("No tracks"), wxDefaultPosition, wxDefaultSize, 0 );
62  sbSizerCutoutOpts->Add( m_cbTracksCtrl, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
63 
64  m_cbViasCtrl = new wxCheckBox( sbSizerCutoutOpts->GetStaticBox(), wxID_ANY, _("No vias"), wxDefaultPosition, wxDefaultSize, 0 );
65  sbSizerCutoutOpts->Add( m_cbViasCtrl, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
66 
67  m_cbCopperPourCtrl = new wxCheckBox( sbSizerCutoutOpts->GetStaticBox(), wxID_ANY, _("No copper pour"), wxDefaultPosition, wxDefaultSize, 0 );
68  sbSizerCutoutOpts->Add( m_cbCopperPourCtrl, 0, wxALL|wxEXPAND, 5 );
69 
70 
71  bSizerRight->Add( sbSizerCutoutOpts, 0, wxEXPAND|wxALL, 5 );
72 
73 
74  m_UpperSizer->Add( bSizerRight, 0, wxEXPAND, 5 );
75 
76 
77  m_MainSizer->Add( m_UpperSizer, 1, wxEXPAND, 5 );
78 
79  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
80  m_MainSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
81 
82  m_sdbSizerButtons = new wxStdDialogButtonSizer();
83  m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
84  m_sdbSizerButtons->AddButton( m_sdbSizerButtonsOK );
85  m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
86  m_sdbSizerButtons->AddButton( m_sdbSizerButtonsCancel );
87  m_sdbSizerButtons->Realize();
88 
89  m_MainSizer->Add( m_sdbSizerButtons, 0, wxEXPAND|wxALL, 5 );
90 
91 
92  this->SetSizer( m_MainSizer );
93  this->Layout();
94 
95  this->Centre( wxBOTH );
96 }
97 
99 {
100 }
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
Class DIALOG_KEEPOUT_AREA_PROPERTIES_BASE.