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 <sch_screen.h>
#include <sch_edit_frame.h>
#include <invoke_sch_dialog.h>
#include <project.h>
#include <kiface_i.h>
#include <bitmaps.h>
#include <reporter.h>
#include <wildcards_and_files_ext.h>
#include <netlist.h>
#include <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 66 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 70 of file dialog_erc.cpp.

75  :
76  DIALOG_ERC_BASE( parent, ID_DIALOG_ERC // parent looks for this ID explicitly
77  )
78 {
79  m_parent = parent;
80  m_lastMarkerFound = NULL;
81  Init();
82 
83  // Now all widgets have the size fixed, call FinishDialogSettings
84  FinishDialogSettings();
85 }
Class DIALOG_ERC_BASE.
eeschema ERC modeless dialog ID
Definition: id.h:284
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 601 of file dialog_erc.cpp.

References DIALOG_ERC::DIALOG_ERC(), and DIALOG_SHIM::Show().

Referenced by SCH_EDIT_FRAME::OnErc().

602 {
603  // This is a modeless dialog, so new it rather than instantiating on stack.
604  DIALOG_ERC* dlg = new DIALOG_ERC( aCaller );
605 
606  dlg->Show( true );
607 
608  return dlg; // wxDialog is information hiding about DIALOG_ERC.
609 }
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().