KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_control.cpp File Reference
#include "pcb_control.h"
#include "convert_basic_shapes_to_polygon.h"
#include <advanced_config.h>
#include <collectors.h>
#include <kiplatform/ui.h>
#include <kiway.h>
#include <tools/edit_tool.h>
#include <tools/board_inspection_tool.h>
#include <router/router_tool.h>
#include <pgm_base.h>
#include <tools/pcb_actions.h>
#include <tools/pcb_picker_tool.h>
#include <tools/pcb_selection_tool.h>
#include <tools/board_reannotate_tool.h>
#include <3d_viewer/eda_3d_viewer_frame.h>
#include <board_commit.h>
#include <board.h>
#include <board_design_settings.h>
#include <board_item.h>
#include <board_stackup_manager/stackup_predefined_prms.h>
#include <clipboard.h>
#include <design_block.h>
#include <dialogs/dialog_paste_special.h>
#include <dialogs/html_message_box.h>
#include <pcb_dimension.h>
#include <geometry/convex_hull.h>
#include <geometry/shape_utils.h>
#include <gal/graphics_abstraction_layer.h>
#include <footprint.h>
#include <constraints/pcb_constraint.h>
#include <pad.h>
#include <netinfo.h>
#include <layer_pairs.h>
#include <pcb_group.h>
#include <pcb_layer_presentation.h>
#include <pcb_reference_image.h>
#include <pcb_textbox.h>
#include <board_tables/generated_table_refresh.h>
#include <pcb_drill_chart.h>
#include <dialogs/dialog_drill_groups.h>
#include <pcb_drill_map.h>
#include <pcb_table.h>
#include <pcb_tablecell.h>
#include <pcb_track.h>
#include <pcb_generator.h>
#include <tools/pcb_edit_table_tool.h>
#include <project_pcb.h>
#include <wildcards_and_files_ext.h>
#include <filename_resolver.h>
#include <3d_cache/3d_cache.h>
#include <embedded_files.h>
#include <wx/filename.h>
#include <zone.h>
#include <confirm.h>
#include <kidialog.h>
#include <connectivity/connectivity_data.h>
#include <core/kicad_algo.h>
#include <dialogs/hotkey_cycle_popup.h>
#include <dialogs/dialog_map_layers.h>
#include <pcb_io/common/plugin_common_layer_mapping.h>
#include <kicad_clipboard.h>
#include <origin_viewitem.h>
#include <pcb_edit_frame.h>
#include <pcb_painter.h>
#include <settings/color_settings.h>
#include <string>
#include <tool/tool_manager.h>
#include <tools/multichannel_tool.h>
#include <footprint_edit_frame.h>
#include <footprint_editor_settings.h>
#include <footprint_viewer_frame.h>
#include <widgets/appearance_controls.h>
#include <widgets/pcb_design_block_pane.h>
#include <widgets/wx_progress_reporters.h>
#include <widgets/wx_infobar.h>
#include <pcb_io/pcb_io.h>
#include <wx/hyperlink.h>

Go to the source code of this file.

Macros

#define ALPHA_MIN   0.20
 
#define ALPHA_MAX   1.00
 
#define ALPHA_STEP   0.05
 
#define HITTEST_THRESHOLD_PIXELS   5
 

Functions

bool AskLoadBoardFileName (PCB_EDIT_FRAME *aParent, wxString *aFileName, int aCtl=0)
 Show a wxFileDialog asking for a BOARD filename to open.
 
PCB_TABLE * Build_Board_Stackup_Table (BOARD *aBoard, EDA_UNITS aDisplayUnits)
 
PCB_TABLE * Build_Board_Characteristics_Table (BOARD *aBoard, EDA_UNITS aDisplayUnits)
 
template<class T>
void Flip (T &aValue)
 
static void pasteFootprintItemsToFootprintEditor (FOOTPRINT *aClipFootprint, BOARD *aBoard, std::vector< BOARD_ITEM * > &aPastedItems)
 

Macro Definition Documentation

◆ ALPHA_MAX

#define ALPHA_MAX   1.00

Definition at line 615 of file pcb_control.cpp.

◆ ALPHA_MIN

#define ALPHA_MIN   0.20

Definition at line 614 of file pcb_control.cpp.

Referenced by PCB_CONTROL::LayerAlphaDec().

◆ ALPHA_STEP

#define ALPHA_STEP   0.05

Definition at line 616 of file pcb_control.cpp.

Referenced by PCB_CONTROL::LayerAlphaDec(), and PCB_CONTROL::LayerAlphaInc().

◆ HITTEST_THRESHOLD_PIXELS

#define HITTEST_THRESHOLD_PIXELS   5

Definition at line 816 of file pcb_control.cpp.

Function Documentation

◆ AskLoadBoardFileName()

bool AskLoadBoardFileName ( PCB_EDIT_FRAME * aParent,
wxString * aFileName,
int aCtl = 0 )
extern

◆ Build_Board_Characteristics_Table()

◆ Build_Board_Stackup_Table()

◆ Flip()

◆ pasteFootprintItemsToFootprintEditor()

static void pasteFootprintItemsToFootprintEditor ( FOOTPRINT * aClipFootprint,
BOARD * aBoard,
std::vector< BOARD_ITEM * > & aPastedItems )
static