File: ctl_flags.h

package info (click to toggle)
kicad 9.0.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 769,124 kB
  • sloc: cpp: 960,330; ansic: 121,001; xml: 66,428; python: 18,382; sh: 1,010; awk: 301; asm: 292; makefile: 227; javascript: 167; perl: 10
file content (47 lines) | stat: -rw-r--r-- 2,688 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * This program source code file is part of KiCad, a free EDA CAD application.
 *
 * Copyright (C) 2024 Jean-Pierre Charras.
 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#pragma once

// These flags are used to control the data items that must be disabled when creating
// mainly a netlist but also some other KiCad files.
// They allow skipping specified data in these files.

#define CTL_OMIT_EXTRA              (1 << 0)
#define CTL_OMIT_NETS               (1 << 1)
#define CTL_OMIT_PAD_NETS           (1 << 1)    ///< Omit pads net names (useless in library).
#define CTL_OMIT_UUIDS              (1 << 2)    ///< Omit component unique ids (useless in library)
#define CTL_OMIT_FP_UUID            (1 << 3)    ///< Don't prefix the footprint UUID to the sheet
                                                ///< path.
#define CTL_OMIT_PATH               (1 << 4)    ///< Omit component sheet time stamp (useless in
                                                ///< library).
#define CTL_OMIT_AT                 (1 << 5)    ///< Omit position and rotation. (always saved
                                                ///< with position 0,0 and rotation = 0 in library).
#define CTL_OMIT_LIBNAME            (1 << 7)    ///< Omit lib alias when saving (used for
                                                ///< board/not library)..
#define CTL_OMIT_FOOTPRINT_VERSION  (1 << 8)    ///< Omit the version string from the (footprint)
                                                ///< sexpr group.
#define CTL_OMIT_FILTERS            (1 << 9)    ///< Omit the ki_fp_filters attribute in
                                                ///< .kicad_xxx files.
#define CTL_OMIT_INITIAL_COMMENTS   (1 << 10)   ///< Omit #FOOTPRINT initial comments.

#define CTL_OMIT_COLOR              (1 << 11)   ///< Omit the color attribute in .kicad_xxx files.
#define CTL_OMIT_HYPERLINK          (1 << 12)   ///< Omit the hyperlink attribute in .kicad_xxx
                                                ///< files.