KiCad PCB EDA Suite
pcb_display_options.h
Go to the documentation of this file.
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 
30 #ifndef PCB_DISPLAY_OPTIONS_H_
31 #define PCB_DISPLAY_OPTIONS_H_
32 
34 
40 {
41 public:
42 
49  DO_NOT_SHOW_CLEARANCE = 0, // Do not show clearance areas
50  SHOW_CLEARANCE_NEW_TRACKS, /* Show clearance areas only for new track
51  * during track creation. */
52  SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS, /* Show clearance areas only for new track
53  * during track creation, and shows a via
54  * clearance area at end of current new
55  * segment (guide to place a new via
56  */
58  /* Show clearance for new, moving and
59  * dragging tracks and vias
60  */
61  SHOW_CLEARANCE_ALWAYS /* Show Always clearance areas
62  * for track and vias
63  */
64  };
65 
68  bool m_DisplayPadNum; // show pads numbers
70  bool m_DisplayGraphicsFill; // How to display module drawings ( sketch/ filled )
71  bool m_DisplayTextFill; // How to display module texts ( sketch/ filled )
72  bool m_DisplayPcbTrackFill; // false : tracks are show in sketch mode, true = filled.
73 
76 
78  int m_DisplayNetNamesMode; /* 0 do not show netnames,
79  * 1 show netnames on pads
80  * 2 show netnames on tracks
81  * 3 show netnames on tracks and pads
82  */
83 
86 
87  int m_MaxLinksShowed; // in track creation: number of hairwires shown
88  bool m_ShowModuleRatsnest; // When moving a footprint: allows displaying a ratsnest
89  bool m_ShowGlobalRatsnest; // If true, show all
90  bool m_DisplayRatsnestLinesCurved; // Airwires can be drawn as straight lines (false)
91  // or curved lines (true)
92 
93 public:
94 
96 };
97 
98 #endif // PCBSTRUCT_H_
TRACE_CLEARANCE_DISPLAY_MODE_T m_ShowTrackClearanceMode
How trace clearances are displayed.
TRACE_CLEARANCE_DISPLAY_MODE_T
Enum TRACE_CLEARANCE_DISPLAY_MODE_T is the set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode p...
PCB_DISPLAY_OPTIONS handles display options like enable/disable some optional drawings.
HIGH_CONTRAST_MODE
Determines how inactive layers should be displayed.
HIGH_CONTRAST_MODE m_ContrastModeDisplay
How inactive layers are displayed.