KiCad PCB EDA Suite
|
#include <panel_fp_editor_field_defaults.h>
Public Member Functions | |
PANEL_FP_EDITOR_FIELD_DEFAULTS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider) | |
~PANEL_FP_EDITOR_FIELD_DEFAULTS () override | |
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 Member Functions | |
virtual void | OnGridSize (wxSizeEvent &event) |
Protected Attributes | |
wxStaticText * | defaultFieldPropertiesLabel |
WX_GRID * | m_fieldPropsGrid |
wxStaticText * | defaultTextItemsLabel |
WX_GRID * | m_textItemsGrid |
STD_BITMAP_BUTTON * | m_bpAdd |
STD_BITMAP_BUTTON * | m_bpDelete |
Private Member Functions | |
virtual void | OnAddTextItem (wxCommandEvent &event) override |
virtual void | OnDeleteTextItem (wxCommandEvent &event) override |
bool | Show (bool aShow) override |
void | loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg) |
Private Attributes | |
UNITS_PROVIDER * | m_unitProvider |
BOARD_DESIGN_SETTINGS & | m_designSettings |
Definition at line 32 of file panel_fp_editor_field_defaults.h.
PANEL_FP_EDITOR_FIELD_DEFAULTS::PANEL_FP_EDITOR_FIELD_DEFAULTS | ( | wxWindow * | aParent, |
UNITS_PROVIDER * | aUnitsProvider | ||
) |
Definition at line 149 of file panel_fp_editor_field_defaults.cpp.
References PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid, and WX_GRID::SetTable().
|
override |
Definition at line 190 of file panel_fp_editor_field_defaults.cpp.
References PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid.
|
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 198 of file panel_fp_editor_field_defaults.cpp.
References BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems, FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, TEXT_ITEM_INFO::m_Layer, TEXT_ITEM_INFO::m_Text, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid, TEXT_ITEM_INFO::m_Visible, REFERENCE_FIELD, and VALUE_FIELD.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE.
Definition at line 293 of file panel_fp_editor_field_defaults.cpp.
References WX_GRID::CommitPendingChanges(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE.
Definition at line 313 of file panel_fp_editor_field_defaults.cpp.
References WX_GRID::CommitPendingChanges(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid.
|
inlineprotectedvirtualinherited |
Definition at line 50 of file panel_fp_editor_field_defaults_base.h.
Referenced by PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::~PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 348 of file panel_fp_editor_field_defaults.cpp.
References JSON_SETTINGS::Load(), and loadFPSettings().
|
overrideprivate |
Definition at line 240 of file panel_fp_editor_field_defaults.cpp.
References KiBitmapBundle(), PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_bpAdd, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_bpDelete, and STD_BITMAP_BUTTON::SetBitmap().
|
override |
Definition at line 257 of file panel_fp_editor_field_defaults.cpp.
References WX_GRID::CommitPendingChanges(), BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems, m_designSettings, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid, REFERENCE_FIELD, text, and VALUE_FIELD.
|
override |
Definition at line 230 of file panel_fp_editor_field_defaults.cpp.
References GetPgmSettings(), and loadFPSettings().
|
protectedinherited |
Definition at line 42 of file panel_fp_editor_field_defaults_base.h.
Referenced by PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 44 of file panel_fp_editor_field_defaults_base.h.
Referenced by PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 46 of file panel_fp_editor_field_defaults_base.h.
Referenced by PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE(), Show(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::~PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 47 of file panel_fp_editor_field_defaults_base.h.
Referenced by PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE(), Show(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::~PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE().
|
private |
Definition at line 53 of file panel_fp_editor_field_defaults.h.
Referenced by TransferDataFromWindow().
|
protectedinherited |
Definition at line 43 of file panel_fp_editor_field_defaults_base.h.
Referenced by loadFPSettings(), PANEL_FP_EDITOR_FIELD_DEFAULTS(), PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE(), TransferDataFromWindow(), ~PANEL_FP_EDITOR_FIELD_DEFAULTS(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::~PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 45 of file panel_fp_editor_field_defaults_base.h.
Referenced by loadFPSettings(), OnAddTextItem(), OnDeleteTextItem(), PANEL_FP_EDITOR_FIELD_DEFAULTS(), PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE(), TransferDataFromWindow(), ~PANEL_FP_EDITOR_FIELD_DEFAULTS(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::~PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE().
|
private |
Definition at line 52 of file panel_fp_editor_field_defaults.h.