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