KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_edit_tool.cpp File Reference
#include <kiway.h>
#include <tool/picker_tool.h>
#include <tools/sch_edit_tool.h>
#include <tools/ee_inspection_tool.h>
#include <tools/sch_line_wire_bus_tool.h>
#include <tools/sch_move_tool.h>
#include <tools/sch_drawing_tools.h>
#include <ee_actions.h>
#include <confirm.h>
#include <string_utils.h>
#include <sch_bitmap.h>
#include <sch_bus_entry.h>
#include <sch_commit.h>
#include <sch_junction.h>
#include <sch_marker.h>
#include <sch_rule_area.h>
#include <sch_sheet_pin.h>
#include <sch_textbox.h>
#include <sch_table.h>
#include <drawing_sheet/ds_proxy_view_item.h>
#include <eeschema_id.h>
#include <dialogs/dialog_change_symbols.h>
#include <dialogs/dialog_image_properties.h>
#include <dialogs/dialog_line_properties.h>
#include <dialogs/dialog_wire_bus_properties.h>
#include <dialogs/dialog_symbol_properties.h>
#include <dialogs/dialog_sheet_pin_properties.h>
#include <dialogs/dialog_field_properties.h>
#include <dialogs/dialog_junction_props.h>
#include <dialogs/dialog_shape_properties.h>
#include <dialogs/dialog_label_properties.h>
#include <dialogs/dialog_text_properties.h>
#include <dialogs/dialog_tablecell_properties.h>
#include <dialogs/dialog_table_properties.h>
#include <pgm_base.h>
#include <settings/settings_manager.h>
#include <symbol_editor_settings.h>
#include <core/kicad_algo.h>
#include <view/view_controls.h>
#include <wx/textdlg.h>
#include <project/net_settings.h>

Go to the source code of this file.

Classes

class  SYMBOL_UNIT_MENU
 
class  BODY_STYLE_MENU
 
class  ALT_PIN_FUNCTION_MENU
 
class  PIN_TRICKS_MENU
 

Macros

#define HITTEST_THRESHOLD_PIXELS   5
 

Typedefs

using E_C = EE_CONDITIONS
 

Functions

static void swapFieldPositionsWithMatching (std::vector< SCH_FIELD > &aAFields, std::vector< SCH_FIELD > &aBFields, unsigned aFallbackRotationsCCW)
 Swap the positions of the fields in the two lists, aAFields and aBFields, relative to their parent positions.
 

Variables

const std::vector< KICAD_TswappableItems
 
static std::vector< KICAD_TdeletableItems
 

Macro Definition Documentation

◆ HITTEST_THRESHOLD_PIXELS

#define HITTEST_THRESHOLD_PIXELS   5

Definition at line 1641 of file sch_edit_tool.cpp.

Typedef Documentation

◆ E_C

using E_C = EE_CONDITIONS

Definition at line 250 of file sch_edit_tool.cpp.

Function Documentation

◆ swapFieldPositionsWithMatching()

static void swapFieldPositionsWithMatching ( std::vector< SCH_FIELD > &  aAFields,
std::vector< SCH_FIELD > &  aBFields,
unsigned  aFallbackRotationsCCW 
)
static

Swap the positions of the fields in the two lists, aAFields and aBFields, relative to their parent positions.

If a field is in both lists, it will be swapped to the position of the matching field on the counterpart.

If a field is in only one list, it will simply be rotated by aFallbackRotation (CW or CCW depending on which list it is in)

Definition at line 1200 of file sch_edit_tool.cpp.

References SCH_FIELD::GetCanonicalName(), EDA_TEXT::GetHorizJustify(), SCH_FIELD::GetParentPosition(), SCH_FIELD::GetPosition(), EDA_TEXT::GetTextAngle(), EDA_TEXT::GetVertJustify(), name, SCH_FIELD::Rotate(), EDA_TEXT::SetHorizJustify(), SCH_FIELD::SetPosition(), EDA_TEXT::SetTextAngle(), and EDA_TEXT::SetVertJustify().

Referenced by SCH_EDIT_TOOL::Swap().

Variable Documentation

◆ deletableItems

std::vector<KICAD_T> deletableItems
static
Initial value:
=
{
}
@ SCH_TABLE_T
Definition: typeinfo.h:165
@ SCH_LINE_T
Definition: typeinfo.h:163
@ SCH_NO_CONNECT_T
Definition: typeinfo.h:160
@ SCH_SYMBOL_T
Definition: typeinfo.h:172
@ SCH_TABLECELL_T
Definition: typeinfo.h:166
@ SCH_FIELD_T
Definition: typeinfo.h:150
@ SCH_DIRECTIVE_LABEL_T
Definition: typeinfo.h:171
@ SCH_LABEL_T
Definition: typeinfo.h:167
@ SCH_SHEET_T
Definition: typeinfo.h:174
@ SCH_MARKER_T
Definition: typeinfo.h:158
@ SCH_SHAPE_T
Definition: typeinfo.h:149
@ SCH_RULE_AREA_T
Definition: typeinfo.h:170
@ SCH_HIER_LABEL_T
Definition: typeinfo.h:169
@ SCH_BUS_BUS_ENTRY_T
Definition: typeinfo.h:162
@ SCH_SHEET_PIN_T
Definition: typeinfo.h:173
@ SCH_TEXT_T
Definition: typeinfo.h:151
@ SCH_BUS_WIRE_ENTRY_T
Definition: typeinfo.h:161
@ SCH_BITMAP_T
Definition: typeinfo.h:164
@ SCH_TEXTBOX_T
Definition: typeinfo.h:152
@ SCH_GLOBAL_LABEL_T
Definition: typeinfo.h:168
@ SCH_JUNCTION_T
Definition: typeinfo.h:159

Definition at line 1524 of file sch_edit_tool.cpp.

Referenced by SCH_EDIT_TOOL::DoDelete(), and SCH_EDIT_TOOL::InteractiveDelete().

◆ swappableItems