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 (C) 2020-2023 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 along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef FOOTPRINT_EDITOR_SETTINGS_H_
22#define FOOTPRINT_EDITOR_SETTINGS_H_
23
26#include <pcbnew_settings.h>
28
29
31{
32public:
34 {
41 };
42
43 struct USER_GRID
44 {
45 double size_x;
46 double size_y;
47 int units;
48 };
49
51
53
54 virtual bool MigrateFromLegacy( wxConfigBase* aLegacyConfig ) override;
55
57 // TODO: factor out the relevant stuff so the whole BDS doesn't have to be here
59
60 // Only the magneticPads element is used
62
64
66
68
70
74
76
78
80
82
84
86
88
89 std::vector<LAYER_PRESET> m_LayerPresets;
90
92
93protected:
94
95 virtual std::string getLegacyFrameName() const override { return "ModEditFrame"; }
96
97private:
98
99 bool migrateSchema0to1();
100
101 bool migrateSchema2To3();
102};
103
104
105#endif
ARC_EDIT_MODE
Settings for arc editing.
Definition: app_settings.h:52
Container for design settings for a BOARD object.
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...
std::vector< LAYER_PRESET > m_LayerPresets
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
PCB_SELECTION_FILTER_OPTIONS m_SelectionFilter
This file contains data structures that are saved in the project file or project local settings file ...