You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.8 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2024 Jean-Pierre Charras.
  5. * Copyright The 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. #pragma once
  21. // These flags are used to control the data items that must be disabled when creating
  22. // mainly a netlist but also some other KiCad files.
  23. // They allow skipping specified data in these files.
  24. #define CTL_OMIT_EXTRA (1 << 0)
  25. #define CTL_OMIT_NETS (1 << 1)
  26. #define CTL_OMIT_PAD_NETS (1 << 1) ///< Omit pads net names (useless in library).
  27. #define CTL_OMIT_UUIDS (1 << 2) ///< Omit component unique ids (useless in library)
  28. #define CTL_OMIT_FP_UUID (1 << 3) ///< Don't prefix the footprint UUID to the sheet
  29. ///< path.
  30. #define CTL_OMIT_PATH (1 << 4) ///< Omit component sheet time stamp (useless in
  31. ///< library).
  32. #define CTL_OMIT_AT (1 << 5) ///< Omit position and rotation. (always saved
  33. ///< with position 0,0 and rotation = 0 in library).
  34. // If set, when calling EDA_TEXT::Format, disable writing the "hide" keyword in save file.
  35. #define CTL_OMIT_HIDE (1 << 6) ///< Omit the hide attribute in .kicad_xxx files.
  36. #define CTL_OMIT_LIBNAME (1 << 7) ///< Omit lib alias when saving (used for
  37. ///< board/not library)..
  38. #define CTL_OMIT_FOOTPRINT_VERSION (1 << 8) ///< Omit the version string from the (footprint)
  39. ///< sexpr group.
  40. #define CTL_OMIT_FILTERS (1 << 9) ///< Omit the ki_fp_filters attribute in
  41. ///< .kicad_xxx files.
  42. #define CTL_OMIT_INITIAL_COMMENTS (1 << 10) ///< Omit #FOOTPRINT initial comments.
  43. #define CTL_OMIT_COLOR (1 << 11) ///< Omit the color attribute in .kicad_xxx files.
  44. #define CTL_OMIT_HYPERLINK (1 << 12) ///< Omit the hyperlink attribute in .kicad_xxx
  45. ///< files.