Clearer naming.

This commit is contained in:
Jeff Young 2023-10-10 15:43:45 +01:00
parent 0683313ecb
commit 8c017be24a
8 changed files with 12 additions and 12 deletions

View File

@ -1565,7 +1565,7 @@ int SCH_EDIT_TOOL::DoDelete( const TOOL_EVENT& aEvent )
#define HITTEST_THRESHOLD_PIXELS 5
int SCH_EDIT_TOOL::DeleteItemCursor( const TOOL_EVENT& aEvent )
int SCH_EDIT_TOOL::InteractiveDelete( const TOOL_EVENT& aEvent )
{
PICKER_TOOL* picker = m_toolMgr->GetTool<PICKER_TOOL>();
@ -2747,7 +2747,7 @@ void SCH_EDIT_TOOL::setTransitions()
Go( &SCH_EDIT_TOOL::Mirror, EE_ACTIONS::mirrorH.MakeEvent() );
Go( &SCH_EDIT_TOOL::Swap, EE_ACTIONS::swap.MakeEvent() );
Go( &SCH_EDIT_TOOL::DoDelete, ACTIONS::doDelete.MakeEvent() );
Go( &SCH_EDIT_TOOL::DeleteItemCursor, ACTIONS::deleteTool.MakeEvent() );
Go( &SCH_EDIT_TOOL::InteractiveDelete, ACTIONS::deleteTool.MakeEvent() );
Go( &SCH_EDIT_TOOL::Properties, EE_ACTIONS::properties.MakeEvent() );
Go( &SCH_EDIT_TOOL::EditField, EE_ACTIONS::editReference.MakeEvent() );

View File

@ -78,7 +78,7 @@ public:
int DoDelete( const TOOL_EVENT& aEvent );
///< Run the deletion tool.
int DeleteItemCursor( const TOOL_EVENT& aEvent );
int InteractiveDelete( const TOOL_EVENT& aEvent );
/// Drag and drop
int DdAppendFile( const TOOL_EVENT& aEvent );

View File

@ -333,7 +333,7 @@ int SYMBOL_EDITOR_EDIT_TOOL::DoDelete( const TOOL_EVENT& aEvent )
#define HITTEST_THRESHOLD_PIXELS 5
int SYMBOL_EDITOR_EDIT_TOOL::DeleteItemCursor( const TOOL_EVENT& aEvent )
int SYMBOL_EDITOR_EDIT_TOOL::InteractiveDelete( const TOOL_EVENT& aEvent )
{
PICKER_TOOL* picker = m_toolMgr->GetTool<PICKER_TOOL>();
@ -891,7 +891,7 @@ void SYMBOL_EDITOR_EDIT_TOOL::setTransitions()
Go( &SYMBOL_EDITOR_EDIT_TOOL::Mirror, EE_ACTIONS::mirrorV.MakeEvent() );
Go( &SYMBOL_EDITOR_EDIT_TOOL::Mirror, EE_ACTIONS::mirrorH.MakeEvent() );
Go( &SYMBOL_EDITOR_EDIT_TOOL::DoDelete, ACTIONS::doDelete.MakeEvent() );
Go( &SYMBOL_EDITOR_EDIT_TOOL::DeleteItemCursor, ACTIONS::deleteTool.MakeEvent() );
Go( &SYMBOL_EDITOR_EDIT_TOOL::InteractiveDelete, ACTIONS::deleteTool.MakeEvent() );
Go( &SYMBOL_EDITOR_EDIT_TOOL::Properties, EE_ACTIONS::properties.MakeEvent() );
Go( &SYMBOL_EDITOR_EDIT_TOOL::Properties, EE_ACTIONS::symbolProperties.MakeEvent() );

View File

@ -62,7 +62,7 @@ public:
int DoDelete( const TOOL_EVENT& aEvent );
///< Run the deletion tool.
int DeleteItemCursor( const TOOL_EVENT& aEvent );
int InteractiveDelete( const TOOL_EVENT& aEvent );
private:
void editShapeProperties( LIB_SHAPE* aShape );

View File

@ -410,7 +410,7 @@ int PL_EDIT_TOOL::DoDelete( const TOOL_EVENT& aEvent )
#define HITTEST_THRESHOLD_PIXELS 5
int PL_EDIT_TOOL::DeleteItemCursor( const TOOL_EVENT& aEvent )
int PL_EDIT_TOOL::InteractiveDelete( const TOOL_EVENT& aEvent )
{
PICKER_TOOL* picker = m_toolMgr->GetTool<PICKER_TOOL>();
@ -583,5 +583,5 @@ void PL_EDIT_TOOL::setTransitions()
Go( &PL_EDIT_TOOL::Paste, ACTIONS::paste.MakeEvent() );
Go( &PL_EDIT_TOOL::DoDelete, ACTIONS::doDelete.MakeEvent() );
Go( &PL_EDIT_TOOL::DeleteItemCursor, ACTIONS::deleteTool.MakeEvent() );
Go( &PL_EDIT_TOOL::InteractiveDelete, ACTIONS::deleteTool.MakeEvent() );
}

View File

@ -63,7 +63,7 @@ public:
int DoDelete( const TOOL_EVENT& aEvent );
///< Run the deletion tool.
int DeleteItemCursor( const TOOL_EVENT& aEvent );
int InteractiveDelete( const TOOL_EVENT& aEvent );
private:
void moveItem( DS_DATA_ITEM* aItem, const VECTOR2I& aDelta );

View File

@ -593,7 +593,7 @@ int PCB_CONTROL::GridResetOrigin( const TOOL_EVENT& aEvent )
#define HITTEST_THRESHOLD_PIXELS 5
int PCB_CONTROL::DeleteItemCursor( const TOOL_EVENT& aEvent )
int PCB_CONTROL::InteractiveDelete( const TOOL_EVENT& aEvent )
{
if( m_isFootprintEditor && !m_frame->GetBoard()->GetFirstFootprint() )
return 0;
@ -1707,7 +1707,7 @@ void PCB_CONTROL::setTransitions()
Go( &PCB_CONTROL::SnapModeFeedback, PCB_EVENTS::SnappingModeChangedByKeyEvent );
// Miscellaneous
Go( &PCB_CONTROL::DeleteItemCursor, ACTIONS::deleteTool.MakeEvent() );
Go( &PCB_CONTROL::InteractiveDelete, ACTIONS::deleteTool.MakeEvent() );
// Append control
Go( &PCB_CONTROL::AppendBoardFromFile, PCB_ACTIONS::appendBoard.MakeEvent() );

View File

@ -96,7 +96,7 @@ public:
int SnapModeFeedback( const TOOL_EVENT& aEvent );
// Miscellaneous
int DeleteItemCursor( const TOOL_EVENT& aEvent );
int InteractiveDelete( const TOOL_EVENT& aEvent );
int Paste( const TOOL_EVENT& aEvent );
int AppendBoardFromFile( const TOOL_EVENT& aEvent );
int AppendBoard( PLUGIN& pi, wxString& fileName );