15PANEL_SETUP_TRACKS_AND_VIAS_BASE::PANEL_SETUP_TRACKS_AND_VIAS_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* bMainSizer;
18 bMainSizer =
new wxBoxSizer( wxHORIZONTAL );
20 wxBoxSizer* bSizerTracks;
21 bSizerTracks =
new wxBoxSizer( wxVERTICAL );
23 wxStaticText* stTracksLabel;
24 stTracksLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Tracks:"), wxDefaultPosition, wxDefaultSize, 0 );
25 stTracksLabel->Wrap( -1 );
26 bSizerTracks->Add( stTracksLabel, 0, wxALL, 5 );
64 bSizer3 =
new wxBoxSizer( wxHORIZONTAL );
73 bSizer3->Add( 20, 0, 0, wxEXPAND, 5 );
79 bSizerTracks->Add( bSizer3, 0, wxEXPAND|wxTOP, 2 );
82 bMainSizer->Add( bSizerTracks, 1, wxEXPAND|wxRIGHT, 5 );
84 wxBoxSizer* bSizerVias;
85 bSizerVias =
new wxBoxSizer( wxVERTICAL );
87 wxStaticText* stViasLabel;
88 stViasLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Vias:"), wxDefaultPosition, wxDefaultSize, 0 );
89 stViasLabel->Wrap( -1 );
90 bSizerVias->Add( stViasLabel, 0, wxALL, 5 );
107 m_viaSizesGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
120 m_viaSizesGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
125 m_viaSizesGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
126 bSizerVias->Add(
m_viaSizesGrid, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
129 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
138 bSizer4->Add( 20, 0, 0, wxEXPAND, 5 );
144 bSizerVias->Add( bSizer4, 0, wxEXPAND|wxTOP, 2 );
147 bMainSizer->Add( bSizerVias, 2, wxEXPAND|wxRIGHT, 5 );
149 wxBoxSizer* bSizerDiffPairs;
150 bSizerDiffPairs =
new wxBoxSizer( wxVERTICAL );
152 wxStaticText* stDiffPairsLabel;
153 stDiffPairsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Differential pairs:"), wxDefaultPosition, wxDefaultSize, 0 );
154 stDiffPairsLabel->Wrap( -1 );
155 bSizerDiffPairs->Add( stDiffPairsLabel, 0, wxALL, 5 );
173 m_diffPairsGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
186 m_diffPairsGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
191 m_diffPairsGrid->SetDefaultCellBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW ) );
192 m_diffPairsGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
193 bSizerDiffPairs->Add(
m_diffPairsGrid, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
196 bSizer5 =
new wxBoxSizer( wxHORIZONTAL );
205 bSizer5->Add( 20, 0, 0, wxEXPAND, 5 );
211 bSizerDiffPairs->Add( bSizer5, 0, wxEXPAND|wxTOP, 2 );
214 bMainSizer->Add( bSizerDiffPairs, 3, wxEXPAND, 5 );
217 this->SetSizer( bMainSizer );
219 bMainSizer->Fit(
this );
virtual void OnRemoveViaSizesClick(wxCommandEvent &event)
virtual void OnAddDiffPairsClick(wxCommandEvent &event)
virtual void OnAddTrackWidthsClick(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_trackWidthsAddButton
WX_GRID * m_trackWidthsGrid
~PANEL_SETUP_TRACKS_AND_VIAS_BASE()
virtual void OnSortTrackWidthsClick(wxCommandEvent &event)
virtual void OnSortViaSizesClick(wxCommandEvent &event)
WX_GRID * m_diffPairsGrid
STD_BITMAP_BUTTON * m_diffPairsAddButton
PANEL_SETUP_TRACKS_AND_VIAS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
STD_BITMAP_BUTTON * m_trackWidthsSortButton
virtual void OnRemoveDiffPairsClick(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_trackWidthsRemoveButton
STD_BITMAP_BUTTON * m_viaSizesRemoveButton
STD_BITMAP_BUTTON * m_diffPairsSortButton
STD_BITMAP_BUTTON * m_viaSizesAddButton
STD_BITMAP_BUTTON * m_viaSizesSortButton
virtual void OnSortDiffPairsClick(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_diffPairsRemoveButton
virtual void OnAddViaSizesClick(wxCommandEvent &event)
virtual void OnRemoveTrackWidthsClick(wxCommandEvent &event)
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...