Browse Source
Move all CTL_OMIT_xxx flags definitions into a new file ctl_flags.h
Move all CTL_OMIT_xxx flags definitions into a new file ctl_flags.h
Previously, they were defined in different files, and sometimes redefined. This change should not create an actual code change. However, this move shows there are the same value used for different flags, so another fix should be made later. From master branch8.0
6 changed files with 50 additions and 22 deletions
-
1common/eda_text.cpp
-
44include/ctl_flags.h
-
6include/eda_text.h
-
6pcbnew/netlist_reader/pcb_netlist.h
-
1pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.cpp
-
14pcbnew/pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h
@ -0,0 +1,44 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2024 Jean-Pierre Charras. |
|||
* Copyright (C) 2024 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_FILTERS (1 << 2) |
|||
#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_INITIAL_COMMENTS (1 << 3) ///< omit FOOTPRINT initial comments |
|||
#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). |
|||
|
|||
// If set, when calling EDA_TEXT::Format, disable writing the "hide" keyword in save file |
|||
#define CTL_OMIT_HIDE (1 << 6) |
|||
|
|||
#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 |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue