42#include <wx/filedlg.h>
44#include <wx/statusbr.h>
45#include <wx/wupdlock.h>
116 auto installModel = [
this](
RC_TREE_MODEL*& aModel, wxDataViewCtrl* aCtrl )
120 aCtrl->AssociateModel( aModel );
145 listItem.SetText( str );
146 listItem.SetData( code );
158 { wxID_CANCEL,
_(
"Close" ) } } );
168 m_drcStatusBar =
new wxStatusBar(
this, wxID_ANY, wxSTB_DEFAULT_STYLE );
171 int statusBarWidths[2] = { FromDIP( 12 ), -1 };
174 if( wxSizer* mainSizer = GetSizer() )
203 g_lastIgnored.push_back( { m_ignoredList->GetItemText( ii ), m_ignoredList->GetItemData( ii ) } );
222 wxDataViewCtrl* ctrl =
dynamic_cast<wxDataViewCtrl*
>( aEvent.GetEventObject() );
227 bool overLink =
hitTestLink( ctrl, aEvent.GetPosition(),
nullptr );
228 ctrl->SetCursor( overLink ? wxCursor( wxCURSOR_HAND ) : wxNullCursor );
236 wxDataViewCtrl* ctrl =
dynamic_cast<wxDataViewCtrl*
>( aEvent.GetEventObject() );
239 if( ctrl &&
hitTestLink( ctrl, aEvent.GetPosition(), &href ) )
240 wxLaunchDefaultBrowser( href );
246 wxDataViewModel*
model = aCtrl->GetModel();
252 wxDataViewColumn* col =
nullptr;
253 aCtrl->HitTest( aPoint, item, col );
255 if( !item.IsOk() || !col )
264 model->GetValue( value, item, col->GetModelColumn() );
266 wxRect cell = aCtrl->GetItemRect( item, col );
268 return hl->HitTestRunsForCell( value.GetString(), cell, aPoint, aHref );
285 SetReturnCode( wxID_CANCEL );
302 int newValue =
KiROUND( cur * 1000.0 );
308 int elapsed =
static_cast<int>(
309 std::chrono::duration_cast<std::chrono::seconds>( std::chrono::steady_clock::now() -
m_drcStartTime )
319 tick = wxString::Format( wxT(
"%1$d min %2$d s" ), elapsed / 60, elapsed % 60 );
321 tick = wxString::Format( wxT(
"%d s" ), elapsed );
323 m_drcStatusBar->SetStatusText( wxString::Format(
_(
"Elapsed: %s" ), tick ), 1 );
337 Pgm().
App().SafeYieldFor(
this, wxEVT_CATEGORY_NATIVE_EVENTS );
374 menu.Append( 4205,
_(
"Report All Errors for Each Track" ),
375 _(
"If unchecked, only the first error will be reported for each track" ),
379 menu.AppendSeparator();
381 menu.Append( 4206,
_(
"Cross-probe Selected Items" ),
382 _(
"Highlight corresponding items on canvas when selected in the DRC list" ),
386 menu.Append( 4207,
_(
"Center on Cross-probe" ),
387 _(
"When cross-probing, scroll the canvas so that the item is visible" ),
392 int menu_id =
m_bMenu->GetPopupMenuSelectionFromUser( menu );
394 if( menu_id == 0 || menu_id == 4205 )
398 else if( menu_id == 2 || menu_id == 4206 )
402 else if( menu_id == 3 || menu_id == 4207 )
411 m_frame->ShowBoardSetupDialog(
_(
"Custom Rules" ),
this );
417 if(
int hotkey = aEvt.GetKeyCode() )
419 if( aEvt.ControlDown() )
421 if( aEvt.ShiftDown() )
445 if( zoneFillerTool->IsBusy() )
454 m_frame->GetBoard()->RecordDRCExclusions();
471 m_messages->Report(
_(
"DRC incomplete: could not compile custom design rules." )
472 + wxS(
" " )
473 + wxS(
"<a href='$CUSTOM_RULES'>" ) +
_(
"Show design rules." ) + wxT(
"</a>" ) );
486 for( std::reference_wrapper<RC_ITEM>& item : violations )
492 listItem.SetText( wxT(
" • " ) + item.get().GetErrorText(
true ) );
493 listItem.SetData( item.get().GetErrorCode() );
526 std::chrono::duration<double, std::milli>( std::chrono::steady_clock::now() -
m_drcStartTime ).count();
531 int totalSeconds =
KiROUND( elapsedMs / 1000.0 );
533 if( totalSeconds >= 60 )
534 return wxString::Format(
_(
"%1$d min %2$d s" ), totalSeconds / 60, totalSeconds % 60 );
536 return wxString::Format(
_(
"%.2f s" ), elapsedMs / 1000.0 );
541 m_messages->Report(
_(
"-------- DRC canceled by user.<br><br>" ) );
544 m_drcStatusBar->SetStatusText( wxString::Format(
_(
"Canceled after %s" ), formatElapsed() ), 1 );
551 m_drcStatusBar->SetStatusText( wxString::Format(
_(
"Completed in %s" ), formatElapsed() ), 1 );
607 auto getActiveLayers =
615 for(
int layer : aItem->GetLayerSet() )
617 if(
pad->FlashLayer( layer ) )
625 return aItem->GetLayerSet();
637 std::shared_ptr<RC_ITEM> rc_item = node->
m_RcItem;
659 LSET violationLayers;
667 std::vector<BOARD_ITEM*> items = { aItem };
669 if( parentMarker && parentMarker != aItem )
670 items.push_back( parentMarker );
701 principalLayer = markerLayer;
707 if( a || b || c || d )
715 LSET layersList = getActiveLayers( it );
716 violationLayers &= layersList;
719 principalLayer = layersList.
Seq().front();
725 if( violationLayers.count() )
726 principalLayer = violationLayers.
Seq().front();
727 else if( principalLayer >= 0 )
728 violationLayers.
set( principalLayer );
733 m_frame->GetAppearancePanel()->SetLayerVisible( principalLayer,
true );
736 m_frame->SetActiveLayer( principalLayer );
740 if( !
m_frame->GetPcbNewSettings()->m_Display.m_ShowGlobalRatsnest )
747 m_frame->GetBoard()->GetConnectivity()->RunOnUnconnectedEdges(
763 if( item == a && item == b )
791 std::vector<BOARD_ITEM*> items;
799 for(
const KIID&
id : rc_item->GetIDs() )
803 if( candidate && candidate->GetNetCode() == net )
804 items.push_back( candidate );
809 items.push_back( item );
812 if( parentMarker && std::find( items.begin(), items.end(), parentMarker ) == items.end() )
814 items.push_back( parentMarker );
830 if( aEvent.GetItem().IsOk() )
852 std::shared_ptr<RC_ITEM> rcItem = node->m_RcItem;
854 std::shared_ptr<CONNECTIVITY_DATA> conn =
m_currentBoard->GetConnectivity();
858 switch(
bds().m_DRCSeverities[ rcItem->GetErrorCode() ] )
862 default: listName =
_(
"appropriate" );
break;
867 ID_EDIT_EXCLUSION_COMMENT = 4467,
869 ID_REMOVE_EXCLUSION_ALL,
871 ID_ADD_EXCLUSION_WITH_COMMENT,
872 ID_ADD_EXCLUSION_ALL,
873 ID_INSPECT_VIOLATION,
875 ID_SET_SEVERITY_TO_ERROR,
876 ID_SET_SEVERITY_TO_WARNING,
877 ID_SET_SEVERITY_TO_IGNORE,
881 if( rcItem->GetParent()->IsExcluded() )
883 menu.Append( ID_REMOVE_EXCLUSION,
884 _(
"Remove exclusion for this violation" ),
885 wxString::Format(
_(
"It will be placed back in the %s list" ), listName ) );
887 menu.Append( ID_EDIT_EXCLUSION_COMMENT,
888 _(
"Edit exclusion comment..." ) );
892 menu.Append( ID_REMOVE_EXCLUSION_ALL,
893 wxString::Format(
_(
"Remove all exclusions for violations of rule '%s'" ),
895 wxString::Format(
_(
"They will be placed back in the %s list" ), listName ) );
900 menu.Append( ID_ADD_EXCLUSION,
901 _(
"Exclude this violation" ),
902 wxString::Format(
_(
"It will be excluded from the %s list" ), listName ) );
904 menu.Append( ID_ADD_EXCLUSION_WITH_COMMENT,
905 _(
"Exclude with comment..." ),
906 wxString::Format(
_(
"It will be excluded from the %s list" ), listName ) );
910 menu.Append( ID_ADD_EXCLUSION_ALL,
911 wxString::Format(
_(
"Exclude all violations of rule '%s'..." ),
913 wxString::Format(
_(
"They will be excluded from the %s list" ), listName ) );
917 menu.AppendSeparator();
920 wxString fixDRCErrorMenuText = drcTool->FixDRCErrorMenuText( rcItem );
922 if( !inspectDRCErrorMenuText.IsEmpty() || !fixDRCErrorMenuText.IsEmpty() )
924 if( !inspectDRCErrorMenuText.IsEmpty() )
925 menu.Append( ID_INSPECT_VIOLATION, inspectDRCErrorMenuText );
927 if( !fixDRCErrorMenuText.IsEmpty() )
928 menu.Append( ID_FIX_VIOLATION, fixDRCErrorMenuText );
930 menu.AppendSeparator();
935 menu.Append( ID_SET_SEVERITY_TO_ERROR,
936 wxString::Format(
_(
"Change severity to Error for all '%s' violations" ),
937 rcItem->GetErrorText(
true ) ),
938 _(
"Violation severities can also be edited in Board Setup" ) );
942 menu.Append( ID_SET_SEVERITY_TO_WARNING,
943 wxString::Format(
_(
"Change severity to Warning for all '%s' violations" ),
944 rcItem->GetErrorText(
true ) ),
945 _(
"Violation severities can also be edited in Board Setup" ) );
948 menu.Append( ID_SET_SEVERITY_TO_IGNORE,
949 wxString::Format(
_(
"Ignore all '%s' violations" ), rcItem->GetErrorText(
true ) ),
950 _(
"Violations will not be checked or reported" ) );
952 menu.AppendSeparator();
954 menu.Append( ID_EDIT_SEVERITIES,
955 _(
"Edit violation severities..." ),
956 _(
"Open the Board Setup dialog" ) );
958 bool modified =
false;
959 int command = GetPopupMenuSelectionFromUser( menu );
963 case ID_EDIT_EXCLUSION_COMMENT:
966 WX_TEXT_ENTRY_DIALOG dlg(
this, wxEmptyString,
_(
"Exclusion Comment" ), marker->GetComment(),
true );
971 marker->SetExcluded(
true, dlg.
GetValue() );
973 wxString serialized = marker->SerializeToString();
984 case ID_REMOVE_EXCLUSION:
987 marker->SetExcluded(
false );
989 wxString serialized = marker->SerializeToString();
995 m_frame->GetBoard()->UpdateRatsnestExclusions();
996 m_frame->GetCanvas()->RedrawRatsnest();
1000 m_frame->GetCanvas()->GetView()->Update( marker );
1010 case ID_ADD_EXCLUSION:
1011 case ID_ADD_EXCLUSION_WITH_COMMENT:
1016 if( command == ID_ADD_EXCLUSION_WITH_COMMENT )
1026 marker->SetExcluded(
true, comment );
1028 wxString serialized = marker->SerializeToString();
1034 m_frame->GetBoard()->UpdateRatsnestExclusions();
1035 m_frame->GetCanvas()->RedrawRatsnest();
1039 m_frame->GetCanvas()->GetView()->Update( marker );
1053 case ID_REMOVE_EXCLUSION_ALL:
1056 DRC_ITEM* candidateDrcItem =
static_cast<DRC_ITEM*
>( marker->GetRCItem().get() );
1060 marker->SetExcluded(
false );
1062 wxString serialized = marker->SerializeToString();
1073 case ID_ADD_EXCLUSION_ALL:
1076 DRC_ITEM* candidateDrcItem =
static_cast<DRC_ITEM*
>( marker->GetRCItem().get() );
1080 marker->SetExcluded(
true );
1082 wxString serialized = marker->SerializeToString();
1092 case ID_INSPECT_VIOLATION:
1096 case ID_FIX_VIOLATION:
1097 drcTool->FixDRCError( node->m_RcItem );
1100 case ID_SET_SEVERITY_TO_ERROR:
1105 if( marker->GetRCItem()->GetErrorCode() == rcItem->GetErrorCode() )
1106 m_frame->GetCanvas()->GetView()->Update( marker );
1114 case ID_SET_SEVERITY_TO_WARNING:
1119 if( marker->GetRCItem()->GetErrorCode() == rcItem->GetErrorCode() )
1120 m_frame->GetCanvas()->GetView()->Update( marker );
1128 case ID_SET_SEVERITY_TO_IGNORE:
1132 wxListItem listItem;
1134 listItem.SetText( wxT(
" • " ) + rcItem->GetErrorText(
true ) );
1135 listItem.SetData( rcItem->GetErrorCode() );
1141 std::vector<BOARD_ITEM*> toRemove;
1145 if( marker->GetRCItem()->GetErrorCode() == rcItem->GetErrorCode() )
1147 m_frame->GetCanvas()->GetView()->Remove( marker );
1148 toRemove.emplace_back( marker );
1158 m_frame->GetCanvas()->RedrawRatsnest();
1166 case ID_EDIT_SEVERITIES:
1167 m_frame->ShowBoardSetupDialog(
_(
"Violation Severity" ),
this );
1182 int errorCode = (int) event.m_item.GetData();
1189 menu.Check(
bds().GetSeverity( errorCode ),
true );
1191 int severity = GetPopupMenuSelectionFromUser( menu );
1195 if(
bds().m_DRCSeverities[ errorCode ] != severity )
1209 m_frame->ShowBoardSetupDialog(
_(
"Violation Severity" ),
this );
1215 if( aEvent.GetEventObject() ==
m_showAll )
1230 wxFileDialog dlg(
this,
_(
"Save Report File" ),
Prj().GetProjectPath(), fn.GetFullName(),
1232 wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
1236 if( dlg.ShowModal() != wxID_OK )
1241 if( fn.GetExt().IsEmpty() )
1244 if( !fn.IsAbsolute() )
1247 fn.MakeAbsolute( prj_path );
1253 bool success =
false;
1260 m_messages->Report( wxString::Format(
_(
"Report file '%s' created<br>" ), fn.GetFullPath() ) );
1262 DisplayError(
this, wxString::Format(
_(
"Failed to create file '%s'." ), fn.GetFullPath() ) );
1268 wxCommandEvent
dummy;
1283 SetReturnCode( wxID_CANCEL );
1306 m_frame->GetCanvas()->Refresh();
1377 m_frame->GetCanvas()->GetView()->Update( marker );
1403 m_frame->GetBoard()->DeleteMARKERs(
true, aIncludeExclusions );
1435 static bool s_includeExclusions =
false;
1437 int numExcluded = 0;
1448 if( numExcluded > 0 )
1450 wxMessageDialog dlg(
this,
_(
"Delete exclusions too?" ),
_(
"Delete All Markers" ),
1451 wxYES_NO | wxCANCEL | wxCENTER | wxICON_QUESTION );
1452 dlg.SetYesNoLabels(
_(
"Errors and Warnings Only" ),
1453 _(
"Errors, Warnings and Exclusions" ) );
1455 int ret = dlg.ShowModal();
1457 if( ret == wxID_CANCEL )
1459 else if( ret == wxID_NO )
1460 s_includeExclusions =
true;
1479 int numUnconnected = 0;
1480 int numFootprints = 0;
1483 int numWarnings = 0;
1484 int numExcluded = 0;
1510 bool errorsOverflowed =
false;
1511 bool warningsOverflowed =
false;
1512 bool markersOverflowed =
false;
1513 bool unconnectedOverflowed =
false;
1514 bool footprintsOverflowed =
false;
1520 if( drcEngine->IsErrorLimitExceeded( ii ) )
1523 errorsOverflowed =
true;
1525 warningsOverflowed =
true;
1530 unconnectedOverflowed =
true;
1532 unconnectedOverflowed =
true;
1543 footprintsOverflowed =
true;
1545 footprintsOverflowed =
true;
1550 markersOverflowed =
true;
1552 markersOverflowed =
true;
1564 num.Printf( markersOverflowed ? wxT(
"%d+" ) : wxT(
"%d" ), numMarkers );
1570 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1577 num.Printf( unconnectedOverflowed ? wxT(
"%d+" ) : wxT(
"%d" ), numUnconnected );
1583 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1590 num.Printf( footprintsOverflowed ? wxT(
"%d+" ) : wxT(
"%d" ), numFootprints );
1596 msg.Replace( wxT(
"%s" ),
_(
"not run" ) );
1601 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1614 msg.Replace( wxT(
"(%s)" ), wxEmptyString );
1624 if( !
m_drcRun && numWarnings == 0 )
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
static TOOL_ACTION excludeMarker
static TOOL_ACTION selectionClear
Clear the current selection.
BASE_SET & set(size_t pos)
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
std::map< wxString, wxString > m_DrcExclusionComments
std::map< int, SEVERITY > m_DRCSeverities
std::set< wxString > m_DrcExclusions
SEVERITY GetSeverity(int aDRCErrorCode)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
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.
static std::vector< std::reference_wrapper< RC_ITEM > > GetItemsWithSeverities()
DRC_RULE * GetViolatingRule() const
bool WriteJsonReport(const wxString &aFullFileName)
bool WriteTextReport(const wxString &aFullFileName)
KICAD_T Type() const
Returns the type of object.
EDA_ITEM_FLAGS GetFlags() const
wxDataViewCtrl renderer that draws [label](url) markup as clickable link runs inline with plain text.
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
LSET is a set of PCB_LAYER_IDs.
LSEQ Seq(const LSEQ &aSequence) const
Return an LSEQ from the union of this LSET and a desired sequence.
static const LSET & AllLayersMask()
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
wxString SerializeToString() const
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.
static BOARD * g_lastDRCBoard
static bool g_lastFootprintTestsRun
static std::vector< std::pair< wxString, int > > g_lastIgnored
#define DIALOG_DRC_WINDOW_NAME
@ DRCE_SCHEMATIC_FIELDS_PARITY
@ DRCE_DIFF_PAIR_UNCOUPLED_LENGTH_TOO_LONG
@ DRCE_MALFORMED_COURTYARD
@ DRCE_UNRESOLVED_VARIABLE
@ DRCE_DUPLICATE_FOOTPRINT
#define MALFORMED_F_COURTYARD
#define MALFORMED_B_COURTYARD
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
@ PCB_PAD_T
class PAD, a pad in a footprint
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.