KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_EDIT_OPTIONS Class Reference

#include <panel_edit_options.h>

Inheritance diagram for PANEL_EDIT_OPTIONS:
PANEL_EDIT_OPTIONS_BASE RESETTABLE_PANEL

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 }.
 

Protected Attributes

wxCheckBox * m_cbConstrainHV45Mode
 
wxStaticText * m_rotationAngleLabel
 
wxTextCtrl * m_rotationAngleCtrl
 
wxStaticText * m_rotationAngleUnits
 
wxStaticText * m_arcEditModeLabel
 
wxChoice * m_arcEditMode
 
wxBoxSizer * m_sizerBoardEdit
 
wxStaticText * m_trackMouseDragLabel
 
wxChoice * m_trackMouseDragCtrl
 
wxRadioBox * m_boardItemsFlip
 
wxCheckBox * m_allowFreePads
 
wxCheckBox * m_overrideLocks
 
wxStaticBoxSizer * m_mouseCmdsWinLin
 
wxStaticText * m_staticText181
 
wxRadioBox * m_rbCtrlClickAction
 
wxStaticBoxSizer * m_mouseCmdsOSX
 
wxStaticText * m_staticText1811
 
wxRadioBox * m_rbCtrlClickActionMac
 
wxSimplebook * m_optionsBook
 
wxCheckBox * m_magneticPads
 
wxCheckBox * m_magneticGraphics
 
wxStaticText * m_staticText2
 
wxChoice * m_magneticPadChoice
 
wxStaticText * m_staticText21
 
wxChoice * m_magneticTrackChoice
 
wxStaticText * m_staticText211
 
wxChoice * m_magneticGraphicsChoice
 
wxCheckBox * m_showSelectedRatsnest
 
wxCheckBox * m_OptDisplayCurvedRatsnestLines
 
wxStaticText * m_ratsnestThicknessLabel
 
wxSpinCtrlDouble * m_ratsnestThickness
 
wxCheckBox * m_escClearsNetHighlight
 
wxCheckBox * m_showPageLimits
 
wxCheckBox * m_cbCourtyardCollisions
 
wxCheckBox * m_autoRefillZones
 

Private Member Functions

void loadFPSettings (FOOTPRINT_EDITOR_SETTINGS *aCfg)
 
void loadPCBSettings (PCBNEW_SETTINGS *aCfg)
 

Private Attributes

bool m_isFootprintEditor
 
UNIT_BINDER m_rotationAngle
 

Detailed Description

Definition at line 37 of file panel_edit_options.h.

Constructor & Destructor Documentation

◆ PANEL_EDIT_OPTIONS()

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
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().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ loadFPSettings()

◆ loadPCBSettings()

void PANEL_EDIT_OPTIONS::loadPCBSettings ( PCBNEW_SETTINGS aCfg)
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().

◆ ResetPanel()

void PANEL_EDIT_OPTIONS::ResetPanel ( )
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.

◆ TransferDataFromWindow()

bool PANEL_EDIT_OPTIONS::TransferDataFromWindow ( )
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.

◆ TransferDataToWindow()

bool PANEL_EDIT_OPTIONS::TransferDataToWindow ( )
override

Member Data Documentation

◆ m_allowFreePads

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_allowFreePads
protectedinherited

◆ m_arcEditMode

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_arcEditMode
protectedinherited

◆ m_arcEditModeLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_arcEditModeLabel
protectedinherited

◆ m_autoRefillZones

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_autoRefillZones
protectedinherited

◆ m_boardItemsFlip

wxRadioBox* PANEL_EDIT_OPTIONS_BASE::m_boardItemsFlip
protectedinherited

◆ m_cbConstrainHV45Mode

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_cbConstrainHV45Mode
protectedinherited

◆ m_cbCourtyardCollisions

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_cbCourtyardCollisions
protectedinherited

◆ m_escClearsNetHighlight

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_escClearsNetHighlight
protectedinherited

◆ m_isFootprintEditor

bool PANEL_EDIT_OPTIONS::m_isFootprintEditor
private

◆ m_magneticGraphics

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_magneticGraphics
protectedinherited

◆ m_magneticGraphicsChoice

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_magneticGraphicsChoice
protectedinherited

◆ m_magneticPadChoice

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_magneticPadChoice
protectedinherited

◆ m_magneticPads

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_magneticPads
protectedinherited

◆ m_magneticTrackChoice

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_magneticTrackChoice
protectedinherited

◆ m_mouseCmdsOSX

wxStaticBoxSizer* PANEL_EDIT_OPTIONS_BASE::m_mouseCmdsOSX
protectedinherited

◆ m_mouseCmdsWinLin

wxStaticBoxSizer* PANEL_EDIT_OPTIONS_BASE::m_mouseCmdsWinLin
protectedinherited

◆ m_OptDisplayCurvedRatsnestLines

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_OptDisplayCurvedRatsnestLines
protectedinherited

◆ m_optionsBook

wxSimplebook* PANEL_EDIT_OPTIONS_BASE::m_optionsBook
protectedinherited

◆ m_overrideLocks

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_overrideLocks
protectedinherited

◆ m_ratsnestThickness

wxSpinCtrlDouble* PANEL_EDIT_OPTIONS_BASE::m_ratsnestThickness
protectedinherited

◆ m_ratsnestThicknessLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_ratsnestThicknessLabel
protectedinherited

◆ m_rbCtrlClickAction

wxRadioBox* PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickAction
protectedinherited

◆ m_rbCtrlClickActionMac

wxRadioBox* PANEL_EDIT_OPTIONS_BASE::m_rbCtrlClickActionMac
protectedinherited

◆ m_rotationAngle

UNIT_BINDER PANEL_EDIT_OPTIONS::m_rotationAngle
private

◆ m_rotationAngleCtrl

wxTextCtrl* PANEL_EDIT_OPTIONS_BASE::m_rotationAngleCtrl
protectedinherited

◆ m_rotationAngleLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_rotationAngleLabel
protectedinherited

◆ m_rotationAngleUnits

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_rotationAngleUnits
protectedinherited

◆ m_showPageLimits

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_showPageLimits
protectedinherited

◆ m_showSelectedRatsnest

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_showSelectedRatsnest
protectedinherited

◆ m_sizerBoardEdit

wxBoxSizer* PANEL_EDIT_OPTIONS_BASE::m_sizerBoardEdit
protectedinherited

◆ m_staticText181

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText181
protectedinherited

◆ m_staticText1811

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText1811
protectedinherited

◆ m_staticText2

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText2
protectedinherited

◆ m_staticText21

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText21
protectedinherited

◆ m_staticText211

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText211
protectedinherited

◆ m_trackMouseDragCtrl

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_trackMouseDragCtrl
protectedinherited

◆ m_trackMouseDragLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_trackMouseDragLabel
protectedinherited

The documentation for this class was generated from the following files: