KiCad PCB EDA Suite
|
#include "tools/position_relative_tool.h"
#include <board_commit.h>
#include <collectors.h>
#include <dialogs/dialog_position_relative.h>
#include <dialogs/dialog_set_offset.h>
#include <footprint.h>
#include <footprint_editor_settings.h>
#include <gal/graphics_abstraction_layer.h>
#include <kiplatform/ui.h>
#include <pad.h>
#include <pcb_group.h>
#include <preview_items/two_point_assistant.h>
#include <preview_items/two_point_geom_manager.h>
#include <pcb_painter.h>
#include <pgm_base.h>
#include <preview_items/ruler_item.h>
#include <render_settings.h>
#include <settings/settings_manager.h>
#include <status_popup.h>
#include <tools/pcb_actions.h>
#include <tools/pcb_grid_helper.h>
#include <tools/pcb_selection_tool.h>
#include <tools/pcb_picker_tool.h>
#include <view/view_controls.h>
Go to the source code of this file.
Functions | |
static void | moveSelectionBy (const PCB_SELECTION &aSelection, const VECTOR2I &aMoveVec, BOARD_COMMIT &commit) |
Move each item in the selection by the given vector. | |
static void | positionRelativeClientSelectionFilter (const VECTOR2I &aPt, GENERAL_COLLECTOR &aCollector, PCB_SELECTION_TOOL *sTool) |
Position relative tools all use the same filter for selecting items. | |
|
static |
Move each item in the selection by the given vector.
If any pads are part of a footprint, the whole footprint is moved.
Definition at line 56 of file position_relative_tool.cpp.
References COMMIT::Modify(), and BOARD_ITEM::Move().
Referenced by POSITION_RELATIVE_TOOL::PositionRelativeInteractively(), and POSITION_RELATIVE_TOOL::RelativeItemSelectionMove().
|
static |
Position relative tools all use the same filter for selecting items.
Definition at line 74 of file position_relative_tool.cpp.
References PCB_SELECTION_TOOL::FilterCollectorForFreePads(), PCB_SELECTION_TOOL::FilterCollectorForHierarchy(), and PCB_SELECTION_TOOL::FilterCollectorForMarkers().
Referenced by POSITION_RELATIVE_TOOL::PositionRelative(), and POSITION_RELATIVE_TOOL::PositionRelativeInteractively().