KiCad PCB EDA Suite
dialog_pad_properties.cpp File Reference

dialog pad properties editor. More...

#include <fctsys.h>
#include <common.h>
#include <gr_basic.h>
#include <gal/graphics_abstraction_layer.h>
#include <trigo.h>
#include <class_drawpanel.h>
#include <confirm.h>
#include <pcbnew.h>
#include <wxBasePcbFrame.h>
#include <base_units.h>
#include <unit_format.h>
#include <board_commit.h>
#include <class_board.h>
#include <class_module.h>
#include <dialog_pad_properties.h>
#include <html_messagebox.h>

Go to the source code of this file.

Enumerations

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

Functions

static wxString formatCoord (wxPoint aCoord)
 

Variables

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

Detailed Description

dialog pad properties editor.

Definition in file dialog_pad_properties.cpp.

Enumeration Type Documentation

Enumerator
CHOICE_SHAPE_CIRCLE 
CHOICE_SHAPE_OVAL 
CHOICE_SHAPE_RECT 
CHOICE_SHAPE_TRAPEZOID 
CHOICE_SHAPE_ROUNDRECT 
CHOICE_SHAPE_CUSTOM_CIRC_ANCHOR 
CHOICE_SHAPE_CUSTOM_RECT_ANCHOR 

Definition at line 65 of file dialog_pad_properties.cpp.

Function Documentation

static wxString formatCoord ( wxPoint  aCoord)
static

Definition at line 705 of file dialog_pad_properties.cpp.

References CoordinateToString(), Format(), wxPoint::x, and wxPoint::y.

Referenced by DIALOG_PAD_PROPERTIES::displayPrimitivesList().

706 {
707  return wxString::Format( "(X:%s Y:%s)",
708  CoordinateToString( aCoord.x, true ),
709  CoordinateToString( aCoord.y, true ) );
710 }
wxString CoordinateToString(int aValue, bool aConvertToMils)
Function CoordinateToString is a helper to convert the integer coordinate aValue to a string in inche...
Definition: base_units.cpp:118
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

Variable Documentation

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

Definition at line 77 of file dialog_pad_properties.cpp.

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

const LSET std_pad_layers[]
static
Initial value:
= {
}
static LSET StandardMask()
layer set for a through hole pad
Definition: class_pad.cpp:99
static LSET UnplatedHoleMask()
layer set for a mechanical unplated through hole pad
Definition: class_pad.cpp:120
static LSET SMDMask()
layer set for a SMD pad on Front layer
Definition: class_pad.cpp:106
static LSET ConnSMDMask()
layer set for a SMD pad on Front layer used for edge board connectors
Definition: class_pad.cpp:113

Definition at line 86 of file dialog_pad_properties.cpp.