KiCad PCB EDA Suite
|
#include <panel_fp_editor_defaults.h>
Public Member Functions | |
PANEL_FP_EDITOR_DEFAULTS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider) | |
~PANEL_FP_EDITOR_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 |
WX_GRID * | m_graphicsGrid |
Private Member Functions | |
virtual void | OnAddTextItem (wxCommandEvent &event) override |
virtual void | OnDeleteTextItem (wxCommandEvent &event) override |
bool | Show (bool aShow) override |
void | loadFPSettings (FOOTPRINT_EDITOR_SETTINGS *aCfg) |
Private Attributes | |
bool | m_firstShow = true |
UNITS_PROVIDER * | m_unitProvider |
Definition at line 29 of file panel_fp_editor_defaults.h.
PANEL_FP_EDITOR_DEFAULTS::PANEL_FP_EDITOR_DEFAULTS | ( | wxWindow * | aParent, |
UNITS_PROVIDER * | aUnitsProvider | ||
) |
Definition at line 175 of file panel_fp_editor_defaults.cpp.
References COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_THICKNESS, COL_TEXT_WIDTH, PANEL_FP_EDITOR_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_DEFAULTS_BASE::m_graphicsGrid, PANEL_FP_EDITOR_DEFAULTS_BASE::m_textItemsGrid, m_unitProvider, WX_GRID::SetAutoEvalCols(), WX_GRID::SetTable(), and WX_GRID::SetUnitsProvider().
|
override |
Definition at line 231 of file panel_fp_editor_defaults.cpp.
References PANEL_FP_EDITOR_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_DEFAULTS_BASE::m_graphicsGrid, and PANEL_FP_EDITOR_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 240 of file panel_fp_editor_defaults.cpp.
References COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_ITALIC, COL_TEXT_THICKNESS, COL_TEXT_WIDTH, WX_GRID::GetVisibleWidth(), BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems, FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings, PANEL_FP_EDITOR_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_DEFAULTS_BASE::m_graphicsGrid, TEXT_ITEM_INFO::m_Layer, BOARD_DESIGN_SETTINGS::m_LineThickness, TEXT_ITEM_INFO::m_Text, BOARD_DESIGN_SETTINGS::m_TextItalic, PANEL_FP_EDITOR_DEFAULTS_BASE::m_textItemsGrid, BOARD_DESIGN_SETTINGS::m_TextSize, BOARD_DESIGN_SETTINGS::m_TextThickness, TEXT_ITEM_INFO::m_Visible, REFERENCE_FIELD, ROW_COUNT, ROW_COURTYARD, ROW_EDGES, WX_GRID::SetUnitValue(), VALUE_FIELD, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_DEFAULTS_BASE.
Definition at line 483 of file panel_fp_editor_defaults.cpp.
References WX_GRID::CommitPendingChanges(), PANEL_FP_EDITOR_DEFAULTS_BASE::m_graphicsGrid, and PANEL_FP_EDITOR_DEFAULTS_BASE::m_textItemsGrid.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_EDITOR_DEFAULTS_BASE.
Definition at line 503 of file panel_fp_editor_defaults.cpp.
References WX_GRID::CommitPendingChanges(), PANEL_FP_EDITOR_DEFAULTS_BASE::m_graphicsGrid, and PANEL_FP_EDITOR_DEFAULTS_BASE::m_textItemsGrid.
|
inlineprotectedvirtualinherited |
Definition at line 52 of file panel_fp_editor_defaults_base.h.
Referenced by PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE(), and PANEL_FP_EDITOR_DEFAULTS_BASE::~PANEL_FP_EDITOR_DEFAULTS_BASE().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 534 of file panel_fp_editor_defaults.cpp.
References JSON_SETTINGS::Load(), and loadFPSettings().
|
overrideprivate |
Definition at line 329 of file panel_fp_editor_defaults.cpp.
References KiBitmapBundle(), PANEL_FP_EDITOR_DEFAULTS_BASE::m_bpAdd, PANEL_FP_EDITOR_DEFAULTS_BASE::m_bpDelete, m_firstShow, PANEL_FP_EDITOR_DEFAULTS_BASE::m_graphicsGrid, and STD_BITMAP_BUTTON::SetBitmap().
|
override |
Definition at line 352 of file panel_fp_editor_defaults.cpp.
References _, COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_ITALIC, COL_TEXT_THICKNESS, COL_TEXT_WIDTH, WX_GRID::CommitPendingChanges(), SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), WX_GRID::GetUnitValue(), KIDIALOG::KD_ERROR, BOARD_DESIGN_SETTINGS::m_DefaultFPTextItems, PANEL_FP_EDITOR_DEFAULTS_BASE::m_fieldPropsGrid, PANEL_FP_EDITOR_DEFAULTS_BASE::m_graphicsGrid, BOARD_DESIGN_SETTINGS::m_LineThickness, BOARD_DESIGN_SETTINGS::m_TextItalic, PANEL_FP_EDITOR_DEFAULTS_BASE::m_textItemsGrid, BOARD_DESIGN_SETTINGS::m_TextSize, BOARD_DESIGN_SETTINGS::m_TextThickness, m_unitProvider, MAXIMUM_LINE_WIDTH_MM, MINIMUM_LINE_WIDTH_MM, minSize, EDA_IU_SCALE::mmToIU(), pcbIUScale, Pgm(), REFERENCE_FIELD, ROW_COUNT, ROW_COURTYARD, ROW_EDGES, WX_GRID::SetUnitValue(), KIDIALOG::ShowModal(), UNITS_PROVIDER::StringFromValue(), text, TEXT_MAX_SIZE_MM, TEXT_MIN_SIZE_MM, and VALUE_FIELD.
|
override |
Definition at line 318 of file panel_fp_editor_defaults.cpp.
References SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), loadFPSettings(), and Pgm().
|
protectedinherited |
Definition at line 43 of file panel_fp_editor_defaults_base.h.
Referenced by PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 45 of file panel_fp_editor_defaults_base.h.
Referenced by PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 47 of file panel_fp_editor_defaults_base.h.
Referenced by PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE(), Show(), and PANEL_FP_EDITOR_DEFAULTS_BASE::~PANEL_FP_EDITOR_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 48 of file panel_fp_editor_defaults_base.h.
Referenced by PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE(), Show(), and PANEL_FP_EDITOR_DEFAULTS_BASE::~PANEL_FP_EDITOR_DEFAULTS_BASE().
|
protectedinherited |
Definition at line 44 of file panel_fp_editor_defaults_base.h.
Referenced by loadFPSettings(), PANEL_FP_EDITOR_DEFAULTS(), PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE(), TransferDataFromWindow(), ~PANEL_FP_EDITOR_DEFAULTS(), and PANEL_FP_EDITOR_DEFAULTS_BASE::~PANEL_FP_EDITOR_DEFAULTS_BASE().
|
private |
Definition at line 49 of file panel_fp_editor_defaults.h.
Referenced by Show().
|
protectedinherited |
Definition at line 49 of file panel_fp_editor_defaults_base.h.
Referenced by loadFPSettings(), OnAddTextItem(), OnDeleteTextItem(), PANEL_FP_EDITOR_DEFAULTS(), PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE(), Show(), TransferDataFromWindow(), and ~PANEL_FP_EDITOR_DEFAULTS().
|
protectedinherited |
Definition at line 46 of file panel_fp_editor_defaults_base.h.
Referenced by loadFPSettings(), OnAddTextItem(), OnDeleteTextItem(), PANEL_FP_EDITOR_DEFAULTS(), PANEL_FP_EDITOR_DEFAULTS_BASE::PANEL_FP_EDITOR_DEFAULTS_BASE(), TransferDataFromWindow(), ~PANEL_FP_EDITOR_DEFAULTS(), and PANEL_FP_EDITOR_DEFAULTS_BASE::~PANEL_FP_EDITOR_DEFAULTS_BASE().
|
private |
Definition at line 50 of file panel_fp_editor_defaults.h.
Referenced by PANEL_FP_EDITOR_DEFAULTS(), and TransferDataFromWindow().