|
KiCad PCB EDA Suite
|
#include <panel_fp_user_layer_names.h>
Public Member Functions | |
| PANEL_FP_USER_LAYER_NAMES (wxWindow *aParent) | |
| ~PANEL_FP_USER_LAYER_NAMES () override | |
| bool | Show (bool aShow) 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 Attributes | |
| wxStaticText * | m_lblUserLayers |
| wxChoice * | m_choiceUserLayers |
| wxStaticText * | m_layerNamesLabel |
| WX_GRID * | m_layerNamesGrid |
| STD_BITMAP_BUTTON * | m_bpAdd |
| STD_BITMAP_BUTTON * | m_bpDelete |
Private Member Functions | |
| void | onUserLayerCountChange (wxCommandEvent &event) override |
| void | OnAddLayerItem (wxCommandEvent &event) override |
| void | OnDeleteLayerItem (wxCommandEvent &event) override |
| void | onLayerChange (wxGridEvent &event) override |
| void | loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg) |
| int | getNextAvailableLayer () const |
Private Attributes | |
| BOARD_DESIGN_SETTINGS & | m_designSettings |
Definition at line 29 of file panel_fp_user_layer_names.h.
| PANEL_FP_USER_LAYER_NAMES::PANEL_FP_USER_LAYER_NAMES | ( | wxWindow * | aParent | ) |
Definition at line 149 of file panel_fp_user_layer_names.cpp.
References LSET::AllCuMask(), LSET::AllTechMask(), Edge_Cuts, GetPgmSettings(), KiBitmapBundle(), PANEL_FP_USER_LAYER_NAMES_BASE::m_bpAdd, PANEL_FP_USER_LAYER_NAMES_BASE::m_bpDelete, m_designSettings, PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid, Margin, PANEL_FP_USER_LAYER_NAMES_BASE::PANEL_FP_USER_LAYER_NAMES_BASE(), BASE_SET::set(), small_plus, and small_trash.
|
override |
Definition at line 175 of file panel_fp_user_layer_names.cpp.
References PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid.
|
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().
|
private |
Definition at line 300 of file panel_fp_user_layer_names.cpp.
References PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid, 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 GetHelpTextAtPoint().
|
private |
Definition at line 181 of file panel_fp_user_layer_names.cpp.
References BOARD_DESIGN_SETTINGS::GetUserDefinedLayerCount(), IsUserLayer(), PANEL_FP_USER_LAYER_NAMES_BASE::m_choiceUserLayers, FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings, PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid, BOARD_DESIGN_SETTINGS::m_UserLayerNames, LSET::NameToLayer(), and table.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_USER_LAYER_NAMES_BASE.
Definition at line 317 of file panel_fp_user_layer_names.cpp.
References PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_USER_LAYER_NAMES_BASE.
Definition at line 328 of file panel_fp_user_layer_names.cpp.
References PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_USER_LAYER_NAMES_BASE.
Definition at line 268 of file panel_fp_user_layer_names.cpp.
References _, PAGED_DIALOG::GetDialog(), getNextAvailableLayer(), PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid, PAGED_DIALOG::SetError(), and table.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_USER_LAYER_NAMES_BASE.
Definition at line 262 of file panel_fp_user_layer_names.cpp.
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 338 of file panel_fp_user_layer_names.cpp.
References JSON_SETTINGS::Load(), and loadFPSettings().
|
override |
Definition at line 221 of file panel_fp_user_layer_names.cpp.
References KiBitmapBundle(), PANEL_FP_USER_LAYER_NAMES_BASE::m_bpAdd, PANEL_FP_USER_LAYER_NAMES_BASE::m_bpDelete, small_plus, and small_trash.
|
override |
Definition at line 235 of file panel_fp_user_layer_names.cpp.
References IsUserLayer(), PANEL_FP_USER_LAYER_NAMES_BASE::m_choiceUserLayers, m_designSettings, PANEL_FP_USER_LAYER_NAMES_BASE::m_layerNamesGrid, BOARD_DESIGN_SETTINGS::m_UserLayerNames, LSET::Name(), name, BOARD_DESIGN_SETTINGS::SetUserDefinedLayerCount(), and table.
|
override |
Definition at line 211 of file panel_fp_user_layer_names.cpp.
References GetPgmSettings(), and loadFPSettings().
|
protectedinherited |
Definition at line 47 of file panel_fp_user_layer_names_base.h.
Referenced by PANEL_FP_USER_LAYER_NAMES::PANEL_FP_USER_LAYER_NAMES(), PANEL_FP_USER_LAYER_NAMES_BASE(), PANEL_FP_USER_LAYER_NAMES::Show(), and ~PANEL_FP_USER_LAYER_NAMES_BASE().
|
protectedinherited |
Definition at line 48 of file panel_fp_user_layer_names_base.h.
Referenced by PANEL_FP_USER_LAYER_NAMES::PANEL_FP_USER_LAYER_NAMES(), PANEL_FP_USER_LAYER_NAMES_BASE(), PANEL_FP_USER_LAYER_NAMES::Show(), and ~PANEL_FP_USER_LAYER_NAMES_BASE().
|
protectedinherited |
Definition at line 44 of file panel_fp_user_layer_names_base.h.
Referenced by PANEL_FP_USER_LAYER_NAMES::loadFPSettings(), PANEL_FP_USER_LAYER_NAMES_BASE(), PANEL_FP_USER_LAYER_NAMES::TransferDataFromWindow(), and ~PANEL_FP_USER_LAYER_NAMES_BASE().
|
private |
Definition at line 53 of file panel_fp_user_layer_names.h.
Referenced by PANEL_FP_USER_LAYER_NAMES(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 46 of file panel_fp_user_layer_names_base.h.
Referenced by PANEL_FP_USER_LAYER_NAMES::getNextAvailableLayer(), PANEL_FP_USER_LAYER_NAMES::loadFPSettings(), PANEL_FP_USER_LAYER_NAMES::OnAddLayerItem(), PANEL_FP_USER_LAYER_NAMES::OnDeleteLayerItem(), PANEL_FP_USER_LAYER_NAMES::onLayerChange(), PANEL_FP_USER_LAYER_NAMES::PANEL_FP_USER_LAYER_NAMES(), PANEL_FP_USER_LAYER_NAMES_BASE(), PANEL_FP_USER_LAYER_NAMES::TransferDataFromWindow(), PANEL_FP_USER_LAYER_NAMES::~PANEL_FP_USER_LAYER_NAMES(), and ~PANEL_FP_USER_LAYER_NAMES_BASE().
|
protectedinherited |
Definition at line 45 of file panel_fp_user_layer_names_base.h.
Referenced by PANEL_FP_USER_LAYER_NAMES_BASE().
|
protectedinherited |
Definition at line 43 of file panel_fp_user_layer_names_base.h.
Referenced by PANEL_FP_USER_LAYER_NAMES_BASE().