30 m_onlyCheckbox( nullptr )
130 return aOptions.
All();
138 wxCheckBox* cb =
dynamic_cast<wxCheckBox*
>( aEvent.GetEventObject() );
146 label.Printf(
_(
"Only %s" ), cb->GetLabel().Lower() );
148 menu.Append(
new wxMenuItem( &menu, wxID_ANY, label, wxEmptyString, wxITEM_NORMAL ) );
176 wxCommandEvent
dummy;
Class PANEL_SELECTION_FILTER_BASE.
wxCheckBox * m_cbAllItems
wxCheckBox * m_cbKeepouts
wxCheckBox * m_cbFootprints
wxCheckBox * m_cbLockedItems
wxCheckBox * m_cbOtherItems
wxCheckBox * m_cbGraphics
wxCheckBox * m_cbDimensions
PCB_BASE_EDIT_FRAME * m_frame
void onPopupSelection(wxCommandEvent &aEvent)
PCB_SELECTION_TOOL * m_tool
void SetCheckboxesFromFilter(SELECTION_FILTER_OPTIONS &aOptions)
wxCheckBox * m_onlyCheckbox
PANEL_SELECTION_FILTER(wxWindow *aParent)
void OnFilterChanged(wxCommandEvent &aEvent) override
void onRightClick(wxMouseEvent &aEvent)
bool setFilterFromCheckboxes(SELECTION_FILTER_OPTIONS &aOptions)
Common, abstract interface for edit frames.
void SetBorders(bool aLeft, bool aRight, bool aTop, bool aBottom)
wxFont GetInfoFont(wxWindow *aWindow)
std::vector< FAB_LAYER_COLOR > dummy
This file contains data structures that are saved in the project file or project local settings file ...
bool graphics
Graphic lines, shapes, polygons.
bool text
Text (free or attached to a footprint)
bool vias
Vias (all types>
bool lockedItems
Allow selecting locked items.
bool tracks
Copper tracks.
bool footprints
Allow selecting entire footprints.
bool keepouts
Keepout zones.
bool dimensions
Dimension items.
bool otherItems
Anything not fitting one of the above categories.