KiCad PCB EDA Suite
dialog_pad_properties.cpp File Reference
#include <base_units.h>
#include <bitmaps.h>
#include <board_commit.h>
#include <board.h>
#include <board_design_settings.h>
#include <footprint.h>
#include <confirm.h>
#include <core/arraydim.h>
#include <convert_basic_shapes_to_polygon.h>
#include <geometry/shape_segment.h>
#include <dialog_pad_properties.h>
#include <gal/graphics_abstraction_layer.h>
#include <dialogs/html_message_box.h>
#include <macros.h>
#include <pad.h>
#include <pcb_base_frame.h>
#include <footprint_edit_frame.h>
#include <pcb_painter.h>
#include <pcbnew_settings.h>
#include <settings/color_settings.h>
#include <view/view_controls.h>
#include <widgets/net_selector.h>
#include <tool/tool_manager.h>
#include <tools/pad_tool.h>
#include <advanced_config.h>
#include <wx/choicdlg.h>

Go to the source code of this file.

Macros

#define PTH_DLG_TYPE   0
 
#define SMD_DLG_TYPE   1
 
#define CONN_DLG_TYPE   2
 
#define NPTH_DLG_TYPE   3
 
#define APERTURE_DLG_TYPE   4
 
#define SELECTED_ITEMS_LAYER   Dwgs_User
 

Enumerations

enum  CODE_CHOICE {
  CHOICE_SHAPE_CIRCLE = 0, CHOICE_SHAPE_OVAL, CHOICE_SHAPE_RECT, CHOICE_SHAPE_TRAPEZOID,
  CHOICE_SHAPE_ROUNDRECT, CHOICE_SHAPE_CHAMFERED_RECT, CHOICE_SHAPE_CHAMFERED_ROUNDED_RECT, CHOICE_SHAPE_CUSTOM_CIRC_ANCHOR,
  CHOICE_SHAPE_CUSTOM_RECT_ANCHOR
}
 

Functions

static wxString formatCoord (EDA_UNITS aUnits, wxPoint aCoord)
 

Variables

static PAD_SHAPE code_shape []
 
static PAD_ATTRIB code_type []
 

Macro Definition Documentation

◆ APERTURE_DLG_TYPE

#define APERTURE_DLG_TYPE   4

Definition at line 102 of file dialog_pad_properties.cpp.

◆ CONN_DLG_TYPE

#define CONN_DLG_TYPE   2

Definition at line 100 of file dialog_pad_properties.cpp.

◆ NPTH_DLG_TYPE

#define NPTH_DLG_TYPE   3

Definition at line 101 of file dialog_pad_properties.cpp.

◆ PTH_DLG_TYPE

#define PTH_DLG_TYPE   0

Definition at line 98 of file dialog_pad_properties.cpp.

◆ SELECTED_ITEMS_LAYER

#define SELECTED_ITEMS_LAYER   Dwgs_User

◆ SMD_DLG_TYPE

#define SMD_DLG_TYPE   1

Definition at line 99 of file dialog_pad_properties.cpp.

Enumeration Type Documentation

◆ CODE_CHOICE

Enumerator
CHOICE_SHAPE_CIRCLE 
CHOICE_SHAPE_OVAL 
CHOICE_SHAPE_RECT 
CHOICE_SHAPE_TRAPEZOID 
CHOICE_SHAPE_ROUNDRECT 
CHOICE_SHAPE_CHAMFERED_RECT 
CHOICE_SHAPE_CHAMFERED_ROUNDED_RECT 
CHOICE_SHAPE_CUSTOM_CIRC_ANCHOR 
CHOICE_SHAPE_CUSTOM_RECT_ANCHOR 

Definition at line 72 of file dialog_pad_properties.cpp.

Function Documentation

◆ formatCoord()

static wxString formatCoord ( EDA_UNITS  aUnits,
wxPoint  aCoord 
)
static

Definition at line 671 of file dialog_pad_properties.cpp.

672 {
673  return wxString::Format( "(X:%s Y:%s)",
674  MessageTextFromValue( aUnits, aCoord.x ),
675  MessageTextFromValue( aUnits, aCoord.y ) );
676 }
wxString MessageTextFromValue(EDA_UNITS aUnits, int aValue, bool aAddUnitLabel, EDA_DATA_TYPE aType)
Convert a value to a string using double notation.
Definition: base_units.cpp:104
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:200

References Format(), and MessageTextFromValue().

Referenced by DIALOG_PAD_PROPERTIES::displayPrimitivesList().

Variable Documentation

◆ code_shape

◆ code_type

PAD_ATTRIB code_type[]
static
Initial value:
=
{
}
Like smd, does not appear on the solder paste layer (default)
Smd pad, appears on the solder paste layer (default)
Plated through hole pad.
like PAD_PTH, but not plated

Definition at line 86 of file dialog_pad_properties.cpp.

Referenced by DIALOG_PAD_PROPERTIES::transferDataToPad().