|
KiCad PCB EDA Suite
|
#include <optional>#include <vector>#include <wx/string.h>Go to the source code of this file.
Classes | |
| struct | FOOTPRINT_MATCH_QUERY |
| All the information needed to query the footprint libraries for matching footprints. More... | |
| struct | FOOTPRINT_MATCH_RESULT |
| The outcome of a footprint match query, and the JSON encoding used to move it across the Pcbnew kiface. More... | |
Functions | |
| FOOTPRINT_MATCH_RESULT | QueryMatchingFootprints (KIWAY &aKiway, const FOOTPRINT_MATCH_QUERY &aQuery) |
| Ask the footprint libraries, for the footprints matching a query (over the Pcbnew kiface). | |
| bool | StartFootprintLibrariesLoad (KIWAY &aKiway) |
| Start loading the footprint libraries in the background. | |
| float | GetFootprintLibrariesLoadProgress (KIWAY &aKiway) |
| Return how far the background load of the footprint libraries has got. | |
| float GetFootprintLibrariesLoadProgress | ( | KIWAY & | aKiway | ) |
Return how far the background load of the footprint libraries has got.
Never blocks, so it can be polled while showing a loading indication.
| aKiway | is used to reach the pcbnew kiface. |
Definition at line 172 of file footprint_library_query.cpp.
References KIWAY::FACE_PCB, KIWAY::KiFACE(), kiface(), and KIFACE_FOOTPRINTS_LOAD_PROGRESS.
Referenced by PANEL_FOOTPRINT_FILTERS::matchLibrariesReady().
| FOOTPRINT_MATCH_RESULT QueryMatchingFootprints | ( | KIWAY & | aKiway, |
| const FOOTPRINT_MATCH_QUERY & | aQuery ) |
Ask the footprint libraries, for the footprints matching a query (over the Pcbnew kiface).
| aKiway | is used to reach the pcbnew kiface. |
| aQuery | is the set of criteria to match. |
Definition at line 89 of file footprint_library_query.cpp.
References KIWAY::FACE_PCB, filterFootprints(), filters, FOOTPRINT_MATCH_RESULT::FromJsonStr(), KIWAY::KiFACE(), kiface(), KIFACE_FILTER_FOOTPRINTS, FOOTPRINT_MATCH_QUERY::m_MaxResults, FOOTPRINT_MATCH_QUERY::m_Patterns, FOOTPRINT_MATCH_QUERY::m_PinCount, FOOTPRINT_MATCH_QUERY::m_ZeroFilters, and result.
Referenced by FP_FILTER_MATCHER::fetchMatches(), and FOOTPRINT_SELECT_WIDGET::UpdateList().
| bool StartFootprintLibrariesLoad | ( | KIWAY & | aKiway | ) |
Start loading the footprint libraries in the background.
This call does not block. It is a no-op if the libraries are already loaded, or a load is already running.
Definition at line 144 of file footprint_library_query.cpp.
References KIWAY::FACE_PCB, KIWAY::KiFACE(), kiface(), and KIFACE_TRIGGER_FOOTPRINTS_LOAD.