15PANEL_SETUP_NET_CHAINS_BASE::PANEL_SETUP_NET_CHAINS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
17 wxBoxSizer* outerSizer;
18 outerSizer =
new wxBoxSizer( wxVERTICAL );
20 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
22 wxBoxSizer* bChainsTab;
23 bChainsTab =
new wxBoxSizer( wxVERTICAL );
30 bChainsTab->Add( 0, 3, 0, wxEXPAND, 5 );
38 wxBoxSizer* bGridSizer;
39 bGridSizer =
new wxBoxSizer( wxVERTICAL );
64 m_chainsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
69 m_chainsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
74 m_chainsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
84 wxBoxSizer* bMembersSizer;
85 bMembersSizer =
new wxBoxSizer( wxVERTICAL );
101 wxBoxSizer* bChainsButtons;
102 bChainsButtons =
new wxBoxSizer( wxHORIZONTAL );
110 bChainsTab->Add( bChainsButtons, 0, wxEXPAND|wxTOP, 3 );
118 wxBoxSizer* bClassesTab;
119 bClassesTab =
new wxBoxSizer( wxVERTICAL );
121 m_classesHeader =
new wxStaticText(
m_classesTab, wxID_ANY,
_(
"Group net chains under a class label so DRC rules can target the whole group via inNetChainClass('name')."), wxDefaultPosition, wxDefaultSize, 0 );
126 bClassesTab->Add( 0, 3, 0, wxEXPAND, 5 );
145 m_classesGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
150 m_classesGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
155 m_classesGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
158 bClassesTab->Add(
m_classesGrid, 1, wxEXPAND|wxLEFT|wxRIGHT, 8 );
160 wxBoxSizer* bClassesButtons;
161 bClassesButtons =
new wxBoxSizer( wxHORIZONTAL );
169 m_renameClassButton->SetToolTip(
_(
"Rename the selected class (updates every chain that uses it)") );
179 bClassesTab->Add( bClassesButtons, 0, wxEXPAND|wxTOP, 3 );
187 outerSizer->Add(
m_notebook, 1, wxEXPAND|wxALL, 5 );
190 this->SetSizer( outerSizer );
192 outerSizer->Fit(
this );