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