KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_multichannel_repeat_layout_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::DIALOG_MULTICHANNEL_REPEAT_LAYOUT_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( wxSize( -1,-1 ), wxDefaultSize );
15
16 wxFlexGridSizer* fgSizer3;
17 fgSizer3 = new wxFlexGridSizer( 0, 1, 0, 0 );
18 fgSizer3->AddGrowableCol( 0 );
19 fgSizer3->AddGrowableRow( 1 );
20 fgSizer3->SetFlexibleDirection( wxBOTH );
21 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
22
23 fgSizer3->SetMinSize( wxSize( 600,-1 ) );
24 m_staticText4 = new wxStaticText( this, wxID_ANY, _("Target areas:"), wxDefaultPosition, wxDefaultSize, 0 );
25 m_staticText4->Wrap( -1 );
26 fgSizer3->Add( m_staticText4, 0, wxALL, 5 );
27
28 m_raGrid = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxVSCROLL );
29
30 // Grid
31 m_raGrid->CreateGrid( 1, 3 );
32 m_raGrid->EnableEditing( false );
33 m_raGrid->EnableGridLines( true );
34 m_raGrid->EnableDragGridSize( false );
35 m_raGrid->SetMargins( 0, 0 );
36
37 // Columns
38 m_raGrid->AutoSizeColumns();
39 m_raGrid->EnableDragColMove( false );
40 m_raGrid->EnableDragColSize( true );
41 m_raGrid->SetColLabelSize( wxGRID_AUTOSIZE );
42 m_raGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
43
44 // Rows
45 m_raGrid->AutoSizeRows();
46 m_raGrid->EnableDragRowSize( true );
47 m_raGrid->SetRowLabelSize( wxGRID_AUTOSIZE );
48 m_raGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
49
50 // Label Appearance
51
52 // Cell Defaults
53 m_raGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
54 fgSizer3->Add( m_raGrid, 1, wxALL|wxEXPAND, 5 );
55
56 wxBoxSizer* bSizer4;
57 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
58
59 m_staticText1 = new wxStaticText( this, wxID_ANY, _("Reference rule area:"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_staticText1->Wrap( -1 );
61 bSizer4->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
62
63 m_refRAName = new wxStaticText( this, wxID_ANY, _("MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_refRAName->Wrap( -1 );
65 m_refRAName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
66
67 bSizer4->Add( m_refRAName, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
68
69
70 fgSizer3->Add( bSizer4, 1, wxEXPAND, 5 );
71
72 wxBoxSizer* bSizer41;
73 bSizer41 = new wxBoxSizer( wxHORIZONTAL );
74
75 m_staticText2 = new wxStaticText( this, wxID_ANY, _("Anchor footprint:"), wxDefaultPosition, wxDefaultSize, 0 );
76 m_staticText2->Wrap( -1 );
77 bSizer41->Add( m_staticText2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
78
79 wxArrayString m_refAnchorFpChoices;
80 m_refAnchorFp = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_refAnchorFpChoices, 0 );
81 m_refAnchorFp->SetSelection( 0 );
82 m_refAnchorFp->SetToolTip( _("Optional, use for precise and/or rotated placement.\nSelect reference rule area footprint, place corresponding\ntarget rule area footprint(s).") );
83 m_refAnchorFp->SetMaxSize( wxSize( -1,400 ) );
84
85 bSizer41->Add( m_refAnchorFp, 0, wxALL, 5 );
86
87
88 fgSizer3->Add( bSizer41, 1, wxEXPAND, 5 );
89
90 wxBoxSizer* bSizer13;
91 bSizer13 = new wxBoxSizer( wxVERTICAL );
92
93 m_cbCopyPlacement = new wxCheckBox( this, wxID_ANY, _("Copy footprint placement"), wxDefaultPosition, wxDefaultSize, 0 );
94 bSizer13->Add( m_cbCopyPlacement, 0, wxALL, 5 );
95
96 wxBoxSizer* bSizer5;
97 bSizer5 = new wxBoxSizer( wxHORIZONTAL );
98
99 m_cbCopyRouting = new wxCheckBox( this, wxID_ANY, _("Copy routing"), wxDefaultPosition, wxDefaultSize, 0 );
100 bSizer5->Add( m_cbCopyRouting, 0, wxALL, 5 );
101
102 m_cbCopyOnlyConnectedRouting = new wxCheckBox( this, wxID_ANY, _("Restrict to routing connected within the area"), wxDefaultPosition, wxDefaultSize, 0 );
103 m_cbCopyOnlyConnectedRouting->SetValue(true);
104 m_cbCopyOnlyConnectedRouting->SetToolTip( _("Can be useful if unrelated tracks pass through the area") );
105
106 bSizer5->Add( m_cbCopyOnlyConnectedRouting, 0, wxALL, 5 );
107
108
109 bSizer13->Add( bSizer5, 1, wxEXPAND, 5 );
110
111 m_cbCopyOtherItems = new wxCheckBox( this, wxID_ANY, _("Copy other items"), wxDefaultPosition, wxDefaultSize, 0 );
112 m_cbCopyOtherItems->SetToolTip( _("Copy text, shapes, zones, and other items inside the source rule area") );
113
114 bSizer13->Add( m_cbCopyOtherItems, 0, wxALL, 5 );
115
116 m_cbIncludeOffRAComponents = new wxCheckBox( this, wxID_ANY, _("Include footprints outside the reference rule area"), wxDefaultPosition, wxDefaultSize, 0 );
118
119 bSizer13->Add( m_cbIncludeOffRAComponents, 0, wxALL, 5 );
120
121 m_cbGroupItems = new wxCheckBox( this, wxID_ANY, _("Group items with their target rule areas"), wxDefaultPosition, wxDefaultSize, 0 );
122 bSizer13->Add( m_cbGroupItems, 0, wxALL, 5 );
123
124 m_cbIncludeLockedComponents = new wxCheckBox( this, wxID_ANY, _("Include locked items"), wxDefaultPosition, wxDefaultSize, 0 );
125 m_cbIncludeLockedComponents->SetToolTip( _("Copy from reference area + delete / update in target area if included") );
126
127 bSizer13->Add( m_cbIncludeLockedComponents, 0, wxALL, 5 );
128
129
130 fgSizer3->Add( bSizer13, 1, wxEXPAND, 5 );
131
132 wxBoxSizer* bottomButtonsSizer;
133 bottomButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
134
135
136 bottomButtonsSizer->Add( 10, 0, 0, 0, 5 );
137
138 m_sdbSizerStdButtons = new wxStdDialogButtonSizer();
139 m_sdbSizerStdButtonsOK = new wxButton( this, wxID_OK );
141 m_sdbSizerStdButtonsCancel = new wxButton( this, wxID_CANCEL );
143 m_sdbSizerStdButtons->Realize();
144
145 bottomButtonsSizer->Add( m_sdbSizerStdButtons, 1, wxEXPAND|wxALL, 5 );
146
147
148 fgSizer3->Add( bottomButtonsSizer, 0, wxEXPAND|wxLEFT, 5 );
149
150
151 this->SetSizer( fgSizer3 );
152 this->Layout();
153 fgSizer3->Fit( this );
154
155 // Connect Events
156 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnInitDlg ) );
157 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnUpdateUI ) );
158}
159
161{
162 // Disconnect Events
163 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnInitDlg ) );
164 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnUpdateUI ) );
165
166}
DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Repeat Multichannel Layout"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), 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:52
#define _(s)