41#define ID_MATCH_FP_ALL 4200
42#define ID_MATCH_FP_SELECTED 4201
43#define ID_MATCH_FP_REF 4202
44#define ID_MATCH_FP_VAL 4203
45#define ID_MATCH_FP_ID 4204
54 bool updateMode,
bool selectedMode ) :
63 SetTitle(
_(
"Change Footprints" ) );
64 m_matchAll->SetLabel(
_(
"Change all footprints on board" ) );
79 wxString x =
_(
"Update/reset strings: there are two cases these descriptions need to cover: "
80 "the user made overrides to a footprint on the PCB and wants to remove them, "
81 "or the user made changes to the library footprint and wants to propagate "
82 "them back to the PCB." );
131 { wxID_CANCEL,
_(
"Close" ) } } );
151 wxCommandEvent event;
152 event.SetEventObject(
this );
184 return aFootprint->
GetFPID() == specifiedID;
200 default:
return nullptr;
209 wxRadioButton* rb_butt_list[] =
222 for(
int ii = 0; rb_butt_list[ii]; ++ii )
224 bool state = rb_butt_list[ii] == rb_button;
226 if( rb_butt_list[ii]->GetValue() != state )
227 rb_butt_list[ii]->SetValue( state );
236 if( aEvent.GetEventObject() ==
this )
247 if( aEvent.GetEventObject() ==
this )
258 if( aEvent.GetEventObject() ==
this )
269 if( aEvent.GetEventObject() ==
this )
280 if( aEvent.GetEventObject() ==
this )
326 if(
m_parent->GetBoard()->Footprints().empty() )
341 for(
FOOTPRINT* footprint : std::ranges::reverse_view(
m_parent->GetBoard()->Footprints() ) )
362 msg.Printf(
_(
"Updated footprint %s (%s)" ) + wxS(
": " ),
368 msg.Printf(
_(
"Changed footprint %s from '%s' to '%s'" ) + wxS(
": " ),
378 msg +=
_(
"*** library footprint not found ***" );
385 m_parent->GetBoard()->ExchangeFootprint( aFootprint, newFootprint,
m_commit,
406 msg +=
_(
": (no changes)" );
419 wxString newname =
m_newID->GetValue();
435 pins.push_back(
pad +
' ' + wxEmptyString );
437 if( !pins.IsEmpty() )
444 std::string payload(
netlist.ToStdString() );
446 frame->KiwayMailIn( mail );
449 if( frame->ShowModal( &newname,
this ) )
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
Carry a payload from one KIWAY_PLAYER to another within a PROJECT.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
A logical library item identifier and consists of various portions much like a URI.
int Parse(const UTF8 &aId, bool aFix=false)
Parse LIB_ID with the information from aId.
bool IsValid() const
Check if this LID_ID is valid.
The main frame for Pcbnew.
const char * c_str() const
@ FRAME_FOOTPRINT_CHOOSER
This file contains miscellaneous commonly used macros and functions.
std::vector< FAB_LAYER_COLOR > dummy
bool WildCompareString(const wxString &pattern, const wxString &string_to_tst, bool case_sensitive)
Compare a string against wild card (* and ?) pattern using the usual rules.
wxString From_UTF8(const char *cstring)
wxString EscapeString(const wxString &aSource, ESCAPE_CONTEXT aContext)
The Escape/Unescape routines use HTML-entity-reference-style encoding to handle characters which are:...
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.