2017-09-17 22:44:30 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Jon Evans <jon@craftyjon.com>
|
2021-01-26 15:23:37 +00:00
|
|
|
* Copyright (C) 2017-2021 KiCad Developers, see AUTHORS.txt for contributors.
|
2017-09-17 22:44:30 +00:00
|
|
|
*
|
|
|
|
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GERBVIEW_ACTIONS_H
|
|
|
|
#define __GERBVIEW_ACTIONS_H
|
|
|
|
|
|
|
|
#include <tool/tool_action.h>
|
|
|
|
#include <tool/actions.h>
|
|
|
|
|
|
|
|
class TOOL_EVENT;
|
|
|
|
class TOOL_MANAGER;
|
|
|
|
|
|
|
|
/**
|
2021-01-26 15:23:37 +00:00
|
|
|
* Gather all the actions that are shared by tools. The instance of GERBVIEW_ACTIONS is created
|
2017-09-17 22:44:30 +00:00
|
|
|
* inside of ACTION_MANAGER object that registers the actions.
|
|
|
|
*/
|
|
|
|
class GERBVIEW_ACTIONS : public ACTIONS
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// Selection Tool
|
|
|
|
/// Activation of the selection tool
|
|
|
|
static TOOL_ACTION selectionActivate;
|
|
|
|
|
|
|
|
/// Select a single item under the cursor position
|
|
|
|
static TOOL_ACTION selectionCursor;
|
|
|
|
|
2021-01-26 15:23:37 +00:00
|
|
|
/// Clear the current selection
|
2017-09-17 22:44:30 +00:00
|
|
|
static TOOL_ACTION selectionClear;
|
|
|
|
|
|
|
|
/// Selects an item (specified as the event parameter).
|
|
|
|
static TOOL_ACTION selectItem;
|
|
|
|
|
|
|
|
/// Unselects an item (specified as the event parameter).
|
|
|
|
static TOOL_ACTION unselectItem;
|
|
|
|
|
|
|
|
/// Activation of the edit tool
|
|
|
|
static TOOL_ACTION properties;
|
2020-10-08 22:59:16 +00:00
|
|
|
static TOOL_ACTION showDCodes;
|
|
|
|
static TOOL_ACTION showSource;
|
|
|
|
|
|
|
|
static TOOL_ACTION exportToPcbnew;
|
2017-09-17 22:44:30 +00:00
|
|
|
|
|
|
|
// Display modes
|
2018-03-04 21:59:12 +00:00
|
|
|
static TOOL_ACTION linesDisplayOutlines;
|
|
|
|
static TOOL_ACTION flashedDisplayOutlines;
|
|
|
|
static TOOL_ACTION polygonsDisplayOutlines;
|
|
|
|
static TOOL_ACTION negativeObjectDisplay;
|
|
|
|
static TOOL_ACTION dcodeDisplay;
|
2019-06-02 18:58:09 +00:00
|
|
|
static TOOL_ACTION toggleDiffMode;
|
2020-07-26 04:20:07 +00:00
|
|
|
static TOOL_ACTION flipGerberView;
|
2017-09-17 22:44:30 +00:00
|
|
|
|
|
|
|
// Layer control
|
|
|
|
static TOOL_ACTION layerPrev;
|
2018-03-04 21:59:12 +00:00
|
|
|
static TOOL_ACTION layerNext;
|
2022-07-25 14:02:17 +00:00
|
|
|
static TOOL_ACTION moveLayerUp;
|
|
|
|
static TOOL_ACTION moveLayerDown;
|
2020-10-08 23:51:05 +00:00
|
|
|
static TOOL_ACTION clearLayer;
|
|
|
|
static TOOL_ACTION clearAllLayers;
|
|
|
|
static TOOL_ACTION reloadAllLayers;
|
2017-09-17 22:44:30 +00:00
|
|
|
|
|
|
|
static TOOL_ACTION layerChanged; // notification
|
|
|
|
|
2020-05-03 22:02:07 +00:00
|
|
|
// Files
|
2021-08-16 18:42:46 +00:00
|
|
|
static TOOL_ACTION openAutodetected;
|
2020-05-03 22:02:07 +00:00
|
|
|
static TOOL_ACTION openGerber;
|
|
|
|
static TOOL_ACTION openDrillFile;
|
|
|
|
static TOOL_ACTION openJobFile;
|
|
|
|
static TOOL_ACTION openZipFile;
|
|
|
|
|
2020-10-08 23:51:05 +00:00
|
|
|
// Open/close the layer manager
|
|
|
|
static TOOL_ACTION toggleLayerManager;
|
|
|
|
|
2017-09-17 22:44:30 +00:00
|
|
|
// Highlighting
|
|
|
|
static TOOL_ACTION highlightClear;
|
|
|
|
static TOOL_ACTION highlightNet;
|
|
|
|
static TOOL_ACTION highlightComponent;
|
|
|
|
static TOOL_ACTION highlightAttribute;
|
2021-03-13 17:45:33 +00:00
|
|
|
static TOOL_ACTION highlightDCode;
|
2022-09-14 22:28:09 +00:00
|
|
|
|
|
|
|
// Drag and drop
|
|
|
|
static TOOL_ACTION loadZipFile;
|
|
|
|
static TOOL_ACTION loadGerbFiles;
|
2017-09-17 22:44:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GERBVIEW_ACTIONS_H
|