KiCad PCB EDA Suite
dialog_non_copper_zones_properties_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Dec 30 2017)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
9 
11 
12 DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE::DIALOG_NONCOPPER_ZONES_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 )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* m_MainSizer;
17  m_MainSizer = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* m_UpperSizer;
20  m_UpperSizer = new wxBoxSizer( wxHORIZONTAL );
21 
22  wxBoxSizer* bSizerLeft;
23  bSizerLeft = new wxBoxSizer( wxVERTICAL );
24 
25  m_staticTextLayerSelection = new wxStaticText( this, wxID_ANY, _("Layer:"), wxDefaultPosition, wxDefaultSize, 0 );
26  m_staticTextLayerSelection->Wrap( -1 );
27  bSizerLeft->Add( m_staticTextLayerSelection, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
28 
29  m_layers = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_NO_HEADER|wxBORDER_SIMPLE );
30  m_layers->SetMinSize( wxSize( -1,200 ) );
31 
32  bSizerLeft->Add( m_layers, 1, wxALL|wxEXPAND, 5 );
33 
34 
35  m_UpperSizer->Add( bSizerLeft, 1, wxEXPAND, 5 );
36 
37  wxBoxSizer* bSizerRight;
38  bSizerRight = new wxBoxSizer( wxVERTICAL );
39 
40  wxGridBagSizer* gbSizer1;
41  gbSizer1 = new wxGridBagSizer( 0, 0 );
42  gbSizer1->SetFlexibleDirection( wxBOTH );
43  gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
44 
45  m_ConstrainOpt = new wxCheckBox( this, wxID_ANY, _("Constrain outline to H, V and 45 degrees"), wxDefaultPosition, wxDefaultSize, 0 );
46  gbSizer1->Add( m_ConstrainOpt, wxGBPosition( 0, 0 ), wxGBSpan( 1, 3 ), wxALL, 5 );
47 
48  m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Outline display:"), wxDefaultPosition, wxDefaultSize, 0 );
49  m_staticTextStyle->Wrap( -1 );
50  gbSizer1->Add( m_staticTextStyle, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
51 
52  wxString m_OutlineAppearanceCtrlChoices[] = { _("Line"), _("Hatched"), _("Fully hatched") };
53  int m_OutlineAppearanceCtrlNChoices = sizeof( m_OutlineAppearanceCtrlChoices ) / sizeof( wxString );
54  m_OutlineAppearanceCtrl = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_OutlineAppearanceCtrlNChoices, m_OutlineAppearanceCtrlChoices, 0 );
55  m_OutlineAppearanceCtrl->SetSelection( 0 );
56  gbSizer1->Add( m_OutlineAppearanceCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
57 
58  m_MinWidthLabel = new wxStaticText( this, wxID_ANY, _("Minimum width:"), wxDefaultPosition, wxDefaultSize, 0 );
59  m_MinWidthLabel->Wrap( -1 );
60  gbSizer1->Add( m_MinWidthLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
61 
62  m_MinWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
63  gbSizer1->Add( m_MinWidthCtrl, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
64 
65  m_MinWidthUnits = new wxStaticText( this, wxID_ANY, _("units"), wxDefaultPosition, wxDefaultSize, 0 );
66  m_MinWidthUnits->Wrap( -1 );
67  gbSizer1->Add( m_MinWidthUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
68 
69 
70  bSizerRight->Add( gbSizer1, 1, wxEXPAND, 5 );
71 
72 
73  m_UpperSizer->Add( bSizerRight, 0, wxEXPAND|wxALL, 10 );
74 
75 
76  m_MainSizer->Add( m_UpperSizer, 1, wxEXPAND|wxALL, 5 );
77 
78  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
79  m_MainSizer->Add( m_staticline1, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
80 
81  m_sdbSizerButtons = new wxStdDialogButtonSizer();
82  m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
84  m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
86  m_sdbSizerButtons->Realize();
87 
88  m_MainSizer->Add( m_sdbSizerButtons, 0, wxEXPAND|wxALL, 5 );
89 
90 
91  this->SetSizer( m_MainSizer );
92  this->Layout();
93  m_MainSizer->Fit( this );
94 
95  this->Centre( wxBOTH );
96 
97  // Connect Events
98  m_layers->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
99 }
100 
102 {
103  // Disconnect Events
104  m_layers->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE::OnLayerSelection ), NULL, this );
105 
106 }
DIALOG_NONCOPPER_ZONES_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Non-copper Zone Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxFULL_REPAINT_ON_RESIZE|wxBORDER_SUNKEN)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:53