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
24
#include <
board_design_settings.h
>
25
#include <
settings/app_settings.h
>
26
#include <
pcbnew_settings.h
>
27
#include <
project/board_project_settings.h
>
28
29
30
class
FOOTPRINT_EDITOR_SETTINGS
:
public
PCB_VIEWERS_SETTINGS_BASE
31
{
32
public
:
33
struct
AUI_PANELS
34
{
35
int
appearance_panel_tab
;
36
int
right_panel_width
;
37
bool
show_layer_manager
;
38
bool
show_properties
;
39
int
properties_panel_width
;
40
float
properties_splitter
;
41
};
42
43
struct
USER_GRID
44
{
45
double
size_x
;
46
double
size_y
;
47
int
units
;
48
};
49
50
FOOTPRINT_EDITOR_SETTINGS
();
51
52
virtual
~FOOTPRINT_EDITOR_SETTINGS
() {}
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
58
BOARD_DESIGN_SETTINGS
m_DesignSettings
;
59
60
// Only the magneticPads element is used
61
MAGNETIC_SETTINGS
m_MagneticItems
;
62
63
PCB_DISPLAY_OPTIONS
m_Display
;
64
65
AUI_PANELS
m_AuiPanels
;
66
67
int
m_LibrarySortMode
;
68
69
USER_GRID
m_UserGrid
;
70
71
bool
m_PolarCoords
;
72
bool
m_DisplayInvertXAxis
;
73
bool
m_DisplayInvertYAxis
;
74
75
EDA_ANGLE
m_RotationAngle
;
76
77
bool
m_Use45Limit
;
78
79
ARC_EDIT_MODE
m_ArcEditMode
;
80
81
int
m_LibWidth
;
82
83
wxString
m_LastExportPath
;
84
85
wxString
m_FootprintTextShownColumns
;
86
87
PCB_SELECTION_FILTER_OPTIONS
m_SelectionFilter
;
88
89
std::vector<LAYER_PRESET>
m_LayerPresets
;
90
91
wxString
m_ActiveLayerPreset
;
92
93
protected
:
94
95
virtual
std::string
getLegacyFrameName
()
const override
{
return
"ModEditFrame"
; }
96
97
private
:
98
99
bool
migrateSchema0to1
();
100
101
bool
migrateSchema2To3
();
102
};
103
104
105
#endif
app_settings.h
ARC_EDIT_MODE
ARC_EDIT_MODE
Settings for arc editing.
Definition:
app_settings.h:52
board_design_settings.h
board_project_settings.h
BOARD_DESIGN_SETTINGS
Container for design settings for a BOARD object.
Definition:
board_design_settings.h:248
EDA_ANGLE
Definition:
eda_angle.h:37
FOOTPRINT_EDITOR_SETTINGS
Definition:
footprint_editor_settings.h:31
FOOTPRINT_EDITOR_SETTINGS::m_PolarCoords
bool m_PolarCoords
Definition:
footprint_editor_settings.h:71
FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings
BOARD_DESIGN_SETTINGS m_DesignSettings
Only some of these settings are actually used for footprint editing.
Definition:
footprint_editor_settings.h:58
FOOTPRINT_EDITOR_SETTINGS::m_Use45Limit
bool m_Use45Limit
Definition:
footprint_editor_settings.h:77
FOOTPRINT_EDITOR_SETTINGS::getLegacyFrameName
virtual std::string getLegacyFrameName() const override
Definition:
footprint_editor_settings.h:95
FOOTPRINT_EDITOR_SETTINGS::migrateSchema2To3
bool migrateSchema2To3()
Schema version 2: Bump for KiCad 9 layer numbering changes Migrate layer presets to use new enum valu...
Definition:
footprint_editor_settings.cpp:497
FOOTPRINT_EDITOR_SETTINGS::m_DisplayInvertXAxis
bool m_DisplayInvertXAxis
Definition:
footprint_editor_settings.h:72
FOOTPRINT_EDITOR_SETTINGS::FOOTPRINT_EDITOR_SETTINGS
FOOTPRINT_EDITOR_SETTINGS()
Definition:
footprint_editor_settings.cpp:41
FOOTPRINT_EDITOR_SETTINGS::m_RotationAngle
EDA_ANGLE m_RotationAngle
Definition:
footprint_editor_settings.h:75
FOOTPRINT_EDITOR_SETTINGS::m_LayerPresets
std::vector< LAYER_PRESET > m_LayerPresets
Definition:
footprint_editor_settings.h:89
FOOTPRINT_EDITOR_SETTINGS::m_UserGrid
USER_GRID m_UserGrid
Definition:
footprint_editor_settings.h:69
FOOTPRINT_EDITOR_SETTINGS::m_AuiPanels
AUI_PANELS m_AuiPanels
Definition:
footprint_editor_settings.h:65
FOOTPRINT_EDITOR_SETTINGS::m_Display
PCB_DISPLAY_OPTIONS m_Display
Definition:
footprint_editor_settings.h:63
FOOTPRINT_EDITOR_SETTINGS::m_LibrarySortMode
int m_LibrarySortMode
Definition:
footprint_editor_settings.h:67
FOOTPRINT_EDITOR_SETTINGS::m_LibWidth
int m_LibWidth
Definition:
footprint_editor_settings.h:81
FOOTPRINT_EDITOR_SETTINGS::m_LastExportPath
wxString m_LastExportPath
Definition:
footprint_editor_settings.h:83
FOOTPRINT_EDITOR_SETTINGS::m_DisplayInvertYAxis
bool m_DisplayInvertYAxis
Definition:
footprint_editor_settings.h:73
FOOTPRINT_EDITOR_SETTINGS::MigrateFromLegacy
virtual bool MigrateFromLegacy(wxConfigBase *aLegacyConfig) override
Migrates from wxConfig to JSON-based configuration.
Definition:
footprint_editor_settings.cpp:341
FOOTPRINT_EDITOR_SETTINGS::m_FootprintTextShownColumns
wxString m_FootprintTextShownColumns
Definition:
footprint_editor_settings.h:85
FOOTPRINT_EDITOR_SETTINGS::m_ActiveLayerPreset
wxString m_ActiveLayerPreset
Definition:
footprint_editor_settings.h:91
FOOTPRINT_EDITOR_SETTINGS::m_MagneticItems
MAGNETIC_SETTINGS m_MagneticItems
Definition:
footprint_editor_settings.h:61
FOOTPRINT_EDITOR_SETTINGS::m_ArcEditMode
ARC_EDIT_MODE m_ArcEditMode
Definition:
footprint_editor_settings.h:79
FOOTPRINT_EDITOR_SETTINGS::migrateSchema0to1
bool migrateSchema0to1()
Definition:
footprint_editor_settings.cpp:454
FOOTPRINT_EDITOR_SETTINGS::m_SelectionFilter
PCB_SELECTION_FILTER_OPTIONS m_SelectionFilter
Definition:
footprint_editor_settings.h:87
FOOTPRINT_EDITOR_SETTINGS::~FOOTPRINT_EDITOR_SETTINGS
virtual ~FOOTPRINT_EDITOR_SETTINGS()
Definition:
footprint_editor_settings.h:52
PCB_DISPLAY_OPTIONS
Definition:
pcb_display_options.h:31
PCB_VIEWERS_SETTINGS_BASE
Definition:
pcbnew_settings.h:109
pcbnew_settings.h
FOOTPRINT_EDITOR_SETTINGS::AUI_PANELS
Definition:
footprint_editor_settings.h:34
FOOTPRINT_EDITOR_SETTINGS::AUI_PANELS::properties_splitter
float properties_splitter
Definition:
footprint_editor_settings.h:40
FOOTPRINT_EDITOR_SETTINGS::AUI_PANELS::properties_panel_width
int properties_panel_width
Definition:
footprint_editor_settings.h:39
FOOTPRINT_EDITOR_SETTINGS::AUI_PANELS::show_properties
bool show_properties
Definition:
footprint_editor_settings.h:38
FOOTPRINT_EDITOR_SETTINGS::AUI_PANELS::right_panel_width
int right_panel_width
Definition:
footprint_editor_settings.h:36
FOOTPRINT_EDITOR_SETTINGS::AUI_PANELS::appearance_panel_tab
int appearance_panel_tab
Definition:
footprint_editor_settings.h:35
FOOTPRINT_EDITOR_SETTINGS::AUI_PANELS::show_layer_manager
bool show_layer_manager
Definition:
footprint_editor_settings.h:37
FOOTPRINT_EDITOR_SETTINGS::USER_GRID
Definition:
footprint_editor_settings.h:44
FOOTPRINT_EDITOR_SETTINGS::USER_GRID::size_y
double size_y
Definition:
footprint_editor_settings.h:46
FOOTPRINT_EDITOR_SETTINGS::USER_GRID::units
int units
Definition:
footprint_editor_settings.h:47
FOOTPRINT_EDITOR_SETTINGS::USER_GRID::size_x
double size_x
Definition:
footprint_editor_settings.h:45
MAGNETIC_SETTINGS
Definition:
pcbnew_settings.h:63
PCB_SELECTION_FILTER_OPTIONS
This file contains data structures that are saved in the project file or project local settings file ...
Definition:
board_project_settings.h:44
src
include
footprint_editor_settings.h
Generated on Thu Nov 21 2024 00:06:43 for KiCad PCB EDA Suite by
1.9.6