You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.7 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2013 CERN
  5. * @author Maciej Suminski <maciej.suminski@cern.ch>
  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. #include <tool/tool_action.h>
  25. /**
  26. * Class COMMON_ACTIONS
  27. *
  28. * Gathers all the actions that are shared by tools. The instance of COMMON_ACTION is created
  29. * inside of ACTION_MANAGER object that registers the actions.
  30. */
  31. class COMMON_ACTIONS
  32. {
  33. public:
  34. /// Activation of the selection tool
  35. static TOOL_ACTION selectionActivate;
  36. /// Select a single item under the cursor position
  37. static TOOL_ACTION selectionSingle;
  38. /// Clears the current selection
  39. static TOOL_ACTION selectionClear;
  40. /// Activation of the edit tool
  41. static TOOL_ACTION editActivate;
  42. /// Rotation of selected objects
  43. static TOOL_ACTION rotate;
  44. /// Flipping of selected objects
  45. static TOOL_ACTION flip;
  46. /// Activation of the edit tool
  47. static TOOL_ACTION properties;
  48. /// Deleting a BOARD_ITEM
  49. static TOOL_ACTION remove;
  50. /// Activation of the drawing tool (line)
  51. static TOOL_ACTION drawLine;
  52. /// Activation of the drawing tool (circle)
  53. static TOOL_ACTION drawCircle;
  54. /// Activation of the drawing tool (arc)
  55. static TOOL_ACTION drawArc;
  56. /// Activation of the drawing tool (text)
  57. static TOOL_ACTION drawText;
  58. /// Activation of the drawing tool (dimension)
  59. static TOOL_ACTION drawDimension;
  60. /// Activation of the drawing tool (drawing a ZONE)
  61. static TOOL_ACTION drawZone;
  62. /// Activation of the drawing tool (drawing a keepout area)
  63. static TOOL_ACTION drawKeepout;
  64. /// Activation of the drawing tool (placing a TARGET)
  65. static TOOL_ACTION placeTarget;
  66. /// Activation of the drawing tool (placing a MODULE)
  67. static TOOL_ACTION placeModule;
  68. };