KiCad PCB EDA Suite
Loading...
Searching...
No Matches
zoom_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-2022 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 _ZOOM_TOOL_H
21
#define _ZOOM_TOOL_H
22
23
#include <
tool/tool_interactive.h
>
24
25
class
EDA_DRAW_FRAME
;
26
27
28
class
ZOOM_TOOL
:
public
TOOL_INTERACTIVE
29
{
30
public
:
31
ZOOM_TOOL
();
32
~ZOOM_TOOL
();
33
35
bool
Init
()
override
;
36
38
void
Reset
(
RESET_REASON
aReason )
override
;
39
41
int
Main
(
const
TOOL_EVENT
& aEvent );
42
44
void
setTransitions
()
override
;
45
46
private
:
47
bool
selectRegion
();
48
EDA_DRAW_FRAME
*
m_frame
;
49
};
50
51
#endif
// _ZOOM_TOOL_H
EDA_DRAW_FRAME
The base class for create windows for drawing purpose.
Definition:
eda_draw_frame.h:84
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
ZOOM_TOOL
Definition:
zoom_tool.h:29
ZOOM_TOOL::Init
bool Init() override
Init() is called once upon a registration of the tool.
Definition:
zoom_tool.cpp:42
ZOOM_TOOL::ZOOM_TOOL
ZOOM_TOOL()
Definition:
zoom_tool.cpp:31
ZOOM_TOOL::setTransitions
void setTransitions() override
Definition:
zoom_tool.cpp:171
ZOOM_TOOL::selectRegion
bool selectRegion()
Definition:
zoom_tool.cpp:107
ZOOM_TOOL::~ZOOM_TOOL
~ZOOM_TOOL()
Definition:
zoom_tool.cpp:38
ZOOM_TOOL::m_frame
EDA_DRAW_FRAME * m_frame
Definition:
zoom_tool.h:48
ZOOM_TOOL::Main
int Main(const TOOL_EVENT &aEvent)
Main loop.
Definition:
zoom_tool.cpp:63
Reset
void Reset() override
tool_interactive.h
src
include
tool
zoom_tool.h
Generated on Sat Oct 12 2024 00:05:46 for KiCad PCB EDA Suite by
1.9.6