KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_footprint_associations_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
8#include "widgets/wx_grid.h"
9
11
13
14DIALOG_FOOTPRINT_ASSOCIATIONS_BASE::DIALOG_FOOTPRINT_ASSOCIATIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bMainBoxSizer;
19 bMainBoxSizer = new wxBoxSizer( wxVERTICAL );
20
21 m_libraryAssociationLabel = new wxStaticText( this, wxID_ANY, _("Library Association"), wxDefaultPosition, wxDefaultSize, 0 );
22 m_libraryAssociationLabel->Wrap( -1 );
23 bMainBoxSizer->Add( m_libraryAssociationLabel, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
24
25
26 bMainBoxSizer->Add( 0, 5, 0, wxEXPAND, 5 );
27
28 m_gridLibrary = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
29
30 // Grid
31 m_gridLibrary->CreateGrid( 2, 3 );
32 m_gridLibrary->EnableEditing( false );
33 m_gridLibrary->EnableGridLines( false );
34 m_gridLibrary->EnableDragGridSize( false );
35 m_gridLibrary->SetMargins( 0, 0 );
36
37 // Columns
38 m_gridLibrary->SetColSize( 0, 100 );
39 m_gridLibrary->SetColSize( 1, 280 );
40 m_gridLibrary->SetColSize( 2, 360 );
41 m_gridLibrary->EnableDragColMove( false );
42 m_gridLibrary->EnableDragColSize( true );
44 m_gridLibrary->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
45
46 // Rows
47 m_gridLibrary->EnableDragRowSize( false );
48 m_gridLibrary->SetRowLabelSize( 0 );
49 m_gridLibrary->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
50
51 // Label Appearance
52
53 // Cell Defaults
54 m_gridLibrary->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
55 m_gridLibrary->SetMaxSize( wxSize( -1,300 ) );
56
57 bMainBoxSizer->Add( m_gridLibrary, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 10 );
58
59
60 bMainBoxSizer->Add( 0, 5, 1, wxEXPAND, 5 );
61
62 m_symbolAssociationLabel = new wxStaticText( this, wxID_ANY, _("Schematic Association"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_symbolAssociationLabel->Wrap( -1 );
64 bMainBoxSizer->Add( m_symbolAssociationLabel, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
65
66
67 bMainBoxSizer->Add( 0, 5, 0, wxEXPAND, 5 );
68
69 m_gridSymbol = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
70
71 // Grid
72 m_gridSymbol->CreateGrid( 1, 3 );
73 m_gridSymbol->EnableEditing( false );
74 m_gridSymbol->EnableGridLines( false );
75 m_gridSymbol->EnableDragGridSize( false );
76 m_gridSymbol->SetMargins( 0, 0 );
77
78 // Columns
79 m_gridSymbol->SetColSize( 0, 100 );
80 m_gridSymbol->SetColSize( 1, 280 );
81 m_gridSymbol->SetColSize( 2, 360 );
82 m_gridSymbol->EnableDragColMove( false );
83 m_gridSymbol->EnableDragColSize( true );
85 m_gridSymbol->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
86
87 // Rows
88 m_gridSymbol->EnableDragRowSize( false );
89 m_gridSymbol->SetRowLabelSize( 0 );
90 m_gridSymbol->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
91
92 // Label Appearance
93
94 // Cell Defaults
95 m_gridSymbol->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
96 bMainBoxSizer->Add( m_gridSymbol, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 10 );
97
98 wxBoxSizer* bSizerBottom;
99 bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
100
101 m_sdbControlSizer = new wxStdDialogButtonSizer();
102 m_sdbControlSizerOK = new wxButton( this, wxID_OK );
104 m_sdbControlSizer->Realize();
105
106 bSizerBottom->Add( m_sdbControlSizer, 1, wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
107
108
109 bMainBoxSizer->Add( bSizerBottom, 0, wxEXPAND, 5 );
110
111
112 this->SetSizer( bMainBoxSizer );
113 this->Layout();
114 bMainBoxSizer->Fit( this );
115
116 this->Centre( wxBOTH );
117
118 // Connect Events
119 this->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_FOOTPRINT_ASSOCIATIONS_BASE::windowSize ) );
120 m_gridSymbol->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_FOOTPRINT_ASSOCIATIONS_BASE::drillGridSize ), NULL, this );
121}
122
124{
125 // Disconnect Events
126 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_FOOTPRINT_ASSOCIATIONS_BASE::windowSize ) );
127 m_gridSymbol->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_FOOTPRINT_ASSOCIATIONS_BASE::drillGridSize ), NULL, this );
128
129}
DIALOG_FOOTPRINT_ASSOCIATIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Footprint Associations"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:84
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...
Definition: wx_grid.cpp:194
#define _(s)