KiCad PCB EDA Suite
dialog_pad_properties.cpp File Reference
#include <fctsys.h>
#include <common.h>
#include <gr_basic.h>
#include <gal/graphics_abstraction_layer.h>
#include <view/view_controls.h>
#include <trigo.h>
#include <class_drawpanel.h>
#include <confirm.h>
#include <pcbnew.h>
#include <pcb_base_frame.h>
#include <base_units.h>
#include <board_commit.h>
#include <bitmaps.h>
#include <class_board.h>
#include <class_module.h>
#include <pcb_painter.h>
#include <widgets/net_selector.h>
#include <dialog_pad_properties.h>
#include <html_messagebox.h>
#include <convert_basic_shapes_to_polygon.h>

Go to the source code of this file.

Macros

#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_CUSTOM_CIRC_ANCHOR, CHOICE_SHAPE_CUSTOM_RECT_ANCHOR
}
 

Functions

static wxString formatCoord (EDA_UNITS_T aUnits, wxPoint aCoord)
 

Variables

static PAD_SHAPE_T code_shape []
 
static PAD_ATTR_T code_type []
 
static const LSET std_pad_layers []
 

Macro Definition Documentation

◆ SELECTED_ITEMS_LAYER

#define SELECTED_ITEMS_LAYER   Dwgs_User

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_CUSTOM_CIRC_ANCHOR 
CHOICE_SHAPE_CUSTOM_RECT_ANCHOR 

Definition at line 69 of file dialog_pad_properties.cpp.

Function Documentation

◆ formatCoord()

static wxString formatCoord ( EDA_UNITS_T  aUnits,
wxPoint  aCoord 
)
static

Definition at line 809 of file dialog_pad_properties.cpp.

810 {
811  return wxString::Format( "(X:%s Y:%s)",
812  MessageTextFromValue( aUnits, aCoord.x, true ),
813  MessageTextFromValue( aUnits, aCoord.y, true ) );
814 }
wxString MessageTextFromValue(EDA_UNITS_T aUnits, int aValue, bool aUseMils)
Definition: base_units.cpp:125
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205

References Format(), and MessageTextFromValue().

Referenced by DIALOG_PAD_PROPERTIES::displayPrimitivesList().

Variable Documentation

◆ code_shape

◆ code_type

PAD_ATTR_T code_type[]
static
Initial value:
=
{
}
like PAD_STANDARD, but not plated mechanical use only, no connection allowed
Definition: pad_shapes.h:66
Smd pad, appears on the solder paste layer (default)
Definition: pad_shapes.h:62
Like smd, does not appear on the solder paste layer (default) note also has a special attribute in Ge...
Definition: pad_shapes.h:63

Definition at line 81 of file dialog_pad_properties.cpp.

Referenced by DIALOG_PAD_PROPERTIES::OnUpdateUI(), DIALOG_PAD_PROPERTIES::PadTypeSelected(), and DIALOG_PAD_PROPERTIES::transferDataToPad().

◆ std_pad_layers

const LSET std_pad_layers[]
static
Initial value:
=
{
}
static LSET StandardMask()
layer set for a through hole pad
Definition: class_pad.cpp:101
static LSET UnplatedHoleMask()
layer set for a mechanical unplated through hole pad
Definition: class_pad.cpp:122
static LSET SMDMask()
layer set for a SMD pad on Front layer
Definition: class_pad.cpp:108
static LSET ConnSMDMask()
layer set for a SMD pad on Front layer used for edge board connectors
Definition: class_pad.cpp:115
static LSET ApertureMask()
layer set for an aperture pad
Definition: class_pad.cpp:129

Definition at line 91 of file dialog_pad_properties.cpp.

Referenced by DIALOG_PAD_PROPERTIES::PadTypeSelected().