KiCad PCB EDA Suite
eeschema_settings.h
Go to the documentation of this file.
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
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 
24 #ifndef _EESCHEMA_SETTINGS_H
25 #define _EESCHEMA_SETTINGS_H
26 
27 #include <settings/app_settings.h>
28 
29 
30 using KIGFX::COLOR4D;
31 
32 
34 {
35 public:
36 
37  struct APPEARANCE
38  {
51  };
52 
54  {
55  bool enable;
58  };
59 
60  struct DRAWING
61  {
73  wxString field_names;
81  };
82 
83  struct INPUT
84  {
86  };
87 
88  struct SELECTION
89  {
90  int thickness;
95  };
96 
98  {
113  };
114 
116  {
117  int method;
120  };
121 
122  struct PANEL_BOM
123  {
124  wxString selected_plugin;
125  wxString plugins;
126  };
127 
129  {
130  std::map<std::string, bool> fields_show;
131  std::map<std::string, bool> fields_group_by;
132  std::map<std::string, int> column_widths;
133  };
134 
136  {
141  };
142 
144  {
145  std::vector<wxString> custom_command_titles;
146  std::vector<wxString> custom_command_paths;
147  };
148 
149  struct PANEL_PLOT
150  {
152  bool color;
153  wxString color_theme;
154  int format;
159  };
160 
162  {
165  int width;
166  int height;
169  };
170 
171  struct SIMULATOR
172  {
179  };
180 
182 
183  virtual ~EESCHEMA_SETTINGS() {}
184 
185  virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig ) override;
186 
188 
190 
192 
194 
196 
198 
200 
202 
204 
206 
208 
210 
212 
214 
216 
218 
219 protected:
220 
221  virtual std::string getLegacyFrameName() const override { return "SchematicFrame"; }
222 };
223 
224 
225 #endif
PANEL_ANNOTATE m_AnnotatePanel
virtual ~EESCHEMA_SETTINGS()
PANEL_SYM_CHOOSER m_SymChooserPanel
PANEL_FIELD_EDITOR m_FieldEditorPanel
PAGE_SETTINGS m_PageSettings
Stores the common settings that are saved and loaded for each window / frame.
Definition: app_settings.h:81
AUTOPLACE_FIELDS m_AutoplaceFields
std::vector< wxString > custom_command_titles
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Definition: app_settings.h:99
std::map< std::string, int > column_widths
PANEL_LIB_VIEW m_LibViewPanel
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
virtual std::string getLegacyFrameName() const override
std::vector< wxString > custom_command_paths
std::map< std::string, bool > fields_group_by
std::map< std::string, bool > fields_show
PANEL_NETLIST m_NetlistPanel
COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:100