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.

76 lines
2.2 KiB

15 years ago
  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2007-2014 Jean-Pierre Charras jp.charras at wanadoo.fr
  5. * Copyright (C) 1992-2014 KiCad Developers, see change_log.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. #ifndef GERBVIEW_H
  25. #define GERBVIEW_H
  26. #include <vector>
  27. #include <set>
  28. #define CURSEUR_ON_GRILLE 0
  29. #define CURSEUR_OFF_GRILLE 1
  30. /// List of page sizes
  31. extern const wxChar* g_GerberPageSizeList[7];
  32. // Interpolation type
  33. enum Gerb_Interpolation
  34. {
  35. GERB_INTERPOL_LINEAR_1X = 0,
  36. GERB_INTERPOL_ARC_NEG,
  37. GERB_INTERPOL_ARC_POS
  38. };
  39. // Command Type (GCodes)
  40. enum Gerb_GCommand
  41. {
  42. GC_MOVE = 0,
  43. GC_LINEAR_INTERPOL_1X = 1,
  44. GC_CIRCLE_NEG_INTERPOL = 2,
  45. GC_CIRCLE_POS_INTERPOL = 3,
  46. GC_COMMENT = 4,
  47. GC_TURN_ON_POLY_FILL = 36,
  48. GC_TURN_OFF_POLY_FILL = 37,
  49. GC_SELECT_TOOL = 54,
  50. GC_PHOTO_MODE = 55, // can start a D03 flash command: redundant with D03
  51. GC_SPECIFY_INCHES = 70,
  52. GC_SPECIFY_MILLIMETERS = 71,
  53. GC_TURN_OFF_360_INTERPOL = 74,
  54. GC_TURN_ON_360_INTERPOL = 75,
  55. GC_SPECIFY_ABSOLUES_COORD = 90,
  56. GC_SPECIFY_RELATIVEES_COORD = 91
  57. };
  58. enum Gerb_Analyse_Cmd
  59. {
  60. CMD_IDLE = 0,
  61. END_BLOCK,
  62. ENTER_RS274X_CMD
  63. };
  64. #endif // ifndef GERBVIEW_H