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

wxStaticText * m_staticText31
 
wxStaticLine * m_staticline3
 
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
 
wxStaticText * m_staticText33
 
wxRadioButton * m_rbFlipLeftRight
 
wxRadioButton * m_rbFlipTopBottom
 
wxCheckBox * m_allowFreePads
 
wxStaticText * m_staticText32
 
wxStaticLine * m_staticline4
 
wxBoxSizer * m_mouseCmdsWinLin
 
wxStaticText * m_stHint1
 
wxRadioButton * m_rbToggleSel
 
wxRadioButton * m_rbHighlightNet
 
wxBoxSizer * m_mouseCmdsOSX
 
wxStaticText * m_stHint2
 
wxRadioButton * m_rbToggleSelMac
 
wxRadioButton * m_rbHighlightNetMac
 
wxSimplebook * m_optionsBook
 
wxStaticText * m_staticText34
 
wxStaticLine * m_staticline5
 
wxCheckBox * m_magneticPads
 
wxCheckBox * m_magneticGraphics
 
wxStaticLine * m_staticline6
 
wxStaticText * m_staticText2
 
wxChoice * m_magneticPadChoice
 
wxStaticText * m_staticText21
 
wxChoice * m_magneticTrackChoice
 
wxStaticText * m_staticText211
 
wxChoice * m_magneticGraphicsChoice
 
wxStaticLine * m_staticline7
 
wxCheckBox * m_showSelectedRatsnest
 
wxCheckBox * m_OptDisplayCurvedRatsnestLines
 
wxStaticText * m_ratsnestThicknessLabel
 
wxSpinCtrlDouble * m_ratsnestThickness
 
wxStaticLine * m_staticline8
 
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
 
wxStaticText * stMagneticPtsLabel1
 
wxStaticText * stRatsnestLabel
 
wxStaticText * stMiscellaneousLabel
 

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 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 GetHelpTextAtPoint().

◆ loadFPSettings()

◆ loadPCBSettings()

void PANEL_EDIT_OPTIONS::loadPCBSettings ( PCBNEW_SETTINGS * aCfg)
private

Definition at line 103 of file panel_edit_options.cpp.

References arcEditModeToComboIndex(), DIRECT, MAGNETIC_SETTINGS::graphics, LEFT_RIGHT, PCBNEW_SETTINGS::m_AllowFreePads, PANEL_EDIT_OPTIONS_BASE::m_allowFreePads, PCBNEW_SETTINGS::m_AngleSnapMode, PCBNEW_SETTINGS::m_ArcEditMode, PANEL_EDIT_OPTIONS_BASE::m_arcEditMode, PCBNEW_SETTINGS::m_AutoRefillZones, PANEL_EDIT_OPTIONS_BASE::m_autoRefillZones, 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, PCBNEW_SETTINGS::m_ESCClearsNetHighlight, PANEL_EDIT_OPTIONS_BASE::m_escClearsNetHighlight, PCBNEW_SETTINGS::m_FlipDirection, 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, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_RatsnestThickness, PANEL_EDIT_OPTIONS_BASE::m_ratsnestThickness, PANEL_EDIT_OPTIONS_BASE::m_rbFlipLeftRight, PANEL_EDIT_OPTIONS_BASE::m_rbFlipTopBottom, PANEL_EDIT_OPTIONS_BASE::m_rbHighlightNet, PANEL_EDIT_OPTIONS_BASE::m_rbHighlightNetMac, PANEL_EDIT_OPTIONS_BASE::m_rbToggleSel, PANEL_EDIT_OPTIONS_BASE::m_rbToggleSelMac, PCBNEW_SETTINGS::m_RotationAngle, m_rotationAngle, PCBNEW_SETTINGS::m_ShowCourtyardCollisions, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_ShowModuleRatsnest, PCBNEW_SETTINGS::m_ShowPageLimits, PANEL_EDIT_OPTIONS_BASE::m_showPageLimits, PANEL_EDIT_OPTIONS_BASE::m_showSelectedRatsnest, PCBNEW_SETTINGS::m_TrackDragAction, PANEL_EDIT_OPTIONS_BASE::m_trackMouseDragCtrl, MAGNETIC_SETTINGS::pads, 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 223 of file panel_edit_options.cpp.

