KiCad PCB EDA Suite
tools_common.cpp
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) 2015 CERN
5  * Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
6  * @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, you may find one here:
20  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21  * or you may search the http://www.gnu.org website for the version 2 license,
22  * or you may write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24  */
25 
26 #include <io_mgr.h>
27 
28 #include <tool/tool_manager.h>
29 #include <tool/common_tools.h>
30 
31 #include <tools/selection_tool.h>
32 #include <tools/zoom_tool.h>
33 #include <tools/picker_tool.h>
34 #include <tools/edit_tool.h>
35 #include <tools/drawing_tool.h>
36 #include <tools/point_editor.h>
37 #include <tools/pcbnew_control.h>
39 #include <tools/placement_tool.h>
40 #include <tools/pad_tool.h>
41 #include <tools/microwave_tool.h>
43 #include <tools/pcb_actions.h>
44 
45 #include <router/router_tool.h>
47 
49 {
50  aToolManager->RegisterTool( new COMMON_TOOLS );
51  aToolManager->RegisterTool( new SELECTION_TOOL );
52  aToolManager->RegisterTool( new ZOOM_TOOL );
53  aToolManager->RegisterTool( new PICKER_TOOL );
54  aToolManager->RegisterTool( new ROUTER_TOOL );
55  aToolManager->RegisterTool( new LENGTH_TUNER_TOOL );
56  aToolManager->RegisterTool( new EDIT_TOOL );
57  aToolManager->RegisterTool( new PAD_TOOL );
58  aToolManager->RegisterTool( new DRAWING_TOOL );
59  aToolManager->RegisterTool( new POINT_EDITOR );
60  aToolManager->RegisterTool( new PCBNEW_CONTROL );
61  aToolManager->RegisterTool( new PCB_EDITOR_CONTROL );
62  aToolManager->RegisterTool( new ALIGN_DISTRIBUTE_TOOL );
63  aToolManager->RegisterTool( new MICROWAVE_TOOL );
64  aToolManager->RegisterTool( new POSITION_RELATIVE_TOOL );
65 }
Class POSITION_RELATIVE_TOOL.
Class SELECTION_TOOL.
Class MICROWAVE_TOOL.
Class PAD_TOOL.
Definition: pad_tool.h:37
Class PCBNEW_CONTROL.
Generic tool for picking a point.
Definition: picker_tool.h:35
Class TOOL_MANAGER.
Definition: tool_manager.h:49
Class DRAWING_TOOL.
Definition: drawing_tool.h:49
Class EDIT_TOOL.
Definition: edit_tool.h:44
virtual void RegisterAllTools(TOOL_MANAGER *aToolManager) override
>
Class COMMON_TOOLS.
Definition: common_tools.h:38
Class PCB_EDITOR_CONTROL.
Class POINT_EDITOR.
Definition: point_editor.h:41
void RegisterTool(TOOL_BASE *aTool)
Function RegisterTool() Adds a tool to the manager set and sets it up.