KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_footprint_filters.cpp File Reference
#include "panel_footprint_filters.h"
#include <algorithm>
#include <wx/clipbrd.h>
#include <wx/menu.h>
#include <wx/wupdlock.h>
#include <bitmaps.h>
#include <dialogs/dialog_text_entry.h>
#include <footprint_library_query.h>
#include <kiway.h>
#include <kiway_mail.h>
#include <lib_id.h>
#include <string_utils.h>
#include <widgets/listbox_tricks.h>
#include <widgets/std_bitmap_button.h>

Go to the source code of this file.

Classes

class  FP_FILTER_MATCHER
 Supplies the footprints matching a symbol's footprint filter patterns. More...
 

Functions

static wxString SanitizeFpFilter (const wxString &aFilter)
 Footprint filters are saved as a space-separated list, so a space inside a filter would be read as a separator.
 

Function Documentation

◆ SanitizeFpFilter()

static wxString SanitizeFpFilter ( const wxString & aFilter)
static

Footprint filters are saved as a space-separated list, so a space inside a filter would be read as a separator.

Replace spaces with underscores.

Definition at line 44 of file panel_footprint_filters.cpp.

References filter.

Referenced by PANEL_FOOTPRINT_FILTERS::OnAddFootprintFilter(), PANEL_FOOTPRINT_FILTERS::OnEditFootprintFilter(), and PANEL_FOOTPRINT_FILTERS::onFilterPreviewText().