Renamed PCB_ACTIONS::editModifiedSelection to selectionModified
This commit is contained in:
parent
bb999f1bbf
commit
bc8668b039
|
@ -147,7 +147,7 @@ TOOL_ACTION PCB_ACTIONS::properties( "pcbnew.InteractiveEdit.properties",
|
||||||
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
|
AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_EDIT_ITEM ),
|
||||||
_( "Properties..." ), _( "Displays item properties dialog" ), editor_xpm );
|
_( "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,
|
AS_GLOBAL, 0,
|
||||||
"", "", nullptr, AF_NOTIFY );
|
"", "", 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() )
|
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
|
// Display properties dialog provided by the legacy canvas frame
|
||||||
editFrame->OnEditItemRequest( NULL, item );
|
editFrame->OnEditItemRequest( NULL, item );
|
||||||
|
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
|
||||||
item->SetFlags( flags );
|
item->SetFlags( flags );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -517,8 +517,7 @@ int EDIT_TOOL::Rotate( const TOOL_EVENT& aEvent )
|
||||||
if( selection.IsHover() )
|
if( selection.IsHover() )
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||||
|
|
||||||
// TODO selectionModified
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -626,8 +625,7 @@ int EDIT_TOOL::Mirror( const TOOL_EVENT& aEvent )
|
||||||
if( selection.IsHover() )
|
if( selection.IsHover() )
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||||
|
|
||||||
// TODO selectionModified
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -659,7 +657,7 @@ int EDIT_TOOL::Flip( const TOOL_EVENT& aEvent )
|
||||||
if( selection.IsHover() )
|
if( selection.IsHover() )
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||||
|
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -739,7 +737,7 @@ int EDIT_TOOL::MoveExact( const TOOL_EVENT& aEvent )
|
||||||
if( selection.IsHover() )
|
if( selection.IsHover() )
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
|
||||||
|
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -224,7 +224,7 @@ int PAD_TOOL::applyPadSettings( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
commit.Push( _( "Apply Pad Settings" ) );
|
commit.Push( _( "Apply Pad Settings" ) );
|
||||||
|
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
|
||||||
frame.Refresh();
|
frame.Refresh();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -377,7 +377,7 @@ int PAD_TOOL::pushPadSettings( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
commit.Push( _( "Apply Pad Settings" ) );
|
commit.Push( _( "Apply Pad Settings" ) );
|
||||||
|
|
||||||
m_toolMgr->RunAction( PCB_ACTIONS::editModifiedSelection, true );
|
m_toolMgr->RunAction( PCB_ACTIONS::selectionModified, true );
|
||||||
frame.Refresh();
|
frame.Refresh();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -96,7 +96,7 @@ public:
|
||||||
static TOOL_ACTION properties;
|
static TOOL_ACTION properties;
|
||||||
|
|
||||||
/// Modified selection notification
|
/// Modified selection notification
|
||||||
static TOOL_ACTION editModifiedSelection;
|
static TOOL_ACTION selectionModified;
|
||||||
|
|
||||||
/// Activation of the exact move tool
|
/// Activation of the exact move tool
|
||||||
static TOOL_ACTION moveExact;
|
static TOOL_ACTION moveExact;
|
||||||
|
|
|
@ -723,7 +723,7 @@ void POINT_EDITOR::SetTransitions()
|
||||||
{
|
{
|
||||||
Go( &POINT_EDITOR::addCorner, PCB_ACTIONS::pointEditorAddCorner.MakeEvent() );
|
Go( &POINT_EDITOR::addCorner, PCB_ACTIONS::pointEditorAddCorner.MakeEvent() );
|
||||||
Go( &POINT_EDITOR::removeCorner, PCB_ACTIONS::pointEditorRemoveCorner.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::SelectedEvent );
|
||||||
Go( &POINT_EDITOR::OnSelectionChange, SELECTION_TOOL::UnselectedEvent );
|
Go( &POINT_EDITOR::OnSelectionChange, SELECTION_TOOL::UnselectedEvent );
|
||||||
}
|
}
|
||||||
|
|
|
@ -553,7 +553,7 @@ void SELECTION_TOOL::SetTransitions()
|
||||||
Go( &SELECTION_TOOL::selectNet, PCB_ACTIONS::selectNet.MakeEvent() );
|
Go( &SELECTION_TOOL::selectNet, PCB_ACTIONS::selectNet.MakeEvent() );
|
||||||
Go( &SELECTION_TOOL::selectSameSheet, PCB_ACTIONS::selectSameSheet.MakeEvent() );
|
Go( &SELECTION_TOOL::selectSameSheet, PCB_ACTIONS::selectSameSheet.MakeEvent() );
|
||||||
Go( &SELECTION_TOOL::selectOnSheetFromEeschema, PCB_ACTIONS::selectOnSheetFromEeschema.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() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue