2019-06-10 22:17:45 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2023-08-11 17:40:13 +00:00
|
|
|
* Copyright (C) 2013-2023 CERN
|
|
|
|
* Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
2019-06-10 22:17:45 +00:00
|
|
|
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EDA_3D_ACTIONS_H
|
|
|
|
#define EDA_3D_ACTIONS_H
|
|
|
|
|
|
|
|
#include <tool/tool_action.h>
|
|
|
|
#include <tool/actions.h>
|
|
|
|
|
|
|
|
class TOOL_EVENT;
|
|
|
|
class TOOL_MANAGER;
|
|
|
|
|
|
|
|
/**
|
2020-01-10 14:31:00 +00:00
|
|
|
* EDA_3D_ACTIONS
|
2019-06-10 22:17:45 +00:00
|
|
|
*
|
|
|
|
* Note: these aren't "real" actions; we just use them to see the hotkeys display.
|
|
|
|
*/
|
|
|
|
class EDA_3D_ACTIONS : public ACTIONS
|
|
|
|
{
|
|
|
|
public:
|
2020-03-18 22:48:36 +00:00
|
|
|
static TOOL_ACTION controlActivate;
|
|
|
|
|
2019-06-10 22:17:45 +00:00
|
|
|
static TOOL_ACTION pivotCenter;
|
2020-03-18 22:48:36 +00:00
|
|
|
static TOOL_ACTION rotateXCW;
|
|
|
|
static TOOL_ACTION rotateXCCW;
|
|
|
|
static TOOL_ACTION rotateYCW;
|
|
|
|
static TOOL_ACTION rotateYCCW;
|
|
|
|
static TOOL_ACTION rotateZCW;
|
|
|
|
static TOOL_ACTION rotateZCCW;
|
2019-06-10 22:17:45 +00:00
|
|
|
static TOOL_ACTION moveLeft;
|
|
|
|
static TOOL_ACTION moveRight;
|
|
|
|
static TOOL_ACTION moveUp;
|
|
|
|
static TOOL_ACTION moveDown;
|
|
|
|
static TOOL_ACTION homeView;
|
2020-06-08 21:35:40 +00:00
|
|
|
static TOOL_ACTION flipView;
|
2020-03-18 22:48:36 +00:00
|
|
|
static TOOL_ACTION toggleOrtho;
|
2019-06-10 22:17:45 +00:00
|
|
|
|
|
|
|
static TOOL_ACTION viewFront;
|
|
|
|
static TOOL_ACTION viewBack;
|
|
|
|
static TOOL_ACTION viewLeft;
|
|
|
|
static TOOL_ACTION viewRight;
|
|
|
|
static TOOL_ACTION viewTop;
|
|
|
|
static TOOL_ACTION viewBottom;
|
|
|
|
|
2020-03-18 22:48:36 +00:00
|
|
|
static TOOL_ACTION noGrid;
|
|
|
|
static TOOL_ACTION show10mmGrid;
|
|
|
|
static TOOL_ACTION show5mmGrid;
|
|
|
|
static TOOL_ACTION show2_5mmGrid;
|
|
|
|
static TOOL_ACTION show1mmGrid;
|
|
|
|
|
2020-07-27 23:16:21 +00:00
|
|
|
static TOOL_ACTION materialNormal;
|
|
|
|
static TOOL_ACTION materialDiffuse;
|
|
|
|
static TOOL_ACTION materialCAD;
|
|
|
|
|
2021-08-05 12:03:59 +00:00
|
|
|
static TOOL_ACTION showTHT;
|
|
|
|
static TOOL_ACTION showSMD;
|
|
|
|
static TOOL_ACTION showVirtual;
|
2022-09-24 09:25:02 +00:00
|
|
|
static TOOL_ACTION showNotInPosFile;
|
2023-04-10 17:10:42 +00:00
|
|
|
static TOOL_ACTION showDNP;
|
2021-08-05 12:03:59 +00:00
|
|
|
static TOOL_ACTION showBBoxes;
|
2020-03-18 22:48:36 +00:00
|
|
|
static TOOL_ACTION showAxis;
|
2023-08-11 17:40:13 +00:00
|
|
|
static TOOL_ACTION showLayersManager;
|
2019-06-10 22:17:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|