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.0.0-0-g0efcecf)
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 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_cbGroupItems = new wxCheckBox( this, wxID_ANY, _("Group components with their placement rule areas"), wxDefaultPosition, wxDefaultSize, 0 );
84 bSizer13->Add( m_cbGroupItems, 0, wxALL, 5 );
85
86 m_cbIncludeLockedComponents = new wxCheckBox( this, wxID_ANY, _("Include locked components"), wxDefaultPosition, wxDefaultSize, 0 );
87 bSizer13->Add( m_cbIncludeLockedComponents, 0, wxALL, 5 );
88
89 m_cbIncludeOffRAComponents = new wxCheckBox( this, wxID_ANY, _("Include components outside the target area"), wxDefaultPosition, wxDefaultSize, 0 );
90 bSizer13->Add( m_cbIncludeOffRAComponents, 0, wxALL, 5 );
91
92
93 fgSizer3->Add( bSizer13, 1, wxEXPAND, 5 );
94
95 wxBoxSizer* bottomButtonsSizer;
96 bottomButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
97
98
99 bottomButtonsSizer->Add( 10, 0, 0, 0, 5 );
100
101 m_sdbSizerStdButtons = new wxStdDialogButtonSizer();
102 m_sdbSizerStdButtonsOK = new wxButton( this, wxID_OK );
104 m_sdbSizerStdButtonsCancel = new wxButton( this, wxID_CANCEL );
106 m_sdbSizerStdButtons->Realize();
107
108 bottomButtonsSizer->Add( m_sdbSizerStdButtons, 1, wxEXPAND|wxALL, 5 );
109
110
111 fgSizer3->Add( bottomButtonsSizer, 0, wxEXPAND|wxLEFT, 5 );
112
113
114 m_GeneralBoxSizer->Add( fgSizer3, 1, wxEXPAND, 5 );
115
116
117 this->SetSizer( m_GeneralBoxSizer );
118 this->Layout();
119 m_GeneralBoxSizer->Fit( this );
120
121 // Connect Events
122 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnInitDlg ) );
123 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnUpdateUI ) );
124}
125
127{
128 // Disconnect Events
129 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnInitDlg ) );
130 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_MULTICHANNEL_REPEAT_LAYOUT_BASE::OnUpdateUI ) );
131
132}
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)