KiCad PCB EDA Suite
pl_actions.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 PL_ACTIONS_H
26 #define PL_ACTIONS_H
27 
28 #include <tool/tool_action.h>
29 #include <tool/actions.h>
30 #include <core/optional.h>
31 
32 class TOOL_EVENT;
33 class TOOL_MANAGER;
34 
41 class PL_ACTIONS : public ACTIONS
42 {
43 public:
44  // Selection Tool
47 
50 
54 
58 
61 
62  // Tools
69 
70  // Editing
71  static TOOL_ACTION move;
72 
73  // Miscellaneous
78 
80  virtual OPT<TOOL_EVENT> TranslateLegacyId( int aId ) override { return OPT<TOOL_EVENT>(); }
81 };
82 
83 
84 #endif
static TOOL_ACTION showInspector
Definition: pl_actions.h:76
virtual OPT< TOOL_EVENT > TranslateLegacyId(int aId) override
Definition: pl_actions.h:80
static TOOL_ACTION drawLine
Definition: pl_actions.h:67
static TOOL_ACTION addItemsToSel
Selects a list of items (specified as the event parameter)
Definition: pl_actions.h:56
static TOOL_ACTION placeImage
Definition: pl_actions.h:65
static TOOL_ACTION refreshPreview
Definition: pl_actions.h:74
static TOOL_ACTION move
Definition: pl_actions.h:71
static TOOL_ACTION placeText
Definition: pl_actions.h:64
Class PL_ACTIONS.
Definition: pl_actions.h:41
static TOOL_ACTION selectionActivate
Activation of the selection tool.
Definition: pl_actions.h:46
Class TOOL_MANAGER.
Definition: tool_manager.h:50
static TOOL_ACTION addItemToSel
Selects an item (specified as the event parameter).
Definition: pl_actions.h:52
static TOOL_ACTION removeItemsFromSel
Definition: pl_actions.h:57
Class TOOL_EVENT.
Definition: tool_event.h:171
static TOOL_ACTION previewSettings
Definition: pl_actions.h:77
static TOOL_ACTION selectionMenu
Runs a selection menu to select from a list of items.
Definition: pl_actions.h:60
static TOOL_ACTION drawRectangle
Definition: pl_actions.h:66
static TOOL_ACTION clearSelection
Clears the current selection.
Definition: pl_actions.h:49
static TOOL_ACTION toggleBackground
Definition: pl_actions.h:75
static TOOL_ACTION removeItemFromSel
Definition: pl_actions.h:53
Class TOOL_ACTION.
Definition: tool_action.h:46
static TOOL_ACTION appendImportedWorksheet
Definition: pl_actions.h:68
boost::optional< T > OPT
Definition: optional.h:7
Class ACTIONS.
Definition: actions.h:43
static TOOL_ACTION pickerTool
Definition: pl_actions.h:63