129 ?
_(
"No default footprint" )
137 std::set<wxString> alwaysIncludedNames;
141 wxString fpName = fpId.Format().wx_str();
143 if( alwaysIncludedNames.insert( fpName ).second )
144 m_fp_sel_ctrl->Append( fpName,
new wxStringClientData( fpName ) );
155 using json = nlohmann::json;
161 json filtersArray = json::array();
164 filtersArray.push_back(
filter.ToStdString() );
166 request[
"filters"] = filtersArray;
188 using FilterFunc = wxString ( * )(
const wxString& );
191 wxString requestStr = wxString::FromUTF8( request.dump() );
195 json response = json::parse( responseStr.ToStdString() );
197 if( response.is_array() )
199 for(
const auto& item : response )
201 if( item.is_string() )
203 wxString fpName = wxString::FromUTF8( item.get<std::string>() );
205 if( alwaysIncludedNames.count( fpName ) )
208 m_fp_sel_ctrl->Append( fpName,
new wxStringClientData( fpName ) );
213 catch(
const std::exception& )
IFACE KIFACE_BASE kiface("pcb_test_frame", KIWAY::FACE_PCB)