KiCad PCB EDA Suite
kicad_manager_control.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) 2019 CERN
5  * Copyright (C) 2019 KiCad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #ifndef KICAD_MANAGER_CONTROL_H
26 #define KICAD_MANAGER_CONTROL_H
27 
28 #include <tool/tool_interactive.h>
29 
30 
32 
33 
41 {
42 public:
44  ~KICAD_MANAGER_CONTROL() override { }
45 
47  void Reset( RESET_REASON aReason ) override;
48 
49  int NewProject( const TOOL_EVENT& aEvent );
50  int NewFromTemplate( const TOOL_EVENT& aEvent );
51  int OpenProject( const TOOL_EVENT& aEvent );
52 
53  int Refresh( const TOOL_EVENT& aEvent );
54  int UpdateMenu( const TOOL_EVENT& aEvent );
55 
56  int ShowPlayer( const TOOL_EVENT& aEvent );
57  int Execute( const TOOL_EVENT& aEvent );
58 
60  void setTransitions() override;
61 
62 private:
65 };
66 
67 #endif
int ShowPlayer(const TOOL_EVENT &aEvent)
Class KICAD_MANAGER_CONTROL.
void setTransitions() override
Sets up handlers for various events.
int Refresh(const TOOL_EVENT &aEvent)
int OpenProject(const TOOL_EVENT &aEvent)
KICAD_MANAGER_FRAME * m_frame
Pointer to the currently used edit/draw frame.
Class TOOL_EVENT.
Definition: tool_event.h:168
int NewProject(const TOOL_EVENT &aEvent)
void Reset(RESET_REASON aReason) override
Function Reset() Brings the tool to a known, initial state.
int UpdateMenu(const TOOL_EVENT &aEvent)
int NewFromTemplate(const TOOL_EVENT &aEvent)
RESET_REASON
Determines the reason of reset for a tool
Definition: tool_base.h:79
The main KiCad project manager frame.
int Execute(const TOOL_EVENT &aEvent)