KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_copper_zones_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_COPPER_ZONE_BASE::DIALOG_COPPER_ZONE_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 m_MainBoxSizer = new wxBoxSizer( wxVERTICAL );
17
18 wxBoxSizer* bMainSizer;
19 bMainSizer = new wxBoxSizer( wxHORIZONTAL );
20
21 wxBoxSizer* bSizerLeft;
22 bSizerLeft = new wxBoxSizer( wxVERTICAL );
23
24 m_staticTextLayerSelection = new wxStaticText( this, wxID_ANY, _("Layers:"), wxDefaultPosition, wxDefaultSize, 0 );
26 bSizerLeft->Add( m_staticTextLayerSelection, 0, wxLEFT|wxRIGHT|wxTOP, 7 );
27
28
29 bSizerLeft->Add( 0, 2, 0, wxEXPAND, 5 );
30
31 m_layers = new wxDataViewListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_NO_HEADER|wxBORDER_SIMPLE );
32 m_layers->SetMinSize( wxSize( 180,-1 ) );
33
34 bSizerLeft->Add( m_layers, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
35
36
37 bMainSizer->Add( bSizerLeft, 0, wxEXPAND, 5 );
38
39
40 bMainSizer->Add( 5, 0, 0, wxEXPAND, 5 );
41
42 m_sizerRight = new wxBoxSizer( wxVERTICAL );
43
44
45 bMainSizer->Add( m_sizerRight, 1, wxEXPAND, 5 );
46
47
48 m_MainBoxSizer->Add( bMainSizer, 1, wxEXPAND|wxLEFT, 5 );
49
50 wxBoxSizer* bSizerbottom;
51 bSizerbottom = new wxBoxSizer( wxHORIZONTAL );
52
53 m_sdbSizer = new wxStdDialogButtonSizer();
54 m_sdbSizerOK = new wxButton( this, wxID_OK );
55 m_sdbSizer->AddButton( m_sdbSizerOK );
56 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
57 m_sdbSizer->AddButton( m_sdbSizerCancel );
58 m_sdbSizer->Realize();
59
60 bSizerbottom->Add( m_sdbSizer, 1, wxALL|wxEXPAND, 5 );
61
62
63 m_MainBoxSizer->Add( bSizerbottom, 0, wxEXPAND|wxLEFT, 5 );
64
65
66 this->SetSizer( m_MainBoxSizer );
67 this->Layout();
68 m_MainBoxSizer->Fit( this );
69
70 // Connect Events
71 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_COPPER_ZONE_BASE::OnClose ) );
72 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_COPPER_ZONE_BASE::OnUpdateUI ) );
73 m_layers->Connect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_COPPER_ZONE_BASE::OnLayerSelection ), NULL, this );
74 m_sdbSizerCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_COPPER_ZONE_BASE::OnButtonCancelClick ), NULL, this );
75}
76
78{
79 // Disconnect Events
80 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_COPPER_ZONE_BASE::OnClose ) );
81 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_COPPER_ZONE_BASE::OnUpdateUI ) );
82 m_layers->Disconnect( wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler( DIALOG_COPPER_ZONE_BASE::OnLayerSelection ), NULL, this );
83 m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_COPPER_ZONE_BASE::OnButtonCancelClick ), NULL, this );
84
85}
DIALOG_COPPER_ZONE_BASE(wxWindow *parent, wxWindowID id=ID_DIALOG_COPPER_ZONE_BASE, const wxString &title=_("Copper Zone Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnClose(wxCloseEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void OnButtonCancelClick(wxCommandEvent &event)
virtual void OnLayerSelection(wxDataViewEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)