KiCad PCB EDA Suite
|
#include <panel_fp_editor_graphics_defaults.h>
Public Member Functions | |
PANEL_FP_EDITOR_GRAPHICS_DEFAULTS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider) | |
~PANEL_FP_EDITOR_GRAPHICS_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 Attributes | |
wxStaticLine * | m_staticline1 |
WX_GRID * | m_graphicsGrid |
Private Member Functions | |
bool | Show (bool aShow) override |
void | loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg) |
Private Attributes | |
bool | m_firstShow = true |
UNITS_PROVIDER * | m_unitProvider |
BOARD_DESIGN_SETTINGS & | m_designSettings |
std::unique_ptr< PANEL_SETUP_DIMENSIONS > | m_dimensionsPanel |
Definition at line 33 of file panel_fp_editor_graphics_defaults.h.
PANEL_FP_EDITOR_GRAPHICS_DEFAULTS::PANEL_FP_EDITOR_GRAPHICS_DEFAULTS | ( | wxWindow * | aParent, |
UNITS_PROVIDER * | aUnitsProvider | ||
) |
Definition at line 68 of file panel_fp_editor_graphics_defaults.cpp.
References COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_THICKNESS, COL_TEXT_WIDTH, m_dimensionsPanel, PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::m_graphicsGrid, WX_GRID::SetAutoEvalCols(), and WX_GRID::SetUnitsProvider().
|
override |
Definition at line 92 of file panel_fp_editor_graphics_defaults.cpp.
References PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::m_graphicsGrid.
|
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 99 of file panel_fp_editor_graphics_defaults.cpp.
References COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_ITALIC, COL_TEXT_THICKNESS, COL_TEXT_WIDTH, WX_GRID::GetVisibleWidth(), FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings, m_dimensionsPanel, PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::m_graphicsGrid, BOARD_DESIGN_SETTINGS::m_LineThickness, BOARD_DESIGN_SETTINGS::m_TextItalic, BOARD_DESIGN_SETTINGS::m_TextSize, BOARD_DESIGN_SETTINGS::m_TextThickness, ROW_COUNT, ROW_COURTYARD, ROW_EDGES, WX_GRID::SetUnitValue(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 293 of file panel_fp_editor_graphics_defaults.cpp.
References JSON_SETTINGS::Load(), and loadFPSettings().
|
overrideprivate |
Definition at line 171 of file panel_fp_editor_graphics_defaults.cpp.
References m_firstShow, and PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::m_graphicsGrid.
|
override |
Definition at line 185 of file panel_fp_editor_graphics_defaults.cpp.
References _, COL_LINE_THICKNESS, COL_TEXT_HEIGHT, COL_TEXT_ITALIC, COL_TEXT_THICKNESS, COL_TEXT_WIDTH, WX_GRID::CommitPendingChanges(), WX_GRID::GetUnitValue(), KIDIALOG::KD_ERROR, m_designSettings, m_dimensionsPanel, PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::m_graphicsGrid, BOARD_DESIGN_SETTINGS::m_LineThickness, BOARD_DESIGN_SETTINGS::m_TextItalic, 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, ROW_COUNT, ROW_COURTYARD, ROW_EDGES, WX_GRID::SetUnitValue(), KIDIALOG::ShowModal(), UNITS_PROVIDER::StringFromValue(), TEXT_MAX_SIZE_MM, and TEXT_MIN_SIZE_MM.
|
override |
Definition at line 161 of file panel_fp_editor_graphics_defaults.cpp.
References GetPgmSettings(), and loadFPSettings().
|
private |
Definition at line 52 of file panel_fp_editor_graphics_defaults.h.
Referenced by TransferDataFromWindow().
|
private |
Definition at line 53 of file panel_fp_editor_graphics_defaults.h.
Referenced by loadFPSettings(), PANEL_FP_EDITOR_GRAPHICS_DEFAULTS(), and TransferDataFromWindow().
|
private |
Definition at line 50 of file panel_fp_editor_graphics_defaults.h.
Referenced by Show().
|
protectedinherited |
|
protectedinherited |
Definition at line 37 of file panel_fp_editor_graphics_defaults_base.h.
Referenced by PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE::PANEL_FP_EDITOR_GRAPHICS_DEFAULTS_BASE().
|
private |
Definition at line 51 of file panel_fp_editor_graphics_defaults.h.
Referenced by TransferDataFromWindow().