KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_selection_tool.cpp File Reference
#include <algorithm>
#include <cmath>
#include <functional>
#include <stack>
#include <advanced_config.h>
#include <macros.h>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <pad.h>
#include <pcb_point.h>
#include <pcb_table.h>
#include <pcb_tablecell.h>
#include <pcb_track.h>
#include <pcb_marker.h>
#include <pcb_generator.h>
#include <pcb_group.h>
#include <pcb_base_edit_frame.h>
#include <zone.h>
#include <collectors.h>
#include <dialog_filter_selection.h>
#include <view/view_controls.h>
#include <gal/painter.h>
#include <router/router_tool.h>
#include <pcbnew_settings.h>
#include <tool/tool_event.h>
#include <tool/tool_manager.h>
#include <tools/tool_event_utils.h>
#include <tools/pcb_point_editor.h>
#include <tools/pcb_selection_tool.h>
#include <tools/pcb_actions.h>
#include <tools/board_inspection_tool.h>
#include <ratsnest/ratsnest_data.h>
#include <geometry/geometry_utils.h>
#include <wx/event.h>
#include <wx/timer.h>
#include <wx/log.h>
#include <wx/debug.h>
#include <core/profile.h>
#include <math/vector2wx.h>

Go to the source code of this file.

Classes

struct  LAYER_OPACITY_ITEM
 
class  SELECT_MENU
 
class  REPLACE_TERMINAL_PAD_MENU
 
class  NET_CHAINS_MENU
 
class  PCB_SELECTION_TOOL::PRIV
 Private implementation of firewalled private data. More...
 

Enumerations

enum  { ID_REPLACE_TERMINAL_PAD_A = wxID_HIGHEST + 3000 , ID_REPLACE_TERMINAL_PAD_B }
 

Functions

static void passEvent (TOOL_EVENT *const aEvent, const TOOL_ACTION *const aAllowedActions[])
 
void connectedItemFilter (const VECTOR2I &, GENERAL_COLLECTOR &aCollector, PCB_SELECTION_TOOL *sTool)
 
static bool itemIsIncludedByFilter (const BOARD_ITEM &aItem, const BOARD &aBoard, const DIALOG_FILTER_SELECTION::OPTIONS &aFilterOptions)
 Determine if an item is included by the filter specified.
 

Variables

const TOOL_ACTIONallowedActions []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_REPLACE_TERMINAL_PAD_A 
ID_REPLACE_TERMINAL_PAD_B 

Definition at line 107 of file pcb_selection_tool.cpp.

Function Documentation

◆ connectedItemFilter()

void connectedItemFilter ( const VECTOR2I & ,
GENERAL_COLLECTOR & aCollector,
PCB_SELECTION_TOOL * sTool )

◆ itemIsIncludedByFilter()

◆ passEvent()

static void passEvent ( TOOL_EVENT *const aEvent,
const TOOL_ACTION *const aAllowedActions[] )
static

Definition at line 1065 of file pcb_selection_tool.cpp.

References TOOL_EVENT::IsAction(), and TOOL_EVENT::SetPassEvent().

Variable Documentation

◆ allowedActions

const TOOL_ACTION* allowedActions[]
Initial value:
static TOOL_ACTION cursorLeft
Definition actions.h:168
static TOOL_ACTION zoomOutCenter
Definition actions.h:132
static TOOL_ACTION zoomIn
Definition actions.h:129
static TOOL_ACTION cursorLeftFast
Definition actions.h:173
static TOOL_ACTION cursorDown
Definition actions.h:167
static TOOL_ACTION zoomOut
Definition actions.h:130
static TOOL_ACTION cursorRightFast
Definition actions.h:174
static TOOL_ACTION zoomCenter
Definition actions.h:137
static TOOL_ACTION panDown
Definition actions.h:181
static TOOL_ACTION cursorDownFast
Definition actions.h:172
static TOOL_ACTION cursorUpFast
Definition actions.h:171
static TOOL_ACTION panLeft
Definition actions.h:182
static TOOL_ACTION zoomFitScreen
Definition actions.h:138
static TOOL_ACTION panUp
Definition actions.h:180
static TOOL_ACTION zoomFitObjects
Definition actions.h:139
static TOOL_ACTION zoomInCenter
Definition actions.h:131
static TOOL_ACTION panRight
Definition actions.h:183
static TOOL_ACTION cursorUp
Cursor control with keyboard.
Definition actions.h:166
static TOOL_ACTION cursorRight
Definition actions.h:169

Definition at line 1053 of file pcb_selection_tool.cpp.