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.

72 lines
2.4 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
  5. *
  6. * This program is free software: you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation, either version 3 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef KICAD_SCHEMATIC_SETTINGS_H
  20. #define KICAD_SCHEMATIC_SETTINGS_H
  21. #include <convert_to_biu.h>
  22. #include <default_values.h>
  23. #include <settings/nested_settings.h>
  24. #include <template_fieldnames.h>
  25. /**
  26. * These settings were stored in SCH_BASE_FRAME previously.
  27. * The backing store is currently the project file.
  28. * They should likely move to a project settings file (JSON) once that framework exists.
  29. *
  30. * These are loaded from eeschema settings but then overwritten by the project settings.
  31. * All of the values are stored in IU, but the backing file stores in mils.
  32. */
  33. class SCHEMATIC_SETTINGS : public NESTED_SETTINGS
  34. {
  35. public:
  36. SCHEMATIC_SETTINGS( JSON_SETTINGS* aParent, const std::string& aPath );
  37. virtual ~SCHEMATIC_SETTINGS();
  38. // Default sizes are all stored in IU here, and in mils in the JSON file
  39. int m_DefaultLineWidth;
  40. int m_DefaultWireThickness;
  41. int m_DefaultBusThickness;
  42. int m_DefaultTextSize;
  43. double m_TextOffsetRatio;
  44. int m_PinSymbolSize;
  45. int m_JunctionSize; // Size of junction dot in mils
  46. // User choice for junction dot size ( e.g. none = 0, smallest = 1, small = 2, etc )
  47. int m_JunctionSizeChoice;
  48. bool m_IntersheetRefsShow;
  49. bool m_IntersheetRefsFormatShort;
  50. wxString m_IntersheetRefsPrefix;
  51. wxString m_IntersheetRefsSuffix;
  52. wxString m_PageLayoutDescrFile;
  53. wxString m_PlotDirectoryName;
  54. wxString m_NetFormatName;
  55. bool m_SpiceAdjustPassiveValues;
  56. wxString m_SpiceCommandString; // A command string to run external spice
  57. TEMPLATES m_TemplateFieldNames;
  58. };
  59. #endif