12PANEL_SELECTION_FILTER_BASE::PANEL_SELECTION_FILTER_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) :
WX_PANEL( parent, id, pos, size, style,
name )
14 wxGridBagSizer* gbSizer1;
15 gbSizer1 =
new wxGridBagSizer( 0, 0 );
16 gbSizer1->SetFlexibleDirection( wxBOTH );
17 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
19 m_cbAllItems =
new wxCheckBox(
this, wxID_ANY,
_(
"All items"), wxDefaultPosition, wxDefaultSize, 0 );
21 gbSizer1->Add(
m_cbAllItems, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxTOP, 5 );
23 m_cbLockedItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Locked items"), wxDefaultPosition, wxDefaultSize, 0 );
27 gbSizer1->Add(
m_cbLockedItems, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT|wxTOP, 5 );
29 m_cbFootprints =
new wxCheckBox(
this, wxID_ANY,
_(
"Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
31 gbSizer1->Add(
m_cbFootprints, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
33 m_cbText =
new wxCheckBox(
this, wxID_ANY,
_(
"Text"), wxDefaultPosition, wxDefaultSize, 0 );
35 gbSizer1->Add(
m_cbText, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
37 m_cbTracks =
new wxCheckBox(
this, wxID_ANY,
_(
"Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
39 gbSizer1->Add(
m_cbTracks, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
41 m_cbVias =
new wxCheckBox(
this, wxID_ANY,
_(
"Vias"), wxDefaultPosition, wxDefaultSize, 0 );
43 gbSizer1->Add(
m_cbVias, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
45 m_cbPads =
new wxCheckBox(
this, wxID_ANY,
_(
"Pads"), wxDefaultPosition, wxDefaultSize, 0 );
47 gbSizer1->Add(
m_cbPads, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
49 m_cbGraphics =
new wxCheckBox(
this, wxID_ANY,
_(
"Graphics"), wxDefaultPosition, wxDefaultSize, 0 );
51 gbSizer1->Add(
m_cbGraphics, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
53 m_cbZones =
new wxCheckBox(
this, wxID_ANY,
_(
"Zones"), wxDefaultPosition, wxDefaultSize, 0 );
55 gbSizer1->Add(
m_cbZones, wxGBPosition( 4, 0 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
57 m_cbKeepouts =
new wxCheckBox(
this, wxID_ANY,
_(
"Rule Areas"), wxDefaultPosition, wxDefaultSize, 0 );
59 gbSizer1->Add(
m_cbKeepouts, wxGBPosition( 4, 1 ), wxGBSpan( 1, 1 ), wxLEFT|wxRIGHT, 5 );
61 m_cbDimensions =
new wxCheckBox(
this, wxID_ANY,
_(
"Dimensions"), wxDefaultPosition, wxDefaultSize, 0 );
63 gbSizer1->Add(
m_cbDimensions, wxGBPosition( 5, 0 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxLEFT|wxRIGHT, 5 );
65 m_cbOtherItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Other items"), wxDefaultPosition, wxDefaultSize, 0 );
67 gbSizer1->Add(
m_cbOtherItems, wxGBPosition( 5, 1 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxLEFT|wxRIGHT, 5 );
70 this->SetSizer( gbSizer1 );
72 gbSizer1->Fit(
this );
wxCheckBox * m_cbAllItems
PANEL_SELECTION_FILTER_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)
virtual void OnFilterChanged(wxCommandEvent &event)
~PANEL_SELECTION_FILTER_BASE()
wxCheckBox * m_cbKeepouts
wxCheckBox * m_cbFootprints
wxCheckBox * m_cbLockedItems
wxCheckBox * m_cbOtherItems
wxCheckBox * m_cbGraphics
wxCheckBox * m_cbDimensions