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.

95 lines
4.2 KiB

  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-2019 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 pcb_display_options.h
  26. * @brief Definition of PCB_DISPLAY_OPTIONS class
  27. */
  28. #ifndef PCB_DISPLAY_OPTIONS_H_
  29. #define PCB_DISPLAY_OPTIONS_H_
  30. /**
  31. * Class PCB_DISPLAY_OPTIONS
  32. * handles display options like enable/disable some optional drawings.
  33. */
  34. class PCB_DISPLAY_OPTIONS
  35. {
  36. public:
  37. /**
  38. * Enum TRACE_CLEARANCE_DISPLAY_MODE_T
  39. * is the set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode parameter option.
  40. * This parameter controls how to show tracks and vias clearance area.
  41. */
  42. enum TRACE_CLEARANCE_DISPLAY_MODE_T {
  43. DO_NOT_SHOW_CLEARANCE = 0, // Do not show clearance areas
  44. SHOW_CLEARANCE_NEW_TRACKS, /* Show clearance areas only for new track
  45. * during track creation. */
  46. SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS, /* Show clearance areas only for new track
  47. * during track creation, and shows a via
  48. * clearance area at end of current new
  49. * segment (guide to place a new via
  50. */
  51. SHOW_CLEARANCE_NEW_AND_EDITED_TRACKS_AND_VIA_AREAS,
  52. /* Show clearance for new, moving and
  53. * dragging tracks and vias
  54. */
  55. SHOW_CLEARANCE_ALWAYS /* Show Always clearance areas
  56. * for track and vias
  57. */
  58. };
  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. bool m_DisplayPolarCood;
  69. int m_DisplayZonesMode;
  70. int m_DisplayNetNamesMode; /* 0 do not show netnames,
  71. * 1 show netnames on pads
  72. * 2 show netnames on tracks
  73. * 3 show netnames on tracks and pads
  74. */
  75. bool m_DisplayDrawItemsFill; // How to display graphic items on board ( sketch/ filled )
  76. bool m_ContrastModeDisplay;
  77. int m_MaxLinksShowed; // in track creation: number of hairwires shown
  78. bool m_Show_Module_Ratsnest; // When moving a footprint: allows displaying a ratsnest
  79. bool m_DisplayRatsnestLinesCurved; // Airwires can be drawn as straight lines (false)
  80. // or curved lines (true)
  81. public:
  82. PCB_DISPLAY_OPTIONS();
  83. };
  84. #endif // PCBSTRUCT_H_