KiCad PCB EDA Suite
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 (C) 2017-2021 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:167
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 Thu Dec 26 2024 00:05:09 for KiCad PCB EDA Suite by
1.9.6