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.

104 lines
2.6 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, you may find one here:
  18. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  19. * or you may search the http://www.gnu.org website for the version 2 license,
  20. * or you may write to the Free Software Foundation, Inc.,
  21. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  22. */
  23. #pragma once
  24. #include <settings/app_settings.h>
  25. #include <project/sch_project_settings.h>
  26. class SYMBOL_EDITOR_SETTINGS : public APP_SETTINGS_BASE
  27. {
  28. public:
  29. struct AUI_PANELS
  30. {
  31. int properties_panel_width;
  32. float properties_splitter;
  33. bool show_properties;
  34. };
  35. struct DEFAULTS
  36. {
  37. int line_width;
  38. int text_size;
  39. int pin_length;
  40. int pin_name_size;
  41. int pin_num_size;
  42. };
  43. struct REPEAT
  44. {
  45. int label_delta;
  46. int pin_step;
  47. };
  48. struct DIALOG_IMPORT_GRAPHICS
  49. {
  50. bool interactive_placement;
  51. wxString last_file;
  52. double dxf_line_width;
  53. int dxf_line_width_units;
  54. int origin_units;
  55. double origin_x;
  56. double origin_y;
  57. int dxf_units;
  58. };
  59. SYMBOL_EDITOR_SETTINGS();
  60. virtual ~SYMBOL_EDITOR_SETTINGS() {}
  61. virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig ) override;
  62. AUI_PANELS m_AuiPanels;
  63. DEFAULTS m_Defaults;
  64. REPEAT m_Repeat;
  65. DIALOG_IMPORT_GRAPHICS m_ImportGraphics;
  66. bool m_ShowPinElectricalType;
  67. bool m_ShowHiddenPins;
  68. bool m_ShowHiddenFields;
  69. ///< When true, dragging an outline edge will drag pins rooted on it
  70. bool m_dragPinsAlongWithEdges;
  71. int m_LibWidth;
  72. int m_LibrarySortMode;
  73. wxString m_EditSymbolVisibleColumns;
  74. wxString m_PinTableVisibleColumns;
  75. bool m_UseEeschemaColorSettings;
  76. SCH_SELECTION_FILTER_OPTIONS m_SelectionFilter;
  77. protected:
  78. virtual std::string getLegacyFrameName() const override { return "LibeditFrame"; }
  79. };