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 |
wxStaticText * | defaultValuesLabel |
WX_GRID * | m_layerNameitemsGrid |
STD_BITMAP_BUTTON * | m_bpAddLayer |
STD_BITMAP_BUTTON * | m_bpDeleteLayer |
Private Member Functions | |
virtual void | OnAddTextItem (wxCommandEvent &event) override |
virtual void | OnDeleteTextItem (wxCommandEvent &event) override |
virtual void | OnAddLayerItem (wxCommandEvent &event) override |
virtual void | OnDeleteLayerItem (wxCommandEvent &event) override |
virtual void | onLayerChange (wxGridEvent &event) override |
bool | Show (bool aShow) override |
void | loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg) |
bool | isLayerAvailable (int aLayerId) const |
int | getNextAvailableLayer () const |
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 253 of file panel_fp_editor_field_defaults.cpp.
References LSET::AllCuMask(), LSET::AllTechMask(), Edge_Cuts, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid, Margin, and WX_GRID::SetTable().
|
override |
Definition at line 307 of file panel_fp_editor_field_defaults.cpp.
References PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid, 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().
|
private |
Definition at line 454 of file panel_fp_editor_field_defaults.cpp.
References PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid, User_1, and User_45.
Referenced by onLayerChange().
|
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 442 of file panel_fp_editor_field_defaults.cpp.
References PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid.
|
private |
Definition at line 316 of file panel_fp_editor_field_defaults.cpp.
References IsUserLayer(), BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems, FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, TEXT_ITEM_INFO::m_Layer, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid, TEXT_ITEM_INFO::m_Text, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid, BOARD_DESIGN_SETTINGS::m_UserLayerNames, TEXT_ITEM_INFO::m_Visible, LSET::NameToLayer(), REFERENCE_FIELD, and VALUE_FIELD.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE.
Definition at line 524 of file panel_fp_editor_field_defaults.cpp.
References WX_GRID::CommitPendingChanges(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE.
Definition at line 504 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 577 of file panel_fp_editor_field_defaults.cpp.
References WX_GRID::CommitPendingChanges(), and PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE.
Definition at line 542 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 54 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().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE.
Definition at line 471 of file panel_fp_editor_field_defaults.cpp.
References _, PAGED_DIALOG::GetDialog(), getNextAvailableLayer(), PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid, and PAGED_DIALOG::SetError().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 612 of file panel_fp_editor_field_defaults.cpp.
References JSON_SETTINGS::Load(), and loadFPSettings().
|
overrideprivate |
Definition at line 374 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_bpAddLayer, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_bpDelete, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_bpDeleteLayer, and STD_BITMAP_BUTTON::SetBitmap().
|
override |
Definition at line 393 of file panel_fp_editor_field_defaults.cpp.
References WX_GRID::CommitPendingChanges(), IsUserLayer(), BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems, m_designSettings, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_layerNameitemsGrid, PANEL_FP_EDITOR_FIELD_DEFAULTS_BASE::m_textItemsGrid, BOARD_DESIGN_SETTINGS::m_UserLayerNames, name, LSET::Name(), REFERENCE_FIELD, text, and VALUE_FIELD.
|
override |
Definition at line 364 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 48 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 50 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().
|
protectedinherited |
Definition at line 51 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 60 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 49 of file panel_fp_editor_field_defaults_base.h.
Referenced by getNextAvailableLayer(), isLayerAvailable(), loadFPSettings(), OnAddLayerItem(), OnDeleteLayerItem(), onLayerChange(), 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 59 of file panel_fp_editor_field_defaults.h.