Code formatting.
This commit is contained in:
parent
2043d4696f
commit
15cefcda9f
|
@ -270,6 +270,7 @@ void ROUTER_TOOL::Reset( RESET_REASON aReason )
|
|||
|
||||
}
|
||||
|
||||
|
||||
int ROUTER_TOOL::getDefaultWidth( int aNetCode )
|
||||
{
|
||||
int w, d1, d2;
|
||||
|
@ -357,6 +358,7 @@ void ROUTER_TOOL::handleCommonEvents( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
int ROUTER_TOOL::getStartLayer( const PNS_ITEM* aItem )
|
||||
{
|
||||
int tl = getView()->GetTopLayer();
|
||||
|
@ -373,6 +375,8 @@ int ROUTER_TOOL::getStartLayer( const PNS_ITEM* aItem )
|
|||
|
||||
return tl;
|
||||
}
|
||||
|
||||
|
||||
void ROUTER_TOOL::switchLayerOnViaPlacement()
|
||||
{
|
||||
int al = m_frame->GetActiveLayer();
|
||||
|
@ -392,6 +396,7 @@ void ROUTER_TOOL::switchLayerOnViaPlacement()
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
bool ROUTER_TOOL::onViaCommand( VIATYPE_T aType )
|
||||
{
|
||||
BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
|
||||
|
@ -411,6 +416,7 @@ bool ROUTER_TOOL::onViaCommand( VIATYPE_T aType )
|
|||
// Cannot place microvias or blind vias if not allowed (obvious)
|
||||
if( ( aType == VIA_BLIND_BURIED ) && ( !bds.m_BlindBuriedViaAllowed ) )
|
||||
return false;
|
||||
|
||||
if( ( aType == VIA_MICROVIA ) && ( !bds.m_MicroViasAllowed ) )
|
||||
return false;
|
||||
|
||||
|
@ -477,6 +483,7 @@ bool ROUTER_TOOL::prepareInteractive()
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool ROUTER_TOOL::finishInteractive( bool aSaveUndoBuffer )
|
||||
{
|
||||
m_router->StopRouting();
|
||||
|
@ -501,6 +508,7 @@ bool ROUTER_TOOL::finishInteractive( bool aSaveUndoBuffer )
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
void ROUTER_TOOL::performRouting()
|
||||
{
|
||||
bool saveUndoBuffer = true;
|
||||
|
@ -573,6 +581,7 @@ void ROUTER_TOOL::performRouting()
|
|||
finishInteractive( saveUndoBuffer );
|
||||
}
|
||||
|
||||
|
||||
int ROUTER_TOOL::DpDimensionsDialog( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
Activate();
|
||||
|
@ -589,6 +598,7 @@ int ROUTER_TOOL::DpDimensionsDialog( const TOOL_EVENT& aEvent )
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int ROUTER_TOOL::SettingsDialog( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
Activate();
|
||||
|
@ -609,12 +619,14 @@ int ROUTER_TOOL::RouteSingleTrace( const TOOL_EVENT& aEvent )
|
|||
return mainLoop( PNS_MODE_ROUTE_SINGLE );
|
||||
}
|
||||
|
||||
|
||||
int ROUTER_TOOL::RouteDiffPair( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
m_frame->SetToolID( ID_TRACK_BUTT, wxCURSOR_PENCIL, _( "Router Differential Pair" ) );
|
||||
return mainLoop( PNS_MODE_ROUTE_DIFF_PAIR );
|
||||
}
|
||||
|
||||
|
||||
int ROUTER_TOOL::mainLoop( PNS_ROUTER_MODE aMode )
|
||||
{
|
||||
PCB_EDIT_FRAME* frame = getEditFrame<PCB_EDIT_FRAME>();
|
||||
|
@ -676,6 +688,7 @@ int ROUTER_TOOL::mainLoop( PNS_ROUTER_MODE aMode )
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void ROUTER_TOOL::performDragging()
|
||||
{
|
||||
PCB_EDIT_FRAME* frame = getEditFrame<PCB_EDIT_FRAME>();
|
||||
|
@ -737,6 +750,7 @@ void ROUTER_TOOL::performDragging()
|
|||
highlightNet( false );
|
||||
}
|
||||
|
||||
|
||||
int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue