25#include <wx/filedlg.h>
27#include <wx/statusbr.h>
28#include <wx/wupdlock.h>
121 auto installModel = [
this](
RC_TREE_MODEL*& aModel, wxDataViewCtrl* aCtrl )
125 aCtrl->AssociateModel( aModel );
150 listItem.SetText( str );
151 listItem.SetData( code );
163 { wxID_CANCEL,
_(
"Close" ) } } );
173 m_drcStatusBar =
new wxStatusBar(
this, wxID_ANY, wxSTB_DEFAULT_STYLE );
176 int statusBarWidths[2] = { FromDIP( 12 ), -1 };
179 if( wxSizer* mainSizer = GetSizer() )
208 g_lastIgnored.push_back( { m_ignoredList->GetItemText( ii ), m_ignoredList->GetItemData( ii ) } );
227 wxDataViewCtrl* ctrl =
dynamic_cast<wxDataViewCtrl*
>( aEvent.GetEventObject() );
232 bool overLink =
hitTestLink( ctrl, aEvent.GetPosition(),
nullptr );
233 ctrl->SetCursor( overLink ? wxCursor( wxCURSOR_HAND ) : wxNullCursor );
241 wxDataViewCtrl* ctrl =
dynamic_cast<wxDataViewCtrl*
>( aEvent.GetEventObject() );
244 if( ctrl &&
hitTestLink( ctrl, aEvent.GetPosition(), &href ) )
245 wxLaunchDefaultBrowser( href );
251 wxDataViewModel*
model = aCtrl->GetModel();
257 wxDataViewColumn* col =
nullptr;
258 aCtrl->HitTest( aPoint, item, col );
260 if( !item.IsOk() || !col )
269 wxDataViewItemAttr attr;
271 model->GetValue( value, item, col->GetModelColumn() );
272 model->GetAttr( item, col->GetModelColumn(), attr );
274 wxRect cellRect = aCtrl->GetItemRect( item, col );
293 SetReturnCode( wxID_CANCEL );
315 int newValue =
KiROUND( cur * 1000.0 );
321 int elapsed =
static_cast<int>(
322 std::chrono::duration_cast<std::chrono::seconds>( std::chrono::steady_clock::now() -
m_drcStartTime )
332 tick = wxString::Format( wxT(
"%1$d min %2$d s" ), elapsed / 60, elapsed % 60 );
334 tick = wxString::Format( wxT(
"%d s" ), elapsed );
336 m_drcStatusBar->SetStatusText( wxString::Format(
_(
"Elapsed: %s" ), tick ), 1 );
350 Pgm().
App().SafeYieldFor(
this, wxEVT_CATEGORY_NATIVE_EVENTS );
387 menu.Append( 4205,
_(
"Report All Errors for Each Track" ),
388 _(
"If unchecked, only the first error will be reported for each track" ),
392 menu.AppendSeparator();
394 menu.Append( 4206,
_(
"Cross-probe Selected Items" ),
395 _(
"Highlight corresponding items on canvas when selected in the DRC list" ),
399 menu.Append( 4207,
_(
"Center on Cross-probe" ),
400 _(
"When cross-probing, scroll the canvas so that the item is visible" ),
405 int menu_id =
m_bMenu->GetPopupMenuSelectionFromUser( menu );
407 if( menu_id == 0 || menu_id == 4205 )
411 else if( menu_id == 2 || menu_id == 4206 )
415 else if( menu_id == 3 || menu_id == 4207 )
424 m_frame->ShowBoardSetupDialog(
_(
"Custom Rules" ),
this );
430 if(
int hotkey = aEvt.GetKeyCode() )
432 if( aEvt.ControlDown() )
434 if( aEvt.ShiftDown() )
458 if( zoneFillerTool->IsBusy() )
467 m_frame->GetBoard()->RecordDRCExclusions();
484 m_messages->Report(
_(
"DRC incomplete: could not compile custom design rules." )
485 + wxS(
" " )
486 + wxS(
"<a href='$CUSTOM_RULES'>" ) +
_(
"Show design rules." ) + wxT(
"</a>" ) );
499 for( std::reference_wrapper<RC_ITEM>& item : violations )
505 listItem.SetText( wxT(
" • " ) + item.get().GetErrorText(
true ) );
506 listItem.SetData( item.get().GetErrorCode() );
539 std::chrono::duration<double, std::milli>( std::chrono::steady_clock::now() -
m_drcStartTime ).count();
544 int totalSeconds =
KiROUND( elapsedMs / 1000.0 );
546 if( totalSeconds >= 60 )
547 return wxString::Format(
_(
"%1$d min %2$d s" ), totalSeconds / 60, totalSeconds % 60 );
549 return wxString::Format(
_(
"%.2f s" ), elapsedMs / 1000.0 );
554 m_messages->Report(
_(
"-------- DRC canceled by user.<br><br>" ) );
557 m_drcStatusBar->SetStatusText( wxString::Format(
_(
"Canceled after %s" ), formatElapsed() ), 1 );
564 m_drcStatusBar->SetStatusText( wxString::Format(
_(
"Completed in %s" ), formatElapsed() ), 1 );
628 std::shared_ptr<RC_ITEM> rc_item = node->
m_RcItem;
638 if( marker->GetRCItem() == rc_item )
640 parentMarker = marker;
664 LSET violationLayers;
670 std::vector<BOARD_ITEM*> items = { aItem };
672 if( parentMarker && parentMarker != aItem )
673 items.push_back( parentMarker );
683 m_frame->GetAppearancePanel()->SetLayerVisible( principalLayer,
true );
686 m_frame->SetActiveLayer( principalLayer );
690 if( !
m_frame->GetPcbNewSettings()->m_Display.m_ShowGlobalRatsnest )
697 m_frame->GetBoard()->GetConnectivity()->RunOnUnconnectedEdges(
713 if( item == a && item == b )
741 std::vector<BOARD_ITEM*> items;
749 for(
const KIID&
id : rc_item->GetIDs() )
753 if( candidate && candidate->GetNetCode() == net )
754 items.push_back( candidate );
759 items.push_back( item );
762 if( parentMarker && std::find( items.begin(), items.end(), parentMarker ) == items.end() )
764 items.push_back( parentMarker );
780 if( aEvent.GetItem().IsOk() )
802 std::shared_ptr<RC_ITEM> rcItem = node->m_RcItem;
804 std::shared_ptr<CONNECTIVITY_DATA> conn =
m_currentBoard->GetConnectivity();
808 switch(
bds().m_DRCSeverities[ rcItem->GetErrorCode() ] )
812 default: listName =
_(
"appropriate" );
break;
817 ID_EDIT_EXCLUSION_COMMENT = 4467,
819 ID_REMOVE_EXCLUSION_ALL,
821 ID_ADD_EXCLUSION_WITH_COMMENT,
822 ID_ADD_EXCLUSION_ALL,
823 ID_INSPECT_VIOLATION,
825 ID_SET_SEVERITY_TO_ERROR,
826 ID_SET_SEVERITY_TO_WARNING,
827 ID_SET_SEVERITY_TO_IGNORE,
831 if( rcItem->GetParent()->IsExcluded() )
833 menu.Append( ID_REMOVE_EXCLUSION,
834 _(
"Remove exclusion for this violation" ),
835 wxString::Format(
_(
"It will be placed back in the %s list" ), listName ) );
837 menu.Append( ID_EDIT_EXCLUSION_COMMENT,
838 _(
"Edit exclusion comment..." ) );
842 menu.Append( ID_REMOVE_EXCLUSION_ALL,
843 wxString::Format(
_(
"Remove all exclusions for violations of rule '%s'" ),
845 wxString::Format(
_(
"They will be placed back in the %s list" ), listName ) );
850 menu.Append( ID_ADD_EXCLUSION,
851 _(
"Exclude this violation" ),
852 wxString::Format(
_(
"It will be excluded from the %s list" ), listName ) );
854 menu.Append( ID_ADD_EXCLUSION_WITH_COMMENT,
855 _(
"Exclude with comment..." ),
856 wxString::Format(
_(
"It will be excluded from the %s list" ), listName ) );
860 menu.Append( ID_ADD_EXCLUSION_ALL,
861 wxString::Format(
_(
"Exclude all violations of rule '%s'..." ),
863 wxString::Format(
_(
"They will be excluded from the %s list" ), listName ) );
867 menu.AppendSeparator();
870 wxString fixDRCErrorMenuText = drcTool->FixDRCErrorMenuText( rcItem );
872 if( !inspectDRCErrorMenuText.IsEmpty() || !fixDRCErrorMenuText.IsEmpty() )
874 if( !inspectDRCErrorMenuText.IsEmpty() )
875 menu.Append( ID_INSPECT_VIOLATION, inspectDRCErrorMenuText );
877 if( !fixDRCErrorMenuText.IsEmpty() )
878 menu.Append( ID_FIX_VIOLATION, fixDRCErrorMenuText );
880 menu.AppendSeparator();
885 menu.Append( ID_SET_SEVERITY_TO_ERROR,
886 wxString::Format(
_(
"Change severity to Error for all '%s' violations" ),
887 rcItem->GetErrorText(
true ) ),
888 _(
"Violation severities can also be edited in Board Setup" ) );
892 menu.Append( ID_SET_SEVERITY_TO_WARNING,
893 wxString::Format(
_(
"Change severity to Warning for all '%s' violations" ),
894 rcItem->GetErrorText(
true ) ),
895 _(
"Violation severities can also be edited in Board Setup" ) );
898 menu.Append( ID_SET_SEVERITY_TO_IGNORE,
899 wxString::Format(
_(
"Ignore all '%s' violations" ), rcItem->GetErrorText(
true ) ),
900 _(
"Violations will not be checked or reported" ) );
902 menu.AppendSeparator();
904 menu.Append( ID_EDIT_SEVERITIES,
905 _(
"Edit violation severities..." ),
906 _(
"Open the Board Setup dialog" ) );
908 bool modified =
false;
909 int command = GetPopupMenuSelectionFromUser( menu );
913 case ID_EDIT_EXCLUSION_COMMENT:
916 WX_TEXT_ENTRY_DIALOG dlg(
this, wxEmptyString,
_(
"Exclusion Comment" ), marker->GetComment(),
true );
921 marker->SetExcluded(
true, dlg.
GetValue() );
935 case ID_REMOVE_EXCLUSION:
938 marker->SetExcluded(
false );
943 m_frame->GetBoard()->UpdateRatsnestExclusions();
944 m_frame->GetCanvas()->RedrawRatsnest();
948 m_frame->GetCanvas()->GetView()->Update( marker );
958 case ID_ADD_EXCLUSION:
959 case ID_ADD_EXCLUSION_WITH_COMMENT:
964 if( command == ID_ADD_EXCLUSION_WITH_COMMENT )
974 marker->SetExcluded(
true, comment );
982 m_frame->GetBoard()->UpdateRatsnestExclusions();
983 m_frame->GetCanvas()->RedrawRatsnest();
987 m_frame->GetCanvas()->GetView()->Update( marker );
1001 case ID_REMOVE_EXCLUSION_ALL:
1004 DRC_ITEM* candidateDrcItem =
static_cast<DRC_ITEM*
>( marker->GetRCItem().get() );
1008 marker->SetExcluded(
false );
1018 case ID_ADD_EXCLUSION_ALL:
1021 DRC_ITEM* candidateDrcItem =
static_cast<DRC_ITEM*
>( marker->GetRCItem().get() );
1025 marker->SetExcluded(
true );
1035 case ID_INSPECT_VIOLATION:
1039 case ID_FIX_VIOLATION:
1040 drcTool->FixDRCError( node->m_RcItem );
1043 case ID_SET_SEVERITY_TO_ERROR:
1048 if( marker->GetRCItem()->GetErrorCode() == rcItem->GetErrorCode() )
1049 m_frame->GetCanvas()->GetView()->Update( marker );
1057 case ID_SET_SEVERITY_TO_WARNING:
1062 if( marker->GetRCItem()->GetErrorCode() == rcItem->GetErrorCode() )
1063 m_frame->GetCanvas()->GetView()->Update( marker );
1071 case ID_SET_SEVERITY_TO_IGNORE:
1075 wxListItem listItem;
1077 listItem.SetText( wxT(
" • " ) + rcItem->GetErrorText(
true ) );
1078 listItem.SetData( rcItem->GetErrorCode() );
1084 std::vector<BOARD_ITEM*> toRemove;
1088 if( marker->GetRCItem()->GetErrorCode() == rcItem->GetErrorCode() )
1090 m_frame->GetCanvas()->GetView()->Remove( marker );
1091 toRemove.emplace_back( marker );
1101 m_frame->GetCanvas()->RedrawRatsnest();
1109 case ID_EDIT_SEVERITIES:
1110 m_frame->ShowBoardSetupDialog(
_(
"Violation Severity" ),
this );
1129 int errorCode = (int) event.m_item.GetData();
1136 menu.Check(
bds().GetSeverity( errorCode ),
true );
1138 int severity = GetPopupMenuSelectionFromUser( menu );
1142 if(
bds().m_DRCSeverities[ errorCode ] != severity )
1157 m_frame->ShowBoardSetupDialog(
_(
"Violation Severity" ),
this );
1163 if( aEvent.GetEventObject() ==
m_showAll )
1178 wxFileDialog dlg(
this,
_(
"Save Report File" ),
Prj().GetProjectPath(), fn.GetFullName(),
1180 wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
1184 if( dlg.ShowModal() != wxID_OK )
1189 if( fn.GetExt().IsEmpty() )
1192 if( !fn.IsAbsolute() )
1195 fn.MakeAbsolute( prj_path );
1201 bool success =
false;
1209 m_messages->Report( wxString::Format(
_(
"Report file '%s' created<br>" ), fn.GetFullPath() ) );
1211 DisplayError(
this, wxString::Format(
_(
"Failed to create file '%s'." ), fn.GetFullPath() ) );
1217 wxCommandEvent
dummy;
1232 SetReturnCode( wxID_CANCEL );
1255 m_frame->GetCanvas()->Refresh();
1326 m_frame->GetCanvas()->GetView()->Update( marker );
1352 m_frame->GetBoard()->DeleteMARKERs(
true, aIncludeExclusions );
1384 static bool s_includeExclusions =
false;
1386 int numExcluded = 0;
1397 if( numExcluded > 0 )
1399 wxMessageDialog dlg(
this,
_(
"Delete exclusions too?" ),
_(
"Delete All Markers" ),
1400 wxYES_NO | wxCANCEL | wxCENTER | wxICON_QUESTION );
1401 dlg.SetYesNoLabels(
_(
"Errors and Warnings Only" ),
1402 _(
"Errors, Warnings and Exclusions" ) );
1404 int ret = dlg.ShowModal();
1406 if( ret == wxID_CANCEL )
1408 else if( ret == wxID_NO )
1409 s_includeExclusions =
true;
1428 int numUnconnected = 0;
1429 int numFootprints = 0;
1432 int numWarnings = 0;
1433 int numExcluded = 0;
1459 bool errorsOverflowed =
false;
1460 bool warningsOverflowed =
false;
1461 bool markersOverflowed =
false;
1462 bool unconnectedOverflowed =
false;
1463 bool footprintsOverflowed =
false;
1469 if( drcEngine->IsErrorLimitExceeded( ii ) )
1472 errorsOverflowed =
true;
1474 warningsOverflowed =
true;
1479 unconnectedOverflowed =
true;
1481 unconnectedOverflowed =
true;
1492 footprintsOverflowed =
true;
1494 footprintsOverflowed =
true;
1499 markersOverflowed =
true;
1501 markersOverflowed =
true;
1513 num.Printf( markersOverflowed ? wxT(
"%d+" ) : wxT(
"%d" ), numMarkers );
1519 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1526 num.Printf( unconnectedOverflowed ? wxT(
"%d+" ) : wxT(
"%d" ), numUnconnected );
1532 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1539 num.Printf( footprintsOverflowed ? wxT(
"%d+" ) : wxT(
"%d" ), numFootprints );
1545 msg.Replace( wxT(
"%s" ),
_(
"not run" ) );
1550 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1563 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1573 if( !
m_drcRun && numWarnings == 0 )
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
static TOOL_ACTION excludeMarker
static TOOL_ACTION selectionClear
Clear the current selection.
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
std::map< int, SEVERITY > m_DRCSeverities
SEVERITY GetSeverity(int aDRCErrorCode) const
Return the severity of a given DRC error code.
std::set< DRC_EXCLUSION, DRC_EXCLUSION_COMPARE > m_DrcExclusions
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
const LSET & GetVisibleLayers() const
A proxy function that calls the correspondent function in m_BoardSettings.
const MARKERS & Markers() const
void FinalizeBulkRemove(std::vector< BOARD_ITEM * > &aRemovedItems)
Must be used if Remove() is used using a BULK_x REMOVE_MODE to generate a change event for listeners.
void Remove(BOARD_ITEM *aBoardItem, REMOVE_MODE aMode=REMOVE_MODE::NORMAL) override
Removes an item from the container.
BOARD_ITEM * ResolveItem(const KIID &aID, bool aAllowNullptrReturn=false) const
BOARD_CONNECTED_ITEM * Parent() const
CN_EDGE represents a point-to-point connection, whether realized or unrealized (ie: tracks etc.
std::shared_ptr< const CN_ANCHOR > GetSourceNode() const
std::shared_ptr< const CN_ANCHOR > GetTargetNode() const
const VECTOR2I GetTargetPos() const
const VECTOR2I GetSourcePos() const
wxCheckBox * m_cbRefillZones
wxBoxSizer * bSizerViolationsBox
wxButton * m_DeleteAllMarkersButton
wxCheckBox * m_showExclusions
wxCheckBox * m_showErrors
wxDataViewCtrl * m_unconnectedDataView
wxDataViewCtrl * m_footprintsDataView
NUMBER_BADGE * m_warningsBadge
NUMBER_BADGE * m_exclusionsBadge
wxSimplebook * m_runningResultsBook
wxButton * m_DeleteCurrentMarkerButton
STD_BITMAP_BUTTON * m_bMenu
wxButton * m_sdbSizerCancel
wxCheckBox * m_cbTestFootprints
DIALOG_DRC_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Design Rules Checker"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxCheckBox * m_showWarnings
wxListCtrl * m_ignoredList
NUMBER_BADGE * m_errorsBadge
WX_HTML_REPORT_BOX * m_messages
wxDataViewCtrl * m_markerDataView
void OnDRCItemSelected(wxDataViewEvent &aEvent) override
wxString m_footprintsTitleTemplate
void UpdateData()
Rebuild the contents of the violation tabs based on the current markers and severties.
std::shared_ptr< RC_ITEMS_PROVIDER > m_ratsnestProvider
wxString m_markersTitleTemplate
DIALOG_DRC(PCB_EDIT_FRAME *aEditorFrame, wxWindow *aParent)
Constructors.
void OnEditViolationSeverities(wxHyperlinkEvent &aEvent) override
wxStatusBar * m_drcStatusBar
void OnDeleteOneClick(wxCommandEvent &aEvent) override
RC_TREE_MODEL * m_fpWarningsTreeModel
static bool hitTestLink(wxDataViewCtrl *aCtrl, const wxPoint &aPoint, wxString *aHref)
void onDataViewMotion(wxMouseEvent &aEvent)
void OnDeleteAllClick(wxCommandEvent &aEvent) override
void OnMenu(wxCommandEvent &aEvent) override
bool TransferDataToWindow() override
void OnErrorLinkClicked(wxHtmlLinkEvent &event) override
BOARD_DESIGN_SETTINGS & bds()
bool m_report_all_track_errors
void SelectMarker(const PCB_MARKER *aMarker)
void OnClose(wxCloseEvent &event) override
void installLinkHandlers(wxDataViewCtrl *aCtrl)
void OnCharHook(wxKeyEvent &aEvt) override
std::chrono::steady_clock::time_point m_drcStartTime
void OnDRCItemRClick(wxDataViewEvent &aEvent) override
void OnRunDRCClick(wxCommandEvent &aEvent) override
wxString m_ignoredTitleTemplate
void OnDRCItemDClick(wxDataViewEvent &aEvent) override
THROTTLE m_updateThrottle
void deleteAllMarkers(bool aIncludeExclusions)
void updateDisplayedCounts()
RC_TREE_MODEL * m_unconnectedTreeModel
bool m_scroll_on_crossprobe
void onDataViewLeftUp(wxMouseEvent &aEvent)
wxString m_unconnectedTitleTemplate
std::shared_ptr< RC_ITEMS_PROVIDER > m_fpWarningsProvider
std::shared_ptr< RC_ITEMS_PROVIDER > m_markersProvider
void OnSeverity(wxCommandEvent &aEvent) override
void OnIgnoredItemRClick(wxListEvent &event) override
void OnCancelClick(wxCommandEvent &aEvent) override
void OnActivateDlg(wxActivateEvent &aEvent) override
void OnChangingNotebookPage(wxNotebookEvent &aEvent) override
void OnSaveReport(wxCommandEvent &aEvent) override
RC_TREE_MODEL * m_markersTreeModel
bool Show(bool show) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
virtual void OnCharHook(wxKeyEvent &aEvt)
EDA_UNITS GetUserUnits() const
Design Rule Checker object that performs all the DRC tests.
void InitEngine(const wxFileName &aRulePath)
Initialize the DRC engine.
Container for an DRC exclusion, which is a PCB_MARKER plus an optional comment.
void SetComment(const wxString &aComment)
static DRC_EXCLUSION FromMarker(const PCB_MARKER &aMarker)
static std::vector< std::reference_wrapper< RC_ITEM > > GetItemsWithSeverities()
static void GetViolationLayers(BOARD *aBoard, const std::shared_ptr< RC_ITEM > &aItem, PCB_MARKER *aMarker, PCB_LAYER_ID &aPrincipalLayer, LSET &aViolationLayers)
Work out which layer to focus on and which layers a violation involves.
DRC_RULE * GetViolatingRule() const
bool WriteJsonReport(const wxString &aFullFileName)
bool WriteTextReport(const wxString &aFullFileName)
KICAD_T Type() const
Returns the type of object.
wxDataViewCtrl renderer that draws [label](url) markup as clickable link runs inline with plain text.
bool HitTestRunsForCell(const wxString &aValue, const wxDataViewItemAttr &aCellAttr, const wxRect &aCellRect, const wxPoint &aPoint, wxString *aHref) const
Hit-test aPoint against the link runs of aValue laid out in aCell.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
LSET is a set of PCB_LAYER_IDs.
const VECTOR2I & GetPos() const
void SetExcluded(bool aExcluded, const wxString &aComment=wxEmptyString)
enum MARKER_T GetMarkerType() const
static TOOL_ACTION showRatsnest
The main frame for Pcbnew.
SEVERITY GetSeverity() const override
virtual wxApp & App()
Return a bare naked wxApp which may come from wxPython, SINGLE_TOP, or kicad.exe.
virtual void AdvancePhase() override
Use the next available virtual zone of the dialog progress bar.
PROGRESS_REPORTER_BASE(int aNumPhases)
virtual void SetCurrentProgress(double aProgress) override
Set the progress value to aProgress (0..1).
std::atomic_bool m_cancelled
std::atomic_int m_progress
std::atomic_int m_maxProgress
virtual void AdvancePhase()=0
Use the next available virtual zone of the dialog progress bar.
virtual const wxString GetProjectPath() const
Return the full path of the project.
MARKER_BASE * GetParent() const
static RC_TREE_NODE * ToNode(wxDataViewItem aItem)
void ValueChanged(RC_TREE_NODE *aNode)
void Update(std::shared_ptr< RC_ITEMS_PROVIDER > aProvider, int aSeverities)
void DeleteCurrentItem(bool aDeep)
void EnableHyperlinks(bool aEnable)
Render [label](url) markup as clickable links.
static KIID ToUUID(wxDataViewItem aItem)
std::shared_ptr< RC_ITEM > m_RcItem
A KICAD version of wxTextEntryDialog which supports the various improvements/work-arounds from DIALOG...
wxString GetValue() const
void DisplayError(wxWindow *aParent, const wxString &aText)
Display an error or warning message box with aMessage.
This file is part of the common library.
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
static BOARD * g_lastDRCBoard
static bool g_lastFootprintTestsRun
static std::vector< std::pair< wxString, int > > g_lastIgnored
#define DIALOG_DRC_WINDOW_NAME
@ DRCE_DP_UNCOUPLED_LENGTH_TOO_LONG
@ DRCE_SCHEMATIC_FIELDS_PARITY
@ DRCE_UNRESOLVED_VARIABLE
@ DRCE_DUPLICATE_FOOTPRINT
static int DEFAULT_SINGLE_COL_WIDTH
static const std::string ReportFileExtension
static const std::string JsonFileExtension
static wxString JsonFileWildcard()
static wxString ReportFileWildcard()
PCB_LAYER_ID
A quick note on layer IDs:
This file contains miscellaneous commonly used macros and functions.
PGM_BASE & Pgm()
The global program "get" accessor.
std::vector< FAB_LAYER_COLOR > dummy
A filename or source description, a problem input line, a line number, a byte offset,...
@ PCB_ZONE_T
class ZONE, a copper pour area
Functions to provide common constants and other functions to assist in making a consistent UI.
VECTOR2< int32_t > VECTOR2I
Definition of file extensions used in Kicad.