26#include <wx/settings.h>
27#include <wx/dcbuffer.h>
176 return aOptions.
All();
184 wxCheckBox* cb =
dynamic_cast<wxCheckBox*
>( aEvent.GetEventObject() );
192 label.Printf(
_(
"Only %s" ), cb->GetLabel().Lower() );
194 menu.Append(
new wxMenuItem( &menu, wxID_ANY, label, wxEmptyString, wxITEM_NORMAL ) );
221 wxCommandEvent
dummy;
273 wxColour highlight = wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT );
274 wxColour bg = GetBackgroundColour();
286 int step = --( it->second );
290 it->first->SetBackgroundColour( step > 0 ?
flashColour( step ) : wxNullColour );
291 it->first->Refresh();
318 wxPaintDC dc(
this );
326 wxCheckBox* checkbox = pair.first;
327 int step = pair.second;
332 wxPoint checkboxPos = checkbox->GetPosition();
333 wxSize checkboxSize = checkbox->GetSize();
334 wxRect checkboxRect( checkboxPos, checkboxSize );
340 wxColour overlayColor( blend.Red(), blend.Green(), blend.Blue(), 128 );
341 dc.SetBrush( wxBrush( overlayColor ) );
342 dc.SetPen( wxPen( overlayColor ) );
343 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)
wxColour flashColour(int aStep) const
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)
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.