KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_project_settings.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) 2024 Jon Evans <[email protected]>
5 * Copyright (C) 2024 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef KICAD_SCH_PROJECT_SETTINGS_H
22#define KICAD_SCH_PROJECT_SETTINGS_H
23
25{
27 bool symbols;
28 bool text;
29 bool wires;
30 bool labels;
31 bool pins;
32 bool graphics;
33 bool images;
35
37 {
38 lockedItems = true;
39 symbols = true;
40 text = true;
41 wires = true;
42 labels = true;
43 pins = true;
44 graphics = true;
45 images = true;
46 otherItems = true;
47 }
48
52 bool Any()
53 {
54 return ( symbols || text || wires || labels || pins || graphics || images || otherItems );
55 }
56
60 bool All()
61 {
62 return ( symbols && text && wires && labels && pins && graphics && images && otherItems );
63 }
64
66 {
67 lockedItems = false;
68 symbols = true;
69 text = true;
70 wires = true;
71 labels = true;
72 pins = true;
73 graphics = true;
74 images = true;
75 otherItems = true;
76 }
77};
78
79#endif //KICAD_SCH_PROJECT_SETTINGS_H
bool symbols
Allow selecting symbols and sheet symbols.
bool labels
Net and bus labels.
bool pins
Symbol and sheet pins.
bool graphics
Graphic lines, shapes, polygons.
bool lockedItems
Allow selecting locked items.
bool images
Bitmap/vector images.
bool otherItems
Anything not fitting one of the above categories.
bool wires
Net and bus wires and junctions.