KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_layers_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a-dirty)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_SETUP_LAYERS_BASE::PANEL_SETUP_LAYERS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bMainSizer;
15 bMainSizer = new wxBoxSizer( wxVERTICAL );
16
17 wxBoxSizer* bSizerMargins;
18 bSizerMargins = new wxBoxSizer( wxVERTICAL );
19
20 wxBoxSizer* bSizerLayerCnt;
21 bSizerLayerCnt = new wxBoxSizer( wxHORIZONTAL );
22
23
24 bSizerLayerCnt->Add( 0, 0, 1, wxEXPAND, 5 );
25
26 m_addUserDefinedLayerButton = new wxButton( this, wxID_ANY, _("Add User Defined Layer..."), wxDefaultPosition, wxDefaultSize, 0 );
27 bSizerLayerCnt->Add( m_addUserDefinedLayerButton, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
28
29
30 bSizerMargins->Add( bSizerLayerCnt, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
31
32 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
33 bSizerMargins->Add( m_staticline2, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
34
35 m_LayersListPanel = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxTAB_TRAVERSAL|wxVSCROLL );
36 m_LayersListPanel->SetScrollRate( 0, 5 );
37 m_LayersSizer = new wxFlexGridSizer( 0, 3, 2, 8 );
38 m_LayersSizer->AddGrowableCol( 1 );
39 m_LayersSizer->AddGrowableCol( 2 );
40 m_LayersSizer->SetFlexibleDirection( wxHORIZONTAL );
41 m_LayersSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
42
43
45 m_LayersListPanel->Layout();
47 bSizerMargins->Add( m_LayersListPanel, 1, wxEXPAND|wxTOP, 5 );
48
49
50 bMainSizer->Add( bSizerMargins, 1, wxEXPAND, 5 );
51
52
53 this->SetSizer( bMainSizer );
54 this->Layout();
55
56 // Connect Events
57 m_addUserDefinedLayerButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::addUserDefinedLayer ), NULL, this );
58}
59
61{
62 // Disconnect Events
63 m_addUserDefinedLayerButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SETUP_LAYERS_BASE::addUserDefinedLayer ), NULL, this );
64
65}
const char * name
Definition: DXF_plotter.cpp:59
PANEL_SETUP_LAYERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(589, 704), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
virtual void addUserDefinedLayer(wxCommandEvent &event)
wxScrolledWindow * m_LayersListPanel
#define _(s)