KiCad PCB EDA Suite
|
#include <panel_sym_editing_options.h>
Public Member Functions | |
PANEL_SYM_EDITING_OPTIONS (wxWindow *aWindow, UNITS_PROVIDER *aUnitsProvider, wxWindow *aEventSource) | |
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_defaultsLabel |
wxStaticLine * | m_staticline1 |
wxStaticText * | m_lineWidthLabel |
wxTextCtrl * | m_lineWidthCtrl |
wxStaticText * | m_lineWidthUnits |
wxStaticText * | m_widthHelpText |
wxStaticText * | m_textSizeLabel |
wxTextCtrl * | m_textSizeCtrl |
wxStaticText * | m_textSizeUnits |
wxStaticText * | m_pinLengthLabel |
wxTextCtrl * | m_pinLengthCtrl |
wxStaticText * | m_pinLengthUnits |
wxStaticText * | m_pinNumSizeLabel |
wxTextCtrl * | m_pinNumSizeCtrl |
wxStaticText * | m_pinNumSizeUnits |
wxStaticText * | m_pinNameSizeLabel |
wxTextCtrl * | m_pinNameSizeCtrl |
wxStaticText * | m_pinNameSizeUnits |
wxStaticText * | m_repeatLabel |
wxStaticLine * | m_staticline2 |
wxStaticText * | m_pinPitchLabel |
wxTextCtrl * | m_pinPitchCtrl |
wxStaticText * | m_pinPitchUnits |
wxStaticText * | m_labelIncrementLabel1 |
wxSpinCtrl * | m_spinRepeatLabel |
wxStaticText * | m_generalOption1 |
wxStaticLine * | m_staticline4 |
wxCheckBox * | m_dragPinsWithEdges |
Private Member Functions | |
void | loadSymEditorSettings (SYMBOL_EDITOR_SETTINGS *aCfg) |
void | onKillFocusPinPitch (wxFocusEvent &aEvent) override |
Private Attributes | |
UNIT_BINDER | m_lineWidth |
UNIT_BINDER | m_textSize |
UNIT_BINDER | m_pinLength |
UNIT_BINDER | m_pinNameSize |
UNIT_BINDER | m_pinNumberSize |
UNIT_BINDER | m_pinPitch |
Definition at line 29 of file panel_sym_editing_options.h.
PANEL_SYM_EDITING_OPTIONS::PANEL_SYM_EDITING_OPTIONS | ( | wxWindow * | aWindow, |
UNITS_PROVIDER * | aUnitsProvider, | ||
wxWindow * | aEventSource | ||
) |
Definition at line 34 of file panel_sym_editing_options.cpp.
References KIUI::GetInfoFont(), and PANEL_SYM_EDITING_OPTIONS_BASE::m_widthHelpText.
|
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 49 of file panel_sym_editing_options.cpp.
References SYMBOL_EDITOR_SETTINGS::REPEAT::label_delta, SYMBOL_EDITOR_SETTINGS::DEFAULTS::line_width, SYMBOL_EDITOR_SETTINGS::m_Defaults, SYMBOL_EDITOR_SETTINGS::m_dragPinsAlongWithEdges, PANEL_SYM_EDITING_OPTIONS_BASE::m_dragPinsWithEdges, m_lineWidth, m_pinLength, m_pinNameSize, m_pinNumberSize, m_pinPitch, SYMBOL_EDITOR_SETTINGS::m_Repeat, PANEL_SYM_EDITING_OPTIONS_BASE::m_spinRepeatLabel, m_textSize, EDA_IU_SCALE::MilsToIU(), SYMBOL_EDITOR_SETTINGS::DEFAULTS::pin_length, SYMBOL_EDITOR_SETTINGS::DEFAULTS::pin_name_size, SYMBOL_EDITOR_SETTINGS::DEFAULTS::pin_num_size, SYMBOL_EDITOR_SETTINGS::REPEAT::pin_step, schIUScale, UNIT_BINDER::SetValue(), and SYMBOL_EDITOR_SETTINGS::DEFAULTS::text_size.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_EDITING_OPTIONS_BASE.
Definition at line 94 of file panel_sym_editing_options.cpp.
References UNIT_BINDER::GetIntValue(), EDA_IU_SCALE::IUToMils(), KiROUND(), m_pinPitch, EDA_IU_SCALE::MilsToIU(), MIN_GRID, schIUScale, and UNIT_BINDER::SetValue().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 107 of file panel_sym_editing_options.cpp.
References JSON_SETTINGS::Load(), and loadSymEditorSettings().
|
override |
Definition at line 73 of file panel_sym_editing_options.cpp.
References SETTINGS_MANAGER::GetAppSettings(), UNIT_BINDER::GetIntValue(), PGM_BASE::GetSettingsManager(), EDA_IU_SCALE::IUToMils(), KiROUND(), SYMBOL_EDITOR_SETTINGS::REPEAT::label_delta, SYMBOL_EDITOR_SETTINGS::DEFAULTS::line_width, SYMBOL_EDITOR_SETTINGS::m_Defaults, SYMBOL_EDITOR_SETTINGS::m_dragPinsAlongWithEdges, PANEL_SYM_EDITING_OPTIONS_BASE::m_dragPinsWithEdges, m_lineWidth, m_pinLength, m_pinNameSize, m_pinNumberSize, m_pinPitch, SYMBOL_EDITOR_SETTINGS::m_Repeat, PANEL_SYM_EDITING_OPTIONS_BASE::m_spinRepeatLabel, m_textSize, MIN_GRID, Pgm(), SYMBOL_EDITOR_SETTINGS::DEFAULTS::pin_length, SYMBOL_EDITOR_SETTINGS::DEFAULTS::pin_name_size, SYMBOL_EDITOR_SETTINGS::DEFAULTS::pin_num_size, SYMBOL_EDITOR_SETTINGS::REPEAT::pin_step, schIUScale, and SYMBOL_EDITOR_SETTINGS::DEFAULTS::text_size.
|
override |
Definition at line 62 of file panel_sym_editing_options.cpp.
References SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), loadSymEditorSettings(), and Pgm().
|
protectedinherited |
Definition at line 38 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 65 of file panel_sym_editing_options_base.h.
Referenced by loadSymEditorSettings(), PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 63 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 61 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
private |
Definition at line 46 of file panel_sym_editing_options.h.
Referenced by loadSymEditorSettings(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 41 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 40 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 42 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
private |
Definition at line 49 of file panel_sym_editing_options.h.
Referenced by loadSymEditorSettings(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 48 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 47 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 49 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
private |
Definition at line 50 of file panel_sym_editing_options.h.
Referenced by loadSymEditorSettings(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 54 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 55 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
private |
Definition at line 51 of file panel_sym_editing_options.h.
Referenced by loadSymEditorSettings(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 51 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 50 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 52 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
private |
Definition at line 53 of file panel_sym_editing_options.h.
Referenced by loadSymEditorSettings(), onKillFocusPinPitch(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 59 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE(), and PANEL_SYM_EDITING_OPTIONS_BASE::~PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 58 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 60 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 56 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 62 of file panel_sym_editing_options_base.h.
Referenced by loadSymEditorSettings(), PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 39 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 57 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 64 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
private |
Definition at line 47 of file panel_sym_editing_options.h.
Referenced by loadSymEditorSettings(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 45 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 44 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 46 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().
|
protectedinherited |
Definition at line 43 of file panel_sym_editing_options_base.h.
Referenced by PANEL_SYM_EDITING_OPTIONS(), and PANEL_SYM_EDITING_OPTIONS_BASE::PANEL_SYM_EDITING_OPTIONS_BASE().