KiCad PCB EDA Suite
pcbstruct.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-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 
30 #ifndef PCBSTRUCT_H_
31 #define PCBSTRUCT_H_
32 
33 
40  DO_NOT_SHOW_CLEARANCE = 0, // Do not show clearance areas
41  SHOW_CLEARANCE_NEW_TRACKS, /* Show clearance areas only for new track
42  * during track creation. */
43  SHOW_CLEARANCE_NEW_TRACKS_AND_VIA_AREAS, /* Show clearance areas only for new track
44  * during track creation, and shows a via
45  * clearance area at end of current new
46  * segment (guide to place a new via
47  */
49  /* Show clearance for new, moving and
50  * dragging tracks and vias
51  */
52  SHOW_CLEARANCE_ALWAYS /* Show Always clearance areas
53  * for track and vias
54  */
55 };
56 
57 
63 {
64 public:
67  bool m_DisplayPadNum; // show pads numbers
69  bool m_DisplayModEdgeFill; // How to display module drawings ( sketch/ filled )
70  bool m_DisplayModTextFill; // How to display module texts ( sketch/ filled )
71  bool m_DisplayPcbTrackFill; // false : tracks are show in sketch mode, true = filled.
72 
75 
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 
84  bool m_DisplayDrawItemsFill; // How to display graphic items on board ( sketch/ filled )
86  int m_MaxLinksShowed; // in track creation: number of hairwires shown
87  bool m_Show_Module_Ratsnest; // When moving a footprint: allows displaying a ratsnest
88 
89 public:
91 };
92 
93 #endif // PCBSTRUCT_H_
bool m_DisplayModEdgeFill
Definition: pcbstruct.h:69
bool m_DisplayPolarCood
Definition: pcbstruct.h:76
bool m_DisplayPcbTrackFill
Definition: pcbstruct.h:71
bool m_ContrastModeDisplay
Definition: pcbstruct.h:85
bool m_DisplayDrawItemsFill
Definition: pcbstruct.h:84
int m_DisplayZonesMode
Definition: pcbstruct.h:77
Class DISPLAY_OPTIONS handles display options like enable/disable some optional drawings.
Definition: pcbstruct.h:62
TRACE_CLEARANCE_DISPLAY_MODE_T m_ShowTrackClearanceMode
How trace clearances are displayed.
Definition: pcbstruct.h:74
bool m_DisplayPadFill
Definition: pcbstruct.h:65
bool m_DisplayPadIsol
Definition: pcbstruct.h:68
bool m_DisplayPadNum
Definition: pcbstruct.h:67
int m_DisplayNetNamesMode
Definition: pcbstruct.h:78
int m_MaxLinksShowed
Definition: pcbstruct.h:86
bool m_Show_Module_Ratsnest
Definition: pcbstruct.h:87
bool m_DisplayViaFill
Definition: pcbstruct.h:66
bool m_DisplayModTextFill
Definition: pcbstruct.h:70
TRACE_CLEARANCE_DISPLAY_MODE_T
Enum TRACE_CLEARANCE_DISPLAY_MODE_T is the set of values for DISPLAY_OPTIONS.ShowTrackClearanceMode p...
Definition: pcbstruct.h:39