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
24
25class EDA_DRAW_FRAME;
26
27
29{
30public:
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
46private:
47 bool selectRegion();
49};
50
51#endif // _ZOOM_TOOL_H
The base class for create windows for drawing purpose.
RESET_REASON
Determine the reason of reset for a tool.
Definition: tool_base.h:78
Generic, UI-independent tool event.
Definition: tool_event.h:167
bool Init() override
Init() is called once upon a registration of the tool.
Definition: zoom_tool.cpp:41
void setTransitions() override
Definition: zoom_tool.cpp:170
bool selectRegion()
Definition: zoom_tool.cpp:106
EDA_DRAW_FRAME * m_frame
Definition: zoom_tool.h:48
int Main(const TOOL_EVENT &aEvent)
Main loop.
Definition: zoom_tool.cpp:62
void Reset() override