|
KiCad PCB EDA Suite
|
#include "symbol_library_query.h"#include <exception>#include <kiface_ids.h>#include <kiway.h>#include <json_common.h>Go to the source code of this file.
Functions | |
| FOOTPRINT_USERS_RESULT | QueryFootprintUsers (KIWAY &aKiway, const FOOTPRINT_USERS_QUERY &aQuery) |
| Ask the symbol libraries, for the symbols that use a given footprint (over the Eeschema kiface). | |
| bool | StartSymbolLibrariesLoad (KIWAY &aKiway) |
| Start loading the symbol libraries in the background. | |
| float | GetSymbolLibrariesLoadProgress (KIWAY &aKiway) |
| Return how far the background load of the symbol libraries has got. | |
| float GetSymbolLibrariesLoadProgress | ( | KIWAY & | aKiway | ) |
Return how far the background load of the symbol libraries has got.
Never blocks, so it can be polled while showing a loading indication.
| aKiway | is used to reach the eeschema kiface. |
Definition at line 251 of file symbol_library_query.cpp.
References KIWAY::FACE_SCH, KIWAY::KiFACE(), kiface(), and KIFACE_SYMBOLS_LOAD_PROGRESS.
Referenced by DIALOG_FOOTPRINT_USERS::symbolLibrariesReady().
| FOOTPRINT_USERS_RESULT QueryFootprintUsers | ( | KIWAY & | aKiway, |
| const FOOTPRINT_USERS_QUERY & | aQuery ) |
Ask the symbol libraries, for the symbols that use a given footprint (over the Eeschema kiface).
| aKiway | is used to reach the eeschema kiface. |
| aQuery | is the footprint to look for and the kind of matches to return. |
Definition at line 182 of file symbol_library_query.cpp.
References KIWAY::FACE_SCH, FOOTPRINT_USERS_RESULT::FromJsonStr(), KIWAY::KiFACE(), kiface(), KIFACE_FILTER_FOOTPRINT_USERS, result, and FOOTPRINT_USERS_QUERY::ToJsonStr().
Referenced by DIALOG_FOOTPRINT_USERS::updateUsers().
| bool StartSymbolLibrariesLoad | ( | KIWAY & | aKiway | ) |
Start loading the symbol 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 220 of file symbol_library_query.cpp.
References KIWAY::FACE_SCH, KIWAY::KiFACE(), kiface(), and KIFACE_TRIGGER_SYMBOLS_LOAD.
Referenced by DIALOG_FOOTPRINT_USERS::DIALOG_FOOTPRINT_USERS().