Renamed PCB_ACTIONS::editModifiedSelection to selectionModified

This commit is contained in:
Maciej Suminski 2017-04-20 12:10:53 +02:00
parent bb999f1bbf
commit bc8668b039
5 changed files with 12 additions and 14 deletions

View File

@ -147,7 +147,7 @@ TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
_( "Properties..." ), _( "Displays item properties dialog" ), editor_xpm );
TOOL_ACTION PCB_ACTIONS::editModifiedSelection( "pcbnew.InteractiveEdit.ModifiedSelection",
TOOL_ACTION PCB_ACTIONS::selectionModified( "pcbnew.InteractiveEdit.ModifiedSelection",
AS_GLOBAL, 0,
"", "", nullptr, AF_NOTIFY );
@ -345,7 +345,7 @@ int EDIT_TOOL::Main( const TOOL_EVENT& aEvent )
}
}
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, false );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, false );
}
else if( evt->IsCancel() || evt->IsActivate() )
@ -476,7 +476,7 @@ int EDIT_TOOL::Properties( const TOOL_EVENT& aEvent )
// Display properties dialog provided by the legacy canvas frame
editFrame->OnEditItemRequest( NULL, item );
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
item->SetFlags( flags );
}
@ -517,8 +517,7 @@ int EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
if( selection.IsHover() )
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
// TODO selectionModified
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
return 0;
}
@ -626,8 +625,7 @@ int EDIT_TOOL::Mirror( const TOOL_EVENT& aEvent )
if( selection.IsHover() )
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
// TODO selectionModified
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
return 0;
}
@ -659,7 +657,7 @@ int EDIT_TOOL::Flip( const TOOL_EVENT& aEvent )
if( selection.IsHover() )
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
return 0;
}
@ -739,7 +737,7 @@ int EDIT_TOOL::MoveExact( const TOOL_EVENT& aEvent )
if( selection.IsHover() )
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
}
return 0;

View File

@ -224,7 +224,7 @@ int PAD_TOOL::applyPadSettings( const TOOL_EVENT& aEvent )
commit.Push( _( "Apply Pad Settings" ) );
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
frame.Refresh();
return 0;
@ -377,7 +377,7 @@ int PAD_TOOL::pushPadSettings( const TOOL_EVENT& aEvent )
commit.Push( _( "Apply Pad Settings" ) );
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
frame.Refresh();
return 0;

View File

@ -96,7 +96,7 @@ public:
static TOOL_ACTION properties;
/// Modified selection notification
static TOOL_ACTION editModifiedSelection;
static TOOL_ACTION selectionModified;
/// Activation of the exact move tool
static TOOL_ACTION moveExact;

View File

@ -723,7 +723,7 @@ void POINT_EDITOR::SetTransitions()
{
Go( &POINT_EDITOR::addCorner, PCB_ACTIONS::pointEditorAddCorner.MakeEvent() );
Go( &POINT_EDITOR::removeCorner, PCB_ACTIONS::pointEditorRemoveCorner.MakeEvent() );
Go( &POINT_EDITOR::modifiedSelection, PCB_ACTIONS::editModifiedSelection.MakeEvent() );
Go( &POINT_EDITOR::modifiedSelection, PCB_ACTIONS::selectionModified.MakeEvent() );
Go( &POINT_EDITOR::OnSelectionChange, SELECTION_TOOL::SelectedEvent );
Go( &POINT_EDITOR::OnSelectionChange, SELECTION_TOOL::UnselectedEvent );
}

View File

@ -553,7 +553,7 @@ void SELECTION_TOOL::SetTransitions()
Go( &SELECTION_TOOL::selectNet, PCB_ACTIONS::selectNet.MakeEvent() );
Go( &SELECTION_TOOL::selectSameSheet, PCB_ACTIONS::selectSameSheet.MakeEvent() );
Go( &SELECTION_TOOL::selectOnSheetFromEeschema, PCB_ACTIONS::selectOnSheetFromEeschema.MakeEvent() );
Go( &SELECTION_TOOL::updateSelection, PCB_ACTIONS::editModifiedSelection.MakeEvent() );
Go( &SELECTION_TOOL::updateSelection, PCB_ACTIONS::selectionModified.MakeEvent() );
}