KiCad PCB EDA Suite
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Variables
a
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
Typedefs
a
c
e
f
i
k
l
m
n
o
p
s
v
w
Enumerations
c
d
f
g
l
m
n
o
p
q
r
s
t
v
Enumerator
a
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
u
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
KiCad Dev Docs
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
gerbview_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 The KiCad Developers, see AUTHORS.txt for contributors.
5
*
6
* This program is free software: you can redistribute it and/or modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef GERBVIEW_INSPECTION_TOOL_H
21
#define GERBVIEW_INSPECTION_TOOL_H
22
23
#include <
tool/tool_interactive.h
>
24
#include <
gerbview_frame.h
>
25
26
class
TOOL_EVENT
;
27
28
class
GERBVIEW_INSPECTION_TOOL
:
public
TOOL_INTERACTIVE
29
{
30
public
:
31
GERBVIEW_INSPECTION_TOOL
();
32
~GERBVIEW_INSPECTION_TOOL
();
33
35
bool
Init
()
override
;
36
38
void
Reset
(
RESET_REASON
aReason )
override
;
39
41
int
MeasureTool
(
const
TOOL_EVENT
& aEvent );
42
44
int
ShowDCodes
(
const
TOOL_EVENT
& aEvent );
45
47
int
ShowSource
(
const
TOOL_EVENT
& aEvent );
48
50
void
setTransitions
()
override
;
51
52
private
:
53
GERBVIEW_FRAME
*
m_frame
;
// Pointer to the parent frame.
54
};
55
56
#endif
GERBVIEW_FRAME
Definition:
gerbview_frame.h:58
GERBVIEW_INSPECTION_TOOL
Definition:
gerbview_inspection_tool.h:29
GERBVIEW_INSPECTION_TOOL::Init
bool Init() override
Init() is called once upon a registration of the tool.
Definition:
gerbview_inspection_tool.cpp:57
GERBVIEW_INSPECTION_TOOL::m_frame
GERBVIEW_FRAME * m_frame
Definition:
gerbview_inspection_tool.h:53
GERBVIEW_INSPECTION_TOOL::ShowSource
int ShowSource(const TOOL_EVENT &aEvent)
Set up handlers for various events.
Definition:
gerbview_inspection_tool.cpp:156
GERBVIEW_INSPECTION_TOOL::GERBVIEW_INSPECTION_TOOL
GERBVIEW_INSPECTION_TOOL()
Definition:
gerbview_inspection_tool.cpp:45
GERBVIEW_INSPECTION_TOOL::setTransitions
void setTransitions() override
This method is meant to be overridden in order to specify handlers for events.
Definition:
gerbview_inspection_tool.cpp:325
GERBVIEW_INSPECTION_TOOL::~GERBVIEW_INSPECTION_TOOL
~GERBVIEW_INSPECTION_TOOL()
Definition:
gerbview_inspection_tool.cpp:52
GERBVIEW_INSPECTION_TOOL::ShowDCodes
int ShowDCodes(const TOOL_EVENT &aEvent)
Show the source for the gerber file.
Definition:
gerbview_inspection_tool.cpp:69
GERBVIEW_INSPECTION_TOOL::MeasureTool
int MeasureTool(const TOOL_EVENT &aEvent)
Show a list of the DCodes.
Definition:
gerbview_inspection_tool.cpp:202
TOOL_BASE::RESET_REASON
RESET_REASON
Determine the reason of reset for a tool.
Definition:
tool_base.h:78
TOOL_EVENT
Generic, UI-independent tool event.
Definition:
tool_event.h:168
TOOL_INTERACTIVE
Definition:
tool_interactive.h:57
Reset
void Reset() override
gerbview_frame.h
tool_interactive.h
src
gerbview
tools
gerbview_inspection_tool.h
Generated on Fri Mar 14 2025 00:05:21 for KiCad PCB EDA Suite by
1.9.6