68 wxString msg =
wxString::Format(
_(
"Board edges must be defined on the %s layer." ),
88 std::unique_ptr<WX_PROGRESS_REPORTER> progressReporter(
95 commit.
Push(
_(
"Autoplace components" ) );
105 std::vector<FOOTPRINT*> footprints;
110 footprints.push_back( static_cast<FOOTPRINT*>( item ) );
119 std::vector<FOOTPRINT*> footprints;
void ShowMessageFor(const wxString &aMessage, int aTime, int aFlags=wxICON_INFORMATION)
Show the infobar with the provided message and icon for a specific period of time.
static TOOL_ACTION autoplaceOffboardComponents
const EDA_RECT GetBoardEdgesBoundingBox() const
Returns the board bounding box calculated using exclusively the board edges (graphics on Edge....
static TOOL_ACTION autoplaceSelectedComponents
void SetRefreshCallback(std::function< int(FOOTPRINT *aFootprint)> aCallback)
a callback function to redraw on screen the view after changes, for instance after moving a footprint
virtual void Revert() override
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
void SetOverlay(std::shared_ptr< KIGFX::VIEW_OVERLAY > aOverlay)
Set a VIEW overlay to draw items during a autoplace session.
std::shared_ptr< VIEW_OVERLAY > MakeOverlay()
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
Multi-thread safe progress reporter dialog, intended for use of tasks that paralleize reporting back ...
wxString LayerName(int aLayer)
Returns the default display name for a given layer.
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
void RemoveAllButtons()
Remove all the buttons that have been added by the user.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
class FOOTPRINT, a footprint
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Common, abstract interface for edit frames.
static std::shared_ptr< KIGFX::VIEW_OVERLAY > overlay
void SetProgressReporter(PROGRESS_REPORTER *aReporter)
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
virtual void Push(const wxString &aMessage=wxT("A commit"), bool aCreateUndoEntry=true, bool aSetDirtyBit=true) override
Revert the commit by restoring the modified items state.
WX_INFOBAR * GetInfoBar()
void MarkDirty()
Force redraw of view on the next rendering.
AR_RESULT AutoplaceFootprints(std::vector< FOOTPRINT * > &aFootprints, BOARD_COMMIT *aCommit, bool aPlaceOffboardModules=false)