← Back to team overview

kicad-developers team mailing list archive

Re: [patch] move exactly tool refactoring

 

The following are totally wishlist items.

Recently using the move exact in the footprint editor, I noticed that having a button to invert the sign would be useful. More generically, it would be great to move "away from origin" or "towards origin" orthogonally and relative to the pad's orientation. Ideally, subsets of selected pads that are aligned would move together. To make the interface easy and understandable, perhaps the option of keep pads aligned either "horz" or "vert" rather than code an AI to determine correct orientation/movement.

Like I mentioned. TOTALLY wishlist.


Greg S.

> On Jun 22, 2017, at 3:22 PM, Robbert Lagerweij <rlagerweij@xxxxxxxxxxx> wrote:
> 
> Hi all,
> 
> 
> While writing the documentation for the new origin selection feature in the move exactly tool, I found some ways to improve the consistency of its behaviour. I then could not help but also improve the structure of the code a bit while I was at it. 
> 
> These two patches together do the following:
> 
> * move the determination of the origin coordinates to the dialog (reduces code duplication across tools somewhat)
> * extract a method to determine the anchor point of the move to reduce the size of the move exact method
> * improve the logic of the anchor point determination for selections of multiple objects which do not contain footprints
> 
> Happy to receive any and all comments and suggestions for improvements.
> 
> Kind regards,
> 
> Robbert
> 
> 
> <pcbnew_move_exactly_refactor.patch>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

References