130 ?
_(
"No default footprint" )
138 std::set<wxString> alwaysIncludedNames;
142 wxString fpName = fpId.Format().wx_str();
144 if( alwaysIncludedNames.insert( fpName ).second )
145 m_fp_sel_ctrl->Append( fpName,
new wxStringClientData( fpName ) );
156 using json = nlohmann::json;
162 json filtersArray = json::array();
165 filtersArray.push_back(
filter.ToStdString() );
167 request[
"filters"] = filtersArray;
189 using FilterFunc = wxString ( * )(
const wxString& );
192 wxString requestStr = wxString::FromUTF8( request.dump() );
196 json response = json::parse( responseStr.ToStdString() );
198 if( response.is_array() )
200 for(
const auto& item : response )
202 if( item.is_string() )
204 wxString fpName = wxString::FromUTF8( item.get<std::string>() );
206 if( alwaysIncludedNames.count( fpName ) )
209 m_fp_sel_ctrl->Append( fpName,
new wxStringClientData( fpName ) );
214 catch(
const std::exception& )
IFACE KIFACE_BASE kiface("pcb_test_frame", KIWAY::FACE_PCB)