← Back to team overview

kicad-developers team mailing list archive

Re: [FEATURE] Partial selection in pcbnew

 

Personally I would like the box select to update selections online while dragging, this would be very informative. I also think that maybe this functionality would be better with a modifier button now that I think about it, since sometimes I cannot starta a drag move in one corner due to a large footprint residing there and then getting selected.

But the hidden features problem is one that is starting to affect more and more of pcbnew since functionality is added continuosly.

I know there is a manual for pcbnew, maybe tools should have some shortcut to go to the relevant section of that manual? Or the tools have a shortcut to go a "tool manual" I have no clue on how to achieve this, but It would be nice.

-Kristoffer

On 05/04/2017 02:16 PM, Konrad Beckmann wrote:
SketchUp implements this behaviour as well
(https://help.sketchup.com/it/article/3000085). I'm not sure but it
might be a common pattern in other programs as well. Maybe a helpful
tooltip-text on the selection tool would be enough?

//Konrad

On Thu, May 4, 2017 at 1:39 PM, Kristoffer Ödmark
<kristofferodmark90@xxxxxxxxx> wrote:
Hello!

I like the functionality a lot! Selection is probably the one thing that is
used most of all functions in kicad, so I clearly like that it can be done
in multiple ways! I do however wonder how one would find and discover this
functionality?

- Kristoffer


On 05/02/2017 09:25 AM, Oliver Walters wrote:

I have attached a patch-set that implements "partial selection" of objects
when the selection box is dragged right-to-left.

L -> R = Objects must be completely enclosed to be selected
R -> L = Objects that intersect the selection rectangle will be selected.

To achieve this I had to fix a lot of the HitTest implementations as this
was broken for most shapes, under a variety of edge cases (some HitTest code
did not work at all).

There are two issues I see as outstanding, and am unsure how to proceed:

1. When editing a PCB, selecting part of a footprint (e.g. a line of the
courtyard) selects both that line and the entire footprint. This causes some
issues when the footprint is dragged around the PCB. I believe that the line
should not be selected separately, but the entire footprint should.

2. The inverse of 1. In the footprint editor, selecting a single graphical
item selects the entire footprint. Somehow I would like to filter the
selection such that individual items are selected but NOT the entire
footprint.

Feedback please! :)

I have fixed hit testing (both for wxPoint and EDA_RECT comparison) for:

- Pads (all shapes)
- Lines
- Circles
- Arcs
- Text items
- Zones
- Footprints

Cheers,
Oliver




_______________________________________________
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


--
  -Kristoffer


_______________________________________________
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

--
 -Kristoffer


Follow ups

References