KiCad PCB EDA Suite
Loading...
Searching...
No Matches
footprint_editor_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 Jon Evans <[email protected]>
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
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#ifndef FOOTPRINT_EDITOR_SETTINGS_H_
22#define FOOTPRINT_EDITOR_SETTINGS_H_
23
27#include <pcbnew_settings.h>
29
30
32{
33public:
43
44 struct USER_GRID
45 {
46 double size_x;
47 double size_y;
48 int units;
49 };
50
52
54
55 virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig ) override;
56
58 // TODO: factor out the relevant stuff so the whole BDS doesn't have to be here
60
61 // Only the magneticPads element is used
63
65
67
69
71
73
77
79
81
83
85
87
89
91
92 std::vector<LAYER_PRESET> m_LayerPresets;
93
95
97 struct OPEN_TAB
98 {
99 wxString m_lib;
100 wxString m_fpName;
101 bool m_preview = false;
102 };
103
104 std::vector<OPEN_TAB> m_OpenTabs;
105
107 wxString m_ActiveTab;
108
109protected:
110
111 virtual std::string getLegacyFrameName() const override { return "ModEditFrame"; }
112
113private:
114
115 bool migrateSchema0to1();
116
117 bool migrateSchema2To3();
118
119 bool migrateSchema3To4();
120
121 bool migrateSchema4To5();
122};
123
124
125#endif
ARC_EDIT_MODE
Settings for arc editing.
Container for design settings for a BOARD object.
bool migrateSchema3To4()
Schema version 4: move layer presets to use named render layers.
BOARD_DESIGN_SETTINGS m_DesignSettings
Only some of these settings are actually used for footprint editing.
virtual std::string getLegacyFrameName() const override
bool migrateSchema2To3()
Schema version 2: Bump for KiCad 9 layer numbering changes Migrate layer presets to use new enum valu...
wxString m_ActiveTab
Tab key ("lib:fpName") of the tab that was active when the editor last closed.
std::vector< LAYER_PRESET > m_LayerPresets
bool migrateSchema4To5()
Schema version 5: move text defaults to used named layers.
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
SNAP_INFERENCE_SETTINGS m_SnapInference
PCB_SELECTION_FILTER_OPTIONS m_SelectionFilter
PCB_VIEWERS_SETTINGS_BASE(const std::string &aFilename, int aSchemaVersion)
LEADER_MODE
The kind of the leader line.
One open tab persisted across sessions.
This file contains data structures that are saved in the project file or project local settings file ...