25#include <wx/settings.h>
26#include <wx/dcbuffer.h>
76 SetMinSize( GetBestSize() );
169 return aOptions.
All();
177 wxCheckBox* cb =
dynamic_cast<wxCheckBox*
>( aEvent.GetEventObject() );
185 label.Printf(
_(
"Only %s" ), cb->GetLabel().Lower() );
187 menu.Append(
new wxMenuItem( &menu, wxID_ANY, label, wxEmptyString, wxITEM_NORMAL ) );
217 wxCommandEvent
dummy;
275 int step = --( it->second );
296 wxPaintDC dc(
this );
304 wxCheckBox* checkbox = pair.first;
305 int step = pair.second;
310 wxPoint checkboxPos = checkbox->GetPosition();
311 wxSize checkboxSize = checkbox->GetSize();
312 wxRect checkboxRect( checkboxPos, checkboxSize );
315 wxColour highlight = wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT );
322 wxColour overlayColor( blend.Red(), blend.Green(), blend.Blue(), 128 );
323 dc.SetBrush( wxBrush( overlayColor ) );
324 dc.SetPen( wxPen( overlayColor ) );
325 dc.DrawRectangle( checkboxRect );
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)
wxCheckBox * m_cbKeepouts
wxCheckBox * m_cbFootprints
wxCheckBox * m_cbLockedItems
wxCheckBox * m_cbOtherItems
wxCheckBox * m_cbGridItems
wxCheckBox * m_cbGraphics
wxCheckBox * m_cbDimensions
PCB_BASE_EDIT_FRAME * m_frame
void onPopupSelection(wxCommandEvent &aEvent)
std::map< wxCheckBox *, int > m_flashCounters
void flashCheckbox(wxCheckBox *aBox)
PCB_SELECTION_TOOL * m_tool
bool setFilterFromCheckboxes(PCB_SELECTION_FILTER_OPTIONS &aOptions)
wxCheckBox * m_onlyCheckbox
PANEL_SELECTION_FILTER(wxWindow *aParent)
void OnFlashEvent(PCB_SELECTION_FILTER_EVENT &aEvent)
void SetCheckboxesFromFilter(PCB_SELECTION_FILTER_OPTIONS &aOptions)
void onFlashTimer(wxTimerEvent &aEvent)
void OnLanguageChanged(wxCommandEvent &aEvent)
void OnFilterChanged(wxCommandEvent &aEvent) override
~PANEL_SELECTION_FILTER()
void onRightClick(wxMouseEvent &aEvent)
void onPanelPaint(wxPaintEvent &aEvent)
Common, abstract interface for edit frames.
PCB_SELECTION_FILTER_OPTIONS m_options
void SetBorders(bool aLeft, bool aRight, bool aTop, bool aBottom)
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
wxDEFINE_EVENT(EVT_PCB_SELECTION_FILTER_FLASH, PCB_SELECTION_FILTER_EVENT)
std::vector< FAB_LAYER_COLOR > dummy
This file contains data structures that are saved in the project file or project local settings file ...
bool otherItems
Anything not fitting one of the above categories.
bool vias
Vias (all types>
bool gridItems
Grid Items.
bool keepouts
Keepout zones.
bool graphics
Graphic lines, shapes, polygons.
bool footprints
Allow selecting entire footprints.
bool text
Text (free or attached to a footprint)
bool lockedItems
Allow selecting locked items.
bool tracks
Copper tracks.
bool dimensions
Dimension items.