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;
76  };
77 
78  struct INPUT
79  {
81  };
82 
83  struct SELECTION
84  {
85  int thickness;
90  };
91 
93  {
108  };
109 
111  {
112  int method;
115  };
116 
117  struct PANEL_BOM
118  {
119  wxString selected_plugin;
120  wxString plugins;
121  };
122 
124  {
125  std::map<std::string, bool> fields_show;
126  std::map<std::string, bool> fields_group_by;
127  std::map<std::string, int> column_widths;
128  };
129 
131  {
136  };
137 
139  {
140  std::vector<wxString> custom_command_titles;
141  std::vector<wxString> custom_command_paths;
142  };
143 
144  struct PANEL_PLOT
145  {
147  bool color;
148  wxString color_theme;
149  int format;
154  };
155 
157  {
160  int width;
161  int height;
164  };
165 
166  struct SIMULATOR
167  {
174  };
175 
177 
178  virtual ~EESCHEMA_SETTINGS() {}
179 
180  virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig ) override;
181 
183 
185 
187 
189 
191 
193 
195 
197 
199 
201 
203 
205 
207 
209 
211 
212 protected:
213 
214  virtual std::string getLegacyFrameName() const override { return "SchematicFrame"; }
215 };
216 
217 
218 #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:68
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:92
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:99