References JSON_SETTINGS::Load(), loadFPSettings(), loadPCBSettings(), and m_isFootprintEditor.

◆ TransferDataFromWindow()

◆ 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

Definition at line 49 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_autoRefillZones

wxCheckBox* PANEL_EDIT_OPTIONS_BASE::m_autoRefillZones
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

wxBoxSizer* PANEL_EDIT_OPTIONS_BASE::m_mouseCmdsOSX
protectedinherited

◆ m_mouseCmdsWinLin

wxBoxSizer* 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_ratsnestThickness

wxSpinCtrlDouble* PANEL_EDIT_OPTIONS_BASE::m_ratsnestThickness
protectedinherited

◆ m_ratsnestThicknessLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_ratsnestThicknessLabel
protectedinherited

Definition at line 83 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_rbFlipLeftRight

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbFlipLeftRight
protectedinherited

◆ m_rbFlipTopBottom

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbFlipTopBottom
protectedinherited

◆ m_rbHighlightNet

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbHighlightNet
protectedinherited

◆ m_rbHighlightNetMac

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbHighlightNetMac
protectedinherited

◆ m_rbToggleSel

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbToggleSel
protectedinherited

◆ m_rbToggleSelMac

wxRadioButton* PANEL_EDIT_OPTIONS_BASE::m_rbToggleSelMac
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_staticline3

wxStaticLine* PANEL_EDIT_OPTIONS_BASE::m_staticline3
protectedinherited

Definition at line 44 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticline4

wxStaticLine* PANEL_EDIT_OPTIONS_BASE::m_staticline4
protectedinherited

Definition at line 59 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticline5

wxStaticLine* PANEL_EDIT_OPTIONS_BASE::m_staticline5
protectedinherited

Definition at line 70 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticline6

wxStaticLine* PANEL_EDIT_OPTIONS_BASE::m_staticline6
protectedinherited

Definition at line 73 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticline7

wxStaticLine* PANEL_EDIT_OPTIONS_BASE::m_staticline7
protectedinherited

Definition at line 80 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticline8

wxStaticLine* PANEL_EDIT_OPTIONS_BASE::m_staticline8
protectedinherited

Definition at line 85 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText2

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText2
protectedinherited

Definition at line 74 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText21

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText21
protectedinherited

Definition at line 76 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText211

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText211
protectedinherited

Definition at line 78 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText31

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText31
protectedinherited

Definition at line 43 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText32

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText32
protectedinherited

Definition at line 58 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText33

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText33
protectedinherited

Definition at line 54 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_staticText34

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_staticText34
protectedinherited

Definition at line 69 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ m_stHint1

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_stHint1
protectedinherited

◆ m_stHint2

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_stHint2
protectedinherited

◆ m_trackMouseDragCtrl

wxChoice* PANEL_EDIT_OPTIONS_BASE::m_trackMouseDragCtrl
protectedinherited

◆ m_trackMouseDragLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::m_trackMouseDragLabel
protectedinherited

Definition at line 52 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ stMagneticPtsLabel1

wxStaticText* PANEL_EDIT_OPTIONS_BASE::stMagneticPtsLabel1
privateinherited

Definition at line 38 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ stMiscellaneousLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::stMiscellaneousLabel
privateinherited

Definition at line 40 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().

◆ stRatsnestLabel

wxStaticText* PANEL_EDIT_OPTIONS_BASE::stRatsnestLabel
privateinherited

Definition at line 39 of file panel_edit_options_base.h.

Referenced by PANEL_EDIT_OPTIONS_BASE().


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