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.

59 lines
2.8 KiB

8 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-2012 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 <board_design_settings.h>
  29. #include <layers_id_colors_and_visibility.h>
  30. #include <pcb_display_options.h>
  31. #include <eda_text.h>
  32. PCB_DISPLAY_OPTIONS::PCB_DISPLAY_OPTIONS()
  33. {
  34. m_DisplayPadFill = FILLED;
  35. m_DisplayViaFill = FILLED;
  36. m_DisplayPadNum = true;
  37. m_DisplayPadIsol = true;
  38. m_DisplayModEdgeFill = FILLED;
  39. m_DisplayModTextFill = FILLED;
  40. m_DisplayPcbTrackFill = FILLED; // false = sketch , true = filled
  41. m_ShowTrackClearanceMode = SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS;
  42. m_DisplayPolarCood = false; /* false = display absolute coordinates,
  43. * true = display polar cordinates */
  44. m_DisplayZonesMode = 0; /* 0 = Show filled areas outlines in zones,
  45. * 1 = do not show filled areas outlines
  46. * 2 = show outlines of filled areas */
  47. m_DisplayNetNamesMode = 3; /* 0 do not show netnames,
  48. * 1 show netnames on pads
  49. * 2 show netnames on tracks
  50. * 3 show netnames on tracks and pads */
  51. m_DisplayDrawItemsFill = FILLED;
  52. m_ContrastModeDisplay = false;
  53. m_MaxLinksShowed = 3; // in track creation: number of hairwires shown
  54. m_Show_Module_Ratsnest = true; // When moving a footprint: allows displaying a ratsnest
  55. }