KiCad PCB EDA Suite
dialog_erc.cpp File Reference

Electrical Rules Check dialog implementation. More...

#include <fctsys.h>
#include <class_drawpanel.h>
#include <kicad_string.h>
#include <gestfich.h>
#include <pgm_base.h>
#include <class_sch_screen.h>
#include <schframe.h>
#include <invoke_sch_dialog.h>
#include <project.h>
#include <kiface_i.h>
#include <bitmaps.h>
#include <netlist.h>
#include <class_netlist_object.h>
#include <sch_marker.h>
#include <sch_sheet.h>
#include <lib_pin.h>
#include <dialog_erc.h>
#include <erc.h>
#include <id.h>

Go to the source code of this file.

Macros

#define ID_MATRIX_0   1800
 

Functions

 EVT_COMMAND_RANGE (ID_MATRIX_0, ID_MATRIX_0+(PINTYPE_COUNT *PINTYPE_COUNT)-1, wxEVT_COMMAND_BUTTON_CLICKED, DIALOG_ERC::ChangeErrorLevel) DIALOG_ERC
 
wxDialog * InvokeDialogERC (SCH_EDIT_FRAME *aCaller)
 Create the modeless DIALOG_ERC and show it, return something to destroy or close it. More...
 

Variables

int DiagErc [PINTYPE_COUNT][PINTYPE_COUNT]
 
int DefaultDiagErc [PINTYPE_COUNT][PINTYPE_COUNT]
 Default Look up table which gives the ERC error level for a pair of connected pins Same as DiagErc, but cannot be modified. More...
 

Detailed Description

Electrical Rules Check dialog implementation.

Definition in file dialog_erc.cpp.

Macro Definition Documentation

#define ID_MATRIX_0   1800

Definition at line 64 of file dialog_erc.cpp.

Referenced by DIALOG_ERC::ChangeErrorLevel(), and DIALOG_ERC::ReBuildMatrixPanel().

Function Documentation

EVT_COMMAND_RANGE ( ID_MATRIX_0  ,
ID_MATRIX_0+(PINTYPE_COUNT *PINTYPE_COUNT)-  1,
wxEVT_COMMAND_BUTTON_CLICKED  ,
DIALOG_ERC::ChangeErrorLevel   
)

Definition at line 68 of file dialog_erc.cpp.

73  :
74  DIALOG_ERC_BASE( parent, ID_DIALOG_ERC // parent looks for this ID explicitly
75  )
76 {
77  m_parent = parent;
78  m_lastMarkerFound = NULL;
79  Init();
80 
81  // Now all widgets have the size fixed, call FinishDialogSettings
82  FinishDialogSettings();
83 }
Class DIALOG_ERC_BASE.
eeschema ERC modeless dialog ID
Definition: id.h:271
wxDialog* InvokeDialogERC ( SCH_EDIT_FRAME aCaller)

Create the modeless DIALOG_ERC and show it, return something to destroy or close it.

The dialog will have ID_DIALOG_ERC from id.h

Definition at line 613 of file dialog_erc.cpp.

References DIALOG_SHIM::Show().

Referenced by SCH_EDIT_FRAME::OnErc().

614 {
615  // This is a modeless dialog, so new it rather than instantiating on stack.
616  DIALOG_ERC* dlg = new DIALOG_ERC( aCaller );
617 
618  dlg->Show( true );
619 
620  return dlg; // wxDialog is information hiding about DIALOG_ERC.
621 }
bool Show(bool show) override

Variable Documentation

int DefaultDiagErc[PINTYPE_COUNT][PINTYPE_COUNT]

Default Look up table which gives the ERC error level for a pair of connected pins Same as DiagErc, but cannot be modified.

Used to init or reset DiagErc note also, to avoid inconsistancy: DefaultDiagErc[i][j] = DefaultDiagErc[j][i]

Definition at line 133 of file erc.cpp.

Referenced by DIALOG_ERC::ReBuildMatrixPanel(), and DIALOG_ERC::ResetDefaultERCDiag().