KiCad PCB EDA Suite
|
#include <panel_edit_options.h>
Public Member Functions | |
PANEL_EDIT_OPTIONS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider, wxWindow *aEventSource, bool isFootprintEditor) | |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
void | ResetPanel () override |
Reset the contents of this panel. | |
virtual wxString | GetResetTooltip () const |
Get the tooltip the reset button should display when showing this panel. | |
wxString | GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. | |
Private Member Functions | |
void | loadFPSettings (FOOTPRINT_EDITOR_SETTINGS *aCfg) |
void | loadPCBSettings (PCBNEW_SETTINGS *aCfg) |
Private Attributes | |
bool | m_isFootprintEditor |
UNIT_BINDER | m_rotationAngle |
Definition at line 37 of file panel_edit_options.h.
PANEL_EDIT_OPTIONS::PANEL_EDIT_OPTIONS | ( | wxWindow * | aParent, |
UNITS_PROVIDER * | aUnitsProvider, | ||
wxWindow * | aEventSource, | ||
bool | isFootprintEditor | ||
) |
Definition at line 33 of file panel_edit_options.cpp.
References m_isFootprintEditor, PANEL_EDIT_OPTIONS_BASE::m_magneticGraphics, PANEL_EDIT_OPTIONS_BASE::m_magneticPads, PANEL_EDIT_OPTIONS_BASE::m_mouseCmdsOSX, PANEL_EDIT_OPTIONS_BASE::m_mouseCmdsWinLin, PANEL_EDIT_OPTIONS_BASE::m_optionsBook, PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickAction, PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickActionMac, m_rotationAngle, PANEL_EDIT_OPTIONS_BASE::m_sizerBoardEdit, and UNIT_BINDER::SetUnits().
|
inlineoverrideinherited |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
Definition at line 72 of file resettable_panel.h.
References RESETTABLE_PANEL::GetResetTooltip().
|
inlinevirtualinherited |
Get the tooltip the reset button should display when showing this panel.
Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.
Definition at line 64 of file resettable_panel.h.
References _.
Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().
|
private |
Definition at line 94 of file panel_edit_options.cpp.
References MAGNETIC_SETTINGS::graphics, FOOTPRINT_EDITOR_SETTINGS::m_ArcEditMode, PANEL_EDIT_OPTIONS_BASE::m_arcEditMode, PANEL_EDIT_OPTIONS_BASE::m_cbConstrainHV45Mode, PANEL_EDIT_OPTIONS_BASE::m_magneticGraphics, FOOTPRINT_EDITOR_SETTINGS::m_MagneticItems, PANEL_EDIT_OPTIONS_BASE::m_magneticPads, FOOTPRINT_EDITOR_SETTINGS::m_RotationAngle, m_rotationAngle, FOOTPRINT_EDITOR_SETTINGS::m_Use45Limit, MAGNETIC_SETTINGS::pads, and UNIT_BINDER::SetAngleValue().
Referenced by ResetPanel(), and TransferDataToWindow().
|
private |
Definition at line 62 of file panel_edit_options.cpp.
References MAGNETIC_SETTINGS::graphics, PANEL_EDIT_OPTIONS_BASE::m_allowFreePads, PCBNEW_SETTINGS::m_AllowFreePads, PANEL_EDIT_OPTIONS_BASE::m_arcEditMode, PCBNEW_SETTINGS::m_ArcEditMode, PANEL_EDIT_OPTIONS_BASE::m_autoRefillZones, PCBNEW_SETTINGS::m_AutoRefillZones, PANEL_EDIT_OPTIONS_BASE::m_boardItemsFlip, PANEL_EDIT_OPTIONS_BASE::m_cbConstrainHV45Mode, PANEL_EDIT_OPTIONS_BASE::m_cbCourtyardCollisions, PCBNEW_SETTINGS::m_CtrlClickHighlight, PCBNEW_SETTINGS::m_Display, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayRatsnestLinesCurved, PANEL_EDIT_OPTIONS_BASE::m_escClearsNetHighlight, PCBNEW_SETTINGS::m_ESCClearsNetHighlight, PCBNEW_SETTINGS::m_FlipDirection, PCBNEW_SETTINGS::m_LockingOptions, PANEL_EDIT_OPTIONS_BASE::m_magneticGraphicsChoice, PCBNEW_SETTINGS::m_MagneticItems, PANEL_EDIT_OPTIONS_BASE::m_magneticPadChoice, PANEL_EDIT_OPTIONS_BASE::m_magneticTrackChoice, PANEL_EDIT_OPTIONS_BASE::m_OptDisplayCurvedRatsnestLines, PANEL_EDIT_OPTIONS_BASE::m_overrideLocks, PANEL_EDIT_OPTIONS_BASE::m_ratsnestThickness, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_RatsnestThickness, PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickAction, PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickActionMac, m_rotationAngle, PCBNEW_SETTINGS::m_RotationAngle, PCBNEW_SETTINGS::LOCKING_OPTIONS::m_sessionSkipPrompts, PCBNEW_SETTINGS::m_ShowCourtyardCollisions, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_ShowModuleRatsnest, PANEL_EDIT_OPTIONS_BASE::m_showPageLimits, PCBNEW_SETTINGS::m_ShowPageLimits, PANEL_EDIT_OPTIONS_BASE::m_showSelectedRatsnest, PCBNEW_SETTINGS::m_TrackDragAction, PANEL_EDIT_OPTIONS_BASE::m_trackMouseDragCtrl, PCBNEW_SETTINGS::m_Use45DegreeLimit, MAGNETIC_SETTINGS::pads, UNIT_BINDER::SetAngleValue(), and MAGNETIC_SETTINGS::tracks.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 180 of file panel_edit_options.cpp.
References JSON_SETTINGS::Load(), loadFPSettings(), loadPCBSettings(), and m_isFootprintEditor.
|
override |
Definition at line 126 of file panel_edit_options.cpp.
References UNIT_BINDER::GetAngleValue(), SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), MAGNETIC_SETTINGS::graphics, PANEL_EDIT_OPTIONS_BASE::m_allowFreePads, PCBNEW_SETTINGS::m_AllowFreePads, FOOTPRINT_EDITOR_SETTINGS::m_ArcEditMode, PANEL_EDIT_OPTIONS_BASE::m_arcEditMode, PCBNEW_SETTINGS::m_ArcEditMode, PANEL_EDIT_OPTIONS_BASE::m_autoRefillZones, PCBNEW_SETTINGS::m_AutoRefillZones, PANEL_EDIT_OPTIONS_BASE::m_boardItemsFlip, PANEL_EDIT_OPTIONS_BASE::m_cbConstrainHV45Mode, PANEL_EDIT_OPTIONS_BASE::m_cbCourtyardCollisions, PCBNEW_SETTINGS::m_CtrlClickHighlight, PCBNEW_SETTINGS::m_Display, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayRatsnestLinesCurved, PANEL_EDIT_OPTIONS_BASE::m_escClearsNetHighlight, PCBNEW_SETTINGS::m_ESCClearsNetHighlight, PCBNEW_SETTINGS::m_FlipDirection, m_isFootprintEditor, PCBNEW_SETTINGS::m_LockingOptions, PANEL_EDIT_OPTIONS_BASE::m_magneticGraphics, PANEL_EDIT_OPTIONS_BASE::m_magneticGraphicsChoice, FOOTPRINT_EDITOR_SETTINGS::m_MagneticItems, PCBNEW_SETTINGS::m_MagneticItems, PANEL_EDIT_OPTIONS_BASE::m_magneticPadChoice, PANEL_EDIT_OPTIONS_BASE::m_magneticPads, PANEL_EDIT_OPTIONS_BASE::m_magneticTrackChoice, PANEL_EDIT_OPTIONS_BASE::m_OptDisplayCurvedRatsnestLines, PANEL_EDIT_OPTIONS_BASE::m_overrideLocks, PANEL_EDIT_OPTIONS_BASE::m_ratsnestThickness, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_RatsnestThickness, PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickAction, PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickActionMac, FOOTPRINT_EDITOR_SETTINGS::m_RotationAngle, m_rotationAngle, PCBNEW_SETTINGS::m_RotationAngle, PCBNEW_SETTINGS::LOCKING_OPTIONS::m_sessionSkipPrompts, PCBNEW_SETTINGS::m_ShowCourtyardCollisions, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_ShowModuleRatsnest, PANEL_EDIT_OPTIONS_BASE::m_showPageLimits, PCBNEW_SETTINGS::m_ShowPageLimits, PANEL_EDIT_OPTIONS_BASE::m_showSelectedRatsnest, PCBNEW_SETTINGS::m_TrackDragAction, PANEL_EDIT_OPTIONS_BASE::m_trackMouseDragCtrl, PCBNEW_SETTINGS::m_Use45DegreeLimit, FOOTPRINT_EDITOR_SETTINGS::m_Use45Limit, MAGNETIC_SETTINGS::pads, Pgm(), and MAGNETIC_SETTINGS::tracks.
|
override |
Definition at line 105 of file panel_edit_options.cpp.
References SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), loadFPSettings(), loadPCBSettings(), m_isFootprintEditor, and Pgm().
|
protectedinherited |
Definition at line 51 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 46 of file panel_edit_options_base.h.
Referenced by loadFPSettings(), loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 45 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 75 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 50 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 41 of file panel_edit_options_base.h.
Referenced by loadFPSettings(), loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 74 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 72 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
private |
Definition at line 53 of file panel_edit_options.h.
Referenced by PANEL_EDIT_OPTIONS(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 61 of file panel_edit_options_base.h.
Referenced by loadFPSettings(), PANEL_EDIT_OPTIONS(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 67 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 63 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 60 of file panel_edit_options_base.h.
Referenced by loadFPSettings(), PANEL_EDIT_OPTIONS(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 65 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 56 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS(), and PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS(), and PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 69 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 59 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS(), and PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 52 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 71 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 70 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 55 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 58 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
private |
Definition at line 55 of file panel_edit_options.h.
Referenced by loadFPSettings(), loadPCBSettings(), PANEL_EDIT_OPTIONS(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 43 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 42 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 44 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 73 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 68 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 47 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS(), and PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 54 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 57 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 62 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 64 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 66 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().
|
protectedinherited |
Definition at line 49 of file panel_edit_options_base.h.
Referenced by loadPCBSettings(), PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 48 of file panel_edit_options_base.h.
Referenced by PANEL_EDIT_OPTIONS_BASE::PANEL_EDIT_OPTIONS_BASE().