KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_inspection_tool.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright (C) 2019 CERN
5
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation; either version 2
10
* of the License, or (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef SCH_INSPECTION_TOOL_H
22
#define SCH_INSPECTION_TOOL_H
23
24
#include <
tools/sch_tool_base.h
>
25
#include <
dialogs/dialog_book_reporter.h
>
26
#include <
sch_base_frame.h
>
27
28
29
class
SCH_SELECTION_TOOL
;
30
class
SCH_BASE_FRAME
;
31
class
DIALOG_ERC
;
32
class
SYMBOL_DIFF_WIDGET
;
33
34
35
class
SCH_INSPECTION_TOOL
:
public
wxEvtHandler,
public
SCH_TOOL_BASE
<SCH_BASE_FRAME>
36
{
37
public
:
38
SCH_INSPECTION_TOOL
();
39
~SCH_INSPECTION_TOOL
() {}
40
42
bool
Init
()
override
;
43
44
void
Reset
(
RESET_REASON
aReason )
override
;
45
46
int
RunERC
(
const
TOOL_EVENT
& aEvent );
47
void
ShowERCDialog
();
48
49
int
PrevMarker
(
const
TOOL_EVENT
& aEvent );
50
int
NextMarker
(
const
TOOL_EVENT
& aEvent );
51
53
int
CrossProbe
(
const
TOOL_EVENT
& aEvent );
54
55
void
CrossProbe
(
const
SCH_MARKER
* aMarker );
56
57
wxString
InspectERCErrorMenuText
(
const
std::shared_ptr<RC_ITEM>& aERCItem );
58
void
InspectERCError
(
const
std::shared_ptr<RC_ITEM>& aERCItem );
59
60
int
ExcludeMarker
(
const
TOOL_EVENT
& aEvent );
61
62
int
ShowBusSyntaxHelp
(
const
TOOL_EVENT
& aEvent );
63
64
int
CheckSymbol
(
const
TOOL_EVENT
& aEvent );
65
int
DiffSymbol
(
const
TOOL_EVENT
& aEvent );
66
void
DiffSymbol
(
SCH_SYMBOL
* aSymbol );
67
69
int
CompareSchematicWithFile
(
const
TOOL_EVENT
& aEvent );
70
72
int
CompareSchematicWithHistory
(
const
TOOL_EVENT
& aEvent );
73
74
int
RunSimulation
(
const
TOOL_EVENT
& aEvent );
75
76
int
ShowDatasheet
(
const
TOOL_EVENT
& aEvent );
77
79
int
UpdateMessagePanel
(
const
TOOL_EVENT
& aEvent );
80
81
private
:
83
int
showSchematicComparison
(
const
wxString& aOtherPath,
const
wxString& aProjectPath,
84
const
wxString& aComparisonLabel );
85
86
SYMBOL_DIFF_WIDGET
*
constructDiffPanel
( wxPanel* aParentPanel );
87
89
void
setTransitions
()
override
;
90
91
private
:
92
HTML_MESSAGE_BOX
*
m_busSyntaxHelp
;
93
};
94
95
#endif
/* SCH_INSPECTION_TOOL_H */
DIALOG_ERC
Definition
dialog_erc.h:42
HTML_MESSAGE_BOX
Definition
html_message_box.h:34
SCH_BASE_FRAME
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
Definition
sch_base_frame.h:111
SCH_INSPECTION_TOOL::CompareSchematicWithHistory
int CompareSchematicWithHistory(const TOOL_EVENT &aEvent)
Diff the current schematic against the most recent local-history commit.
Definition
sch_inspection_tool.cpp:848
SCH_INSPECTION_TOOL::InspectERCError
void InspectERCError(const std::shared_ptr< RC_ITEM > &aERCItem)
Definition
sch_inspection_tool.cpp:230
SCH_INSPECTION_TOOL::~SCH_INSPECTION_TOOL
~SCH_INSPECTION_TOOL()
Definition
sch_inspection_tool.h:39
SCH_INSPECTION_TOOL::Init
bool Init() override
Init() is called once upon a registration of the tool.
Definition
sch_inspection_tool.cpp:72
SCH_INSPECTION_TOOL::SCH_INSPECTION_TOOL
SCH_INSPECTION_TOOL()
Definition
sch_inspection_tool.cpp:66
SCH_INSPECTION_TOOL::constructDiffPanel
SYMBOL_DIFF_WIDGET * constructDiffPanel(wxPanel *aParentPanel)
This method is meant to be overridden in order to specify handlers for events.
Definition
sch_inspection_tool.cpp:448
SCH_INSPECTION_TOOL::NextMarker
int NextMarker(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:152
SCH_INSPECTION_TOOL::ShowERCDialog
void ShowERCDialog()
Definition
sch_inspection_tool.cpp:109
SCH_INSPECTION_TOOL::DiffSymbol
int DiffSymbol(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:331
SCH_INSPECTION_TOOL::RunERC
int RunERC(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:102
SCH_INSPECTION_TOOL::m_busSyntaxHelp
HTML_MESSAGE_BOX * m_busSyntaxHelp
Definition
sch_inspection_tool.h:92
SCH_INSPECTION_TOOL::RunSimulation
int RunSimulation(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:1269
SCH_INSPECTION_TOOL::ShowDatasheet
int ShowDatasheet(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:1291
SCH_INSPECTION_TOOL::InspectERCErrorMenuText
wxString InspectERCErrorMenuText(const std::shared_ptr< RC_ITEM > &aERCItem)
Definition
sch_inspection_tool.cpp:215
SCH_INSPECTION_TOOL::ExcludeMarker
int ExcludeMarker(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:250
SCH_INSPECTION_TOOL::CheckSymbol
int CheckSymbol(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:287
SCH_INSPECTION_TOOL::setTransitions
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
Definition
sch_inspection_tool.cpp:1387
SCH_INSPECTION_TOOL::UpdateMessagePanel
int UpdateMessagePanel(const TOOL_EVENT &aEvent)
Display the selected item info (when clicking on a item)
Definition
sch_inspection_tool.cpp:1349
SCH_INSPECTION_TOOL::PrevMarker
int PrevMarker(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:133
SCH_INSPECTION_TOOL::showSchematicComparison
int showSchematicComparison(const wxString &aOtherPath, const wxString &aProjectPath, const wxString &aComparisonLabel)
Diff the schematic at aOtherPath against the live one and show the dialog.
Definition
sch_inspection_tool.cpp:610
SCH_INSPECTION_TOOL::CompareSchematicWithFile
int CompareSchematicWithFile(const TOOL_EVENT &aEvent)
Diff the current schematic against a user-selected .kicad_sch file.
Definition
sch_inspection_tool.cpp:565
SCH_INSPECTION_TOOL::CrossProbe
int CrossProbe(const TOOL_EVENT &aEvent)
Called when clicking on a item:
Definition
sch_inspection_tool.cpp:170
SCH_INSPECTION_TOOL::ShowBusSyntaxHelp
int ShowBusSyntaxHelp(const TOOL_EVENT &aEvent)
Definition
sch_inspection_tool.cpp:317
SCH_MARKER
Definition
sch_marker.h:30
SCH_SELECTION_TOOL
Definition
sch_selection_tool.h:69
SCH_SYMBOL
Schematic symbol object.
Definition
sch_symbol.h:69
SCH_TOOL_BASE< SCH_BASE_FRAME >::SCH_TOOL_BASE
SCH_TOOL_BASE(const std::string &aName)
Definition
sch_tool_base.h:54
SYMBOL_DIFF_WIDGET
Definition
symbol_diff_widget.h:32
SCH_TOOL_BASE< SCH_BASE_FRAME >::RESET_REASON
RESET_REASON
Definition
tool_base.h:74
TOOL_EVENT
Generic, UI-independent tool event.
Definition
tool_event.h:167
dialog_book_reporter.h
Reset
void Reset() override
sch_base_frame.h
sch_tool_base.h
src
eeschema
tools
sch_inspection_tool.h
Generated on Fri Jun 26 2026 00:05:36 for KiCad PCB EDA Suite by
1.13.2