49 int id =
event.GetId();
84 if( layer == curLayer )
94 if(
GetBoard()->GetCopperLayerCount() < 2 )
105 if( layer !=
B_Cu && layer !=
F_Cu && layer >=
GetBoard()->GetCopperLayerCount() - 1 )
124 switch( aItem->
Type() )
173 if( aDimension ==
nullptr )
class ALIGNED_DIMENSION, a linear dimension (graphic item)
class LEADER, a leader dimension (graphic item)
class FP_TEXT, text in a footprint
void OnEditItemRequest(BOARD_ITEM *aItem) override
Install the corresponding dialog editor for the given item.
This file is part of the common library TODO brief description.
This file is part of the common library.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
class PCB_GROUP, a set of BOARD_ITEMs
class CENTER_DIMENSION, a center point marking (graphic item)
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
class PCB_TEXT, text on a layer
class PAD, a pad in a footprint
void ShowTargetOptionsDialog(PCB_TARGET *aTarget)
void ShowDimensionPropertiesDialog(DIMENSION_BASE *aDimension)
const PCB_DISPLAY_OPTIONS & GetDisplayOptions() const
Display options control the way tracks, vias, outlines and other things are shown (for instance solid...
void ShowTextPropertiesDialog(BOARD_ITEM *aText)
void ExportFootprintsToLibrary(bool aStoreInNewLib, const wxString &aLibName=wxEmptyString, wxString *aLibPath=NULL)
Save footprints in a library:
void ShowFootprintPropertiesDialog(FOOTPRINT *aFootprint)
virtual PCB_LAYER_ID GetActiveLayer() const
LAYER_NUM GetLayerSelection() const
Container for display options like enable/disable some optional drawings.
PCB_LAYER_ID
A quick note on layer IDs:
Non-active layers are shown normally (no high-contrast mode)
HIGH_CONTRAST_MODE m_ContrastModeDisplay
How inactive layers are displayed.
class ZONE, a copper pour area
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
class PCB_TARGET, a target (graphic item)
class FOOTPRINT, a footprint
void Edit_Zone_Params(ZONE *zone_container)
Edit params (layer, clearance, ...) for a zone outline.
void ShowGraphicItemPropertiesDialog(BOARD_ITEM *aItem)
void Process_Special_Functions(wxCommandEvent &event)
bool IsCopperLayer(LAYER_NUM aLayerId)
Tests whether a layer is a copper layer.
class ORTHOGONAL_DIMENSION, a linear dimension constrained to x/y
PCB_LAYER_BOX_SELECTOR * m_SelLayerBox
void ShowPadPropertiesDialog(PAD *aPad)
void SwitchLayer(wxDC *DC, PCB_LAYER_ID layer) override
class PCB_SHAPE, a segment not on copper layers
void SetActiveLayer(PCB_LAYER_ID aLayer) override
Change the currently active layer to aLayer and also update the APPEARANCE_CONTROLS.
PCB_LAYER_ID ToLAYER_ID(int aLayer)
static TOOL_ACTION groupProperties
KICAD_T Type() const
Returns the type of object.