mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 22:03:47 +00:00
Implement stingy selection mode for tuning patterns.
This commit is contained in:
parent
be6a2d018d
commit
ace4ef7b16
pcbnew
@ -328,6 +328,7 @@ public:
|
||||
{
|
||||
aCount = 0;
|
||||
aLayers[aCount++] = LAYER_ANCHOR;
|
||||
aLayers[aCount++] = GetLayer();
|
||||
}
|
||||
|
||||
bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override
|
||||
|
@ -35,6 +35,7 @@
|
||||
#include <pcb_track.h>
|
||||
#include <macros.h>
|
||||
#include <pcb_marker.h>
|
||||
#include <pcb_generator.h>
|
||||
#include <pcb_base_frame.h>
|
||||
#include <pcbnew_settings.h>
|
||||
#include <ratsnest/ratsnest_data.h>
|
||||
@ -290,6 +291,9 @@ void PCB_DRAW_PANEL_GAL::DisplayBoard( BOARD* aBoard, PROGRESS_REPORTER* aReport
|
||||
for( ZONE* zone : aBoard->Zones() )
|
||||
m_view->Add( zone );
|
||||
|
||||
for( PCB_GENERATOR* generator : aBoard->Generators() )
|
||||
m_view->Add( generator );
|
||||
|
||||
// Ratsnest
|
||||
if( !aBoard->IsFootprintHolder() )
|
||||
{
|
||||
|
@ -2660,6 +2660,9 @@ bool PCB_SELECTION_TOOL::Selectable( const BOARD_ITEM* aItem, bool checkVisibili
|
||||
return false;
|
||||
}
|
||||
|
||||
if( aItem->GetParentGroup() && aItem->GetParentGroup()->Type() == PCB_GENERATOR_T )
|
||||
return false;
|
||||
|
||||
const ZONE* zone = nullptr;
|
||||
const PCB_VIA* via = nullptr;
|
||||
const PAD* pad = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user