26#include <wx/settings.h>
27#include <wx/dcbuffer.h>
173 return aOptions.
All();
181 wxCheckBox* cb =
dynamic_cast<wxCheckBox*
>( aEvent.GetEventObject() );
189 label.Printf(
_(
"Only %s" ), cb->GetLabel().Lower() );
191 menu.Append(
new wxMenuItem( &menu, wxID_ANY, label, wxEmptyString, wxITEM_NORMAL ) );
218 wxCommandEvent
dummy;
273 int step = --( it->second );
294 wxPaintDC dc(
this );
302 wxCheckBox* checkbox = pair.first;
303 int step = pair.second;
308 wxPoint checkboxPos = checkbox->GetPosition();
309 wxSize checkboxSize = checkbox->GetSize();
310 wxRect checkboxRect( checkboxPos, checkboxSize );
313 wxColour highlight = wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT );
320 wxColour overlayColor( blend.Red(), blend.Green(), blend.Blue(), 128 );
321 dc.SetBrush( wxBrush( overlayColor ) );
322 dc.SetPen( wxPen( overlayColor ) );
323 dc.DrawRectangle( checkboxRect );
wxCheckBox * m_cbGraphics
wxCheckBox * m_cbLockedItems
PANEL_SCH_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_cbAllItems
wxCheckBox * m_cbRuleAreas
wxGridBagSizer * m_gridSizer
wxCheckBox * m_cbOtherItems
bool setFilterFromCheckboxes(SCH_SELECTION_FILTER_OPTIONS &aOptions)
void OnFlashEvent(SCH_SELECTION_FILTER_EVENT &aEvent)
wxCheckBox * m_onlyCheckbox
void OnLanguageChanged(wxCommandEvent &aEvent)
~PANEL_SCH_SELECTION_FILTER()
void SetCheckboxesFromFilter(SCH_SELECTION_FILTER_OPTIONS &aOptions)
void onRightClick(wxMouseEvent &aEvent)
void onPanelPaint(wxPaintEvent &aEvent)
void onFlashTimer(wxTimerEvent &aEvent)
void OnFilterChanged(wxCommandEvent &aEvent) override
std::map< wxCheckBox *, int > m_flashCounters
void flashCheckbox(wxCheckBox *aBox)
PANEL_SCH_SELECTION_FILTER(wxWindow *aParent)
void onPopupSelection(wxCommandEvent &aEvent)
SCH_SELECTION_TOOL * m_tool
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
SCH_SELECTION_FILTER_OPTIONS m_options
void SetBorders(bool aLeft, bool aRight, bool aTop, bool aBottom)
@ FRAME_SCH_SYMBOL_EDITOR
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
wxDEFINE_EVENT(EVT_SCH_SELECTION_FILTER_FLASH, SCH_SELECTION_FILTER_EVENT)
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
std::vector< FAB_LAYER_COLOR > dummy
bool text
Text and fields.
bool symbols
Allow selecting symbols and sheet symbols.
bool labels
Net and bus labels.
bool pins
Symbol and sheet pins.
bool graphics
Graphic lines, shapes, polygons.
bool lockedItems
Allow selecting locked items.
bool images
Bitmap/vector images.
bool otherItems
Anything not fitting one of the above categories.
bool ruleAreas
Rule areas.
bool wires
Net and bus wires and junctions.