Pad Enumeration tool support for SMD pads.
This commit is contained in:
parent
709dfcc16e
commit
d21271b432
|
@ -233,12 +233,10 @@ int MODULE_TOOLS::EnumeratePads( TOOL_EVENT& aEvent )
|
||||||
guide.SetIgnoreMTextsMarkedNoShow( true );
|
guide.SetIgnoreMTextsMarkedNoShow( true );
|
||||||
guide.SetIgnoreMTextsOnCopper( true );
|
guide.SetIgnoreMTextsOnCopper( true );
|
||||||
guide.SetIgnoreMTextsOnCmp( true );
|
guide.SetIgnoreMTextsOnCmp( true );
|
||||||
guide.SetIgnoreModulesOnCu( true );
|
|
||||||
guide.SetIgnoreModulesOnCmp( true );
|
|
||||||
guide.SetIgnoreModulesVals( true );
|
guide.SetIgnoreModulesVals( true );
|
||||||
guide.SetIgnoreModulesRefs( true );
|
guide.SetIgnoreModulesRefs( true );
|
||||||
|
|
||||||
// Create a set containing all pads (to avoid double adding to a list);
|
// Create a set containing all pads (to avoid double adding to a list)
|
||||||
for( D_PAD* p = module->Pads(); p; p = p->Next() )
|
for( D_PAD* p = module->Pads(); p; p = p->Next() )
|
||||||
allPads.insert( p );
|
allPads.insert( p );
|
||||||
|
|
||||||
|
|
|
@ -47,8 +47,6 @@
|
||||||
#include "bright_box.h"
|
#include "bright_box.h"
|
||||||
#include "common_actions.h"
|
#include "common_actions.h"
|
||||||
|
|
||||||
using boost::optional;
|
|
||||||
|
|
||||||
SELECTION_TOOL::SELECTION_TOOL() :
|
SELECTION_TOOL::SELECTION_TOOL() :
|
||||||
TOOL_INTERACTIVE( "pcbnew.InteractiveSelection" ),
|
TOOL_INTERACTIVE( "pcbnew.InteractiveSelection" ),
|
||||||
SelectedEvent( TC_MESSAGE, TA_ACTION, "pcbnew.InteractiveSelection.selected" ),
|
SelectedEvent( TC_MESSAGE, TA_ACTION, "pcbnew.InteractiveSelection.selected" ),
|
||||||
|
@ -393,6 +391,7 @@ int SELECTION_TOOL::SingleSelection( TOOL_EVENT& aEvent )
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int SELECTION_TOOL::ClearSelection( TOOL_EVENT& aEvent )
|
int SELECTION_TOOL::ClearSelection( TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
clearSelection();
|
clearSelection();
|
||||||
|
@ -401,6 +400,7 @@ int SELECTION_TOOL::ClearSelection( TOOL_EVENT& aEvent )
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SELECTION_TOOL::clearSelection()
|
void SELECTION_TOOL::clearSelection()
|
||||||
{
|
{
|
||||||
if( m_selection.Empty() )
|
if( m_selection.Empty() )
|
||||||
|
@ -472,7 +472,7 @@ BOARD_ITEM* SELECTION_TOOL::disambiguationMenu( GENERAL_COLLECTOR* aCollector )
|
||||||
}
|
}
|
||||||
else if( evt->Action() == TA_CONTEXT_MENU_CHOICE )
|
else if( evt->Action() == TA_CONTEXT_MENU_CHOICE )
|
||||||
{
|
{
|
||||||
optional<int> id = evt->GetCommandId();
|
boost::optional<int> id = evt->GetCommandId();
|
||||||
|
|
||||||
// User has selected an item, so this one will be returned
|
// User has selected an item, so this one will be returned
|
||||||
if( id && ( *id >= 0 ) )
|
if( id && ( *id >= 0 ) )
|
||||||
|
|
Loading…
Reference in New Issue