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.

92 lines
3.9 KiB

19 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-2016 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. * @file pcbstruct.h
  26. * @brief Classes and definitions used in Pcbnew.
  27. */
  28. #ifndef PCBSTRUCT_H_
  29. #define PCBSTRUCT_H_
  30. /**
  31. * Enum TRACE_CLEARANCE_DISPLAY_MODE_T
  32. * is the set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode parameter option.
  33. * This parameter controls how to show tracks and vias clearance area.
  34. */
  35. enum TRACE_CLEARANCE_DISPLAY_MODE_T {
  36. DO_NOT_SHOW_CLEARANCE = 0, // Do not show clearance areas
  37. SHOW_CLEARANCE_NEW_TRACKS, /* Show clearance areas only for new track
  38. * during track creation. */
  39. SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS, /* Show clearance areas only for new track
  40. * during track creation, and shows a via
  41. * clearance area at end of current new
  42. * segment (guide to place a new via
  43. */
  44. SHOW_CLEARANCE_NEW_AND_EDITED_TRACKS_AND_VIA_AREAS,
  45. /* Show clearance for new, moving and
  46. * dragging tracks and vias
  47. */
  48. SHOW_CLEARANCE_ALWAYS /* Show Always clearance areas
  49. * for track and vias
  50. */
  51. };
  52. /**
  53. * Class DISPLAY_OPTIONS
  54. * handles display options like enable/disable some optional drawings.
  55. */
  56. class DISPLAY_OPTIONS
  57. {
  58. public:
  59. bool m_DisplayPadFill;
  60. bool m_DisplayViaFill;
  61. bool m_DisplayPadNum; // show pads numbers
  62. bool m_DisplayPadIsol;
  63. bool m_DisplayModEdgeFill; // How to display module drawings ( sketch/ filled )
  64. bool m_DisplayModTextFill; // How to display module texts ( sketch/ filled )
  65. bool m_DisplayPcbTrackFill; // false : tracks are show in sketch mode, true = filled.
  66. /// How trace clearances are displayed. @see TRACE_CLEARANCE_DISPLAY_MODE_T.
  67. TRACE_CLEARANCE_DISPLAY_MODE_T m_ShowTrackClearanceMode;
  68. int m_DisplayZonesMode;
  69. int m_DisplayNetNamesMode; /* 0 do not show netnames,
  70. * 1 show netnames on pads
  71. * 2 show netnames on tracks
  72. * 3 show netnames on tracks and pads
  73. */
  74. bool m_DisplayDrawItemsFill; // How to display graphic items on board ( sketch/ filled )
  75. bool m_ContrastModeDisplay;
  76. int m_MaxLinksShowed; // in track creation: number of hairwires shown
  77. bool m_Show_Module_Ratsnest; // When moving a footprint: allows displaying a ratsnest
  78. public:
  79. DISPLAY_OPTIONS();
  80. };
  81. #endif // PCBSTRUCT_H_