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 <unit_format.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>

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_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

#define SELECTED_ITEMS_LAYER   Dwgs_User

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 ( EDA_UNITS_T  aUnits,
wxPoint  aCoord 
)
static

Definition at line 760 of file dialog_pad_properties.cpp.

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

Referenced by DIALOG_PAD_PROPERTIES::displayPrimitivesList().

761 {
762  return wxString::Format( "(X:%s Y:%s)",
763  MessageTextFromValue( aUnits, aCoord.x, true ),
764  MessageTextFromValue( aUnits, aCoord.y, true ) );
765 }
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

Variable Documentation

PAD_ATTR_T code_type[]
static
Initial value:
=
{
PAD_ATTRIB_CONN
}
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 76 of file dialog_pad_properties.cpp.

Referenced by DIALOG_PAD_PROPERTIES::OnUpdateUI(), 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
static LSET ApertureMask()
layer set for an aperture pad
Definition: class_pad.cpp:127

Definition at line 86 of file dialog_pad_properties.cpp.