KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_via_stacks_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
8#include "widgets/wx_grid.h"
9
11
13
14PANEL_SETUP_VIA_STACKS_BASE::PANEL_SETUP_VIA_STACKS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
19 m_grid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
20
21 // Grid
22 m_grid->CreateGrid( 0, 0 );
23 m_grid->EnableEditing( true );
24 m_grid->EnableGridLines( true );
25 m_grid->EnableDragGridSize( false );
26 m_grid->SetMargins( 0, 0 );
27
28 // Columns
29 m_grid->EnableDragColMove( false );
30 m_grid->EnableDragColSize( true );
31 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
32
33 // Rows
34 m_grid->EnableDragRowSize( true );
35 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
36
37 // Label Appearance
38
39 // Cell Defaults
40 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
41 bMainSizer->Add( m_grid, 1, wxALL|wxEXPAND, 5 );
42
43 wxBoxSizer* bButtonSizer;
44 bButtonSizer = new wxBoxSizer( wxHORIZONTAL );
45
46
47 bButtonSizer->Add( 0, 0, 1, wxEXPAND, 5 );
48
49 m_addButton = new wxButton( this, wxID_ANY, _("Add..."), wxDefaultPosition, wxDefaultSize, 0 );
50 bButtonSizer->Add( m_addButton, 0, wxALL, 5 );
51
52 m_editButton = new wxButton( this, wxID_ANY, _("Edit..."), wxDefaultPosition, wxDefaultSize, 0 );
53 bButtonSizer->Add( m_editButton, 0, wxALL, 5 );
54
55 m_removeButton = new wxButton( this, wxID_ANY, _("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
56 bButtonSizer->Add( m_removeButton, 0, wxALL, 5 );
57
58
59 bMainSizer->Add( bButtonSizer, 0, wxEXPAND, 5 );
60
61
62 this->SetSizer( bMainSizer );
63 this->Layout();
64}
65
const char * name
PANEL_SETUP_VIA_STACKS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(500, 300), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
#define _(s)