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
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( 800,-1 ), wxDefaultSize );
15
16 m_GeneralBoxSizer = new wxBoxSizer( wxVERTICAL );
17
18 m_GeneralBoxSizer->SetMinSize( wxSize( 800,300 ) );
19 wxFlexGridSizer* fgSizer3;
20 fgSizer3 = new wxFlexGridSizer( 0, 1, 0, 0 );
21 fgSizer3->AddGrowableCol( 0 );
22 fgSizer3->AddGrowableRow( 2 );
23 fgSizer3->SetFlexibleDirection( wxBOTH );
24 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
25
26 fgSizer3->SetMinSize( wxSize( 800,300 ) );
27 m_staticText4 = new wxStaticText( this, wxID_ANY, _("Target areas:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticText4->Wrap( -1 );
29 fgSizer3->Add( m_staticText4, 0, wxALL, 5 );
30
31 m_raGrid = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
32
33 // Grid
34 m_raGrid->CreateGrid( 1, 3 );
35 m_raGrid->EnableEditing( false );
36 m_raGrid->EnableGridLines( true );
37 m_raGrid->EnableDragGridSize( false );
38 m_raGrid->SetMargins( 0, 0 );
39
40 // Columns
41 m_raGrid->AutoSizeColumns();
42 m_raGrid->EnableDragColMove( true );
43 m_raGrid->EnableDragColSize( true );
44 m_raGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
45
46 // Rows
47 m_raGrid->AutoSizeRows();
48 m_raGrid->EnableDragRowSize( true );
49 m_raGrid->SetRowLabelSize( wxGRID_AUTOSIZE );
50 m_raGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
51
52 // Label Appearance
53
54 // Cell Defaults
55 m_raGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
56 fgSizer3->Add( m_raGrid, 1, wxALL|wxEXPAND, 5 );
57
58 wxBoxSizer* bSizer4;
59 bSizer4 = new wxBoxSizer( wxHORIZONTAL );
60
61 m_staticText1 = new wxStaticText( this, wxID_ANY, _("Reference Rule Area:"), wxDefaultPosition, wxDefaultSize, 0 );
62 m_staticText1->Wrap( -1 );
63 bSizer4->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
64
65 m_refRAName = new wxStaticText( this, wxID_ANY, _("MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
66 m_refRAName->Wrap( -1 );
67 m_refRAName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
68
69 bSizer4->Add( m_refRAName, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
70
71
72 fgSizer3->Add( bSizer4, 1, wxEXPAND, 5 );
73
74 wxBoxSizer* bSizer13;
75 bSizer13 = new wxBoxSizer( wxVERTICAL );
76
77 m_cbCopyPlacement = new wxCheckBox( this, wxID_ANY, _("Copy footprint placement"), wxDefaultPosition, wxDefaultSize, 0 );
78 bSizer13->Add( m_cbCopyPlacement, 0, wxALL, 5 );
79
80 m_cbCopyRouting = new wxCheckBox( this, wxID_ANY, _("Copy routing"), wxDefaultPosition, wxDefaultSize, 0 );
81 bSizer13->Add( m_cbCopyRouting, 0, wxALL, 5 );
82
83 m_cbCopyOtherItems = new wxCheckBox( this, wxID_ANY, _("Copy other items"), wxDefaultPosition, wxDefaultSize, 0 );
84 m_cbCopyOtherItems->SetToolTip( _("Copy text, shapes, zones, and other items inside the source rule area") );
85
86 bSizer13->Add( m_cbCopyOtherItems, 0, wxALL, 5 );
87
88 m_cbGroupItems = new wxCheckBox( this, wxID_ANY, _("Group components with their placement rule areas"), wxDefaultPosition, wxDefaultSize, 0 );
89 bSizer13->Add( m_cbGroupItems, 0, wxALL, 5 );
90
91 m_cbIncludeLockedComponents = new wxCheckBox( this, wxID_ANY, _("Include locked components"), wxDefaultPosition, wxDefaultSize, 0 );
92 bSizer13->Add( m_cbIncludeLockedComponents, 0, wxALL, 5 );
93
94 m_cbIncludeOffRAComponents = new wxCheckBox( this, wxID_ANY, _("Include components outside the target area"), wxDefaultPosition, wxDefaultSize, 0 );
95 bSizer13->Add( m_cbIncludeOffRAComponents, 0, wxALL, 5 );
96
97
98 fgSizer3->Add( bSizer13, 1, wxEXPAND, 5 );
99
100 wxBoxSizer* bottomButtonsSizer;
101 bottomButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
102
103
104 bottomButtonsSizer->Add( 10, 0, 0, 0, 5 );
105
106 m_sdbSizerStdButtons = new wxStdDialogButtonSizer();
107 m_sdbSizerStdButtonsOK = new wxButton( this, wxID_OK );
109 m_sdbSizerStdButtonsCancel = new wxButton( this, wxID_CANCEL );
111 m_sdbSizerStdButtons->Realize();
112
113 bottomButtonsSizer->Add( m_sdbSizerStdButtons, 1, wxEXPAND|wxALL, 5 );
114
115
116 fgSizer3->Add( bottomButtonsSizer, 0, wxEXPAND|wxLEFT, 5 );
117
118
119 m_GeneralBoxSizer->Add( fgSizer3, 1, wxEXPAND, 5 );
120
121
122 this->SetSizer( m_GeneralBoxSizer );
123 this->Layout();
124 m_GeneralBoxSizer->Fit( this );
125
126 // Connect Events
127 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnInitDlg ) );
128 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnUpdateUI ) );
129}
130
132{
133 // Disconnect Events
134 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnInitDlg ) );
135 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnUpdateUI ) );
136
137}
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:88
#define _(s)