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.

70 lines
2.9 KiB

8 years ago
5 years ago
5 years ago
  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2012 Jean-Pierre Charras, jean-pierre.charras@ujf-grenoble.fr
  5. * Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
  6. * Copyright (C) 2012 Wayne Stambaugh <stambaughw@verizon.net>
  7. * Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version 2
  12. * of the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, you may find one here:
  21. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  22. * or you may search the http://www.gnu.org website for the version 2 license,
  23. * or you may write to the Free Software Foundation, Inc.,
  24. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  25. */
  26. #include <common.h>
  27. #include <pcbnew.h>
  28. #include <pad.h>
  29. #include <board_design_settings.h>
  30. #include <layer_ids.h>
  31. #include <pcb_display_options.h>
  32. #include <eda_text.h>
  33. PCB_DISPLAY_OPTIONS::PCB_DISPLAY_OPTIONS()
  34. {
  35. m_DisplayPadFill = FILLED;
  36. m_DisplayViaFill = FILLED;
  37. m_DisplayPadNum = true;
  38. m_DisplayPadClearance = true;
  39. m_DisplayPadNoConnects = true;
  40. m_DisplayGraphicsFill = FILLED;
  41. m_DisplayTextFill = FILLED;
  42. m_DisplayPcbTrackFill = FILLED; // false = sketch , true = filled
  43. m_ShowTrackClearanceMode = SHOW_TRACK_CLEARANCE_WITH_VIA_WHILE_ROUTING;
  44. m_ZoneDisplayMode = ZONE_DISPLAY_MODE::SHOW_FILLED;
  45. m_DisplayNetNamesMode = 3; /* 0 do not show netnames,
  46. * 1 show netnames on pads
  47. * 2 show netnames on tracks
  48. * 3 show netnames on tracks and pads */
  49. m_ContrastModeDisplay = HIGH_CONTRAST_MODE::NORMAL;
  50. m_NetColorMode = NET_COLOR_MODE::RATSNEST;
  51. m_RatsnestMode = RATSNEST_MODE::ALL;
  52. m_MaxLinksShowed = 3; // in track creation: number of hairwires shown
  53. m_ShowModuleRatsnest = true; // When moving a footprint: allows displaying a ratsnest
  54. m_DisplayRatsnestLinesCurved = false;
  55. m_ShowGlobalRatsnest = true;
  56. m_TrackOpacity = 1.0;
  57. m_ViaOpacity = 1.0;
  58. m_PadOpacity = 1.0;
  59. m_ZoneOpacity = 1.0;
  60. m_DisplayOrigin = PCB_ORIGIN_PAGE;
  61. m_DisplayInvertXAxis = false;
  62. m_DisplayInvertYAxis = false;
  63. m_Live3DRefresh = false;
  64. }