KiCad PCB EDA Suite
|
#include <panel_pcbnew_display_origin.h>
Public Member Functions | |
PANEL_PCBNEW_DISPLAY_ORIGIN (wxWindow *aParent, APP_SETTINGS_BASE *aCfg, FRAME_T aFrameType) | |
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 | |
wxBoxSizer * | m_displayOrigin |
wxStaticText * | displayOriginLabel |
wxStaticLine * | m_staticline1 |
wxRadioButton * | m_pageOrigin |
wxRadioButton * | m_drillPlaceOrigin |
wxRadioButton * | m_gridOrigin |
wxStaticText * | xAxisLabel |
wxStaticLine * | m_staticline2 |
wxRadioButton * | m_xIncreasesRight |
wxRadioButton * | m_xIncreasesLeft |
wxStaticText * | yAxisLabel |
wxStaticLine * | m_staticline3 |
wxRadioButton * | m_yIncreasesUp |
wxRadioButton * | m_yIncreasesDown |
Private Member Functions | |
void | loadSettings (APP_SETTINGS_BASE *aCfg) |
Private Attributes | |
APP_SETTINGS_BASE * | m_cfg |
FRAME_T | m_frameType |
Definition at line 32 of file panel_pcbnew_display_origin.h.
PANEL_PCBNEW_DISPLAY_ORIGIN::PANEL_PCBNEW_DISPLAY_ORIGIN | ( | wxWindow * | aParent, |
APP_SETTINGS_BASE * | aCfg, | ||
FRAME_T | aFrameType | ||
) |
Definition at line 32 of file panel_pcbnew_display_origin.cpp.
References FRAME_PCB_EDITOR, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_displayOrigin, and m_frameType.
|
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 42 of file panel_pcbnew_display_origin.cpp.
References FRAME_FOOTPRINT_EDITOR, PCBNEW_SETTINGS::m_Display, FOOTPRINT_EDITOR_SETTINGS::m_DisplayInvertXAxis, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayInvertXAxis, FOOTPRINT_EDITOR_SETTINGS::m_DisplayInvertYAxis, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayInvertYAxis, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayOrigin, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_drillPlaceOrigin, m_frameType, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_gridOrigin, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_pageOrigin, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_xIncreasesLeft, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_xIncreasesRight, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_yIncreasesDown, and PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_yIncreasesUp.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 118 of file panel_pcbnew_display_origin.cpp.
References FRAME_FOOTPRINT_EDITOR, JSON_SETTINGS::Load(), loadSettings(), and m_frameType.
|
override |
Definition at line 90 of file panel_pcbnew_display_origin.cpp.
References FRAME_FOOTPRINT_EDITOR, m_cfg, PCBNEW_SETTINGS::m_Display, FOOTPRINT_EDITOR_SETTINGS::m_DisplayInvertXAxis, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayInvertXAxis, FOOTPRINT_EDITOR_SETTINGS::m_DisplayInvertYAxis, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayInvertYAxis, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_DisplayOrigin, m_frameType, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_gridOrigin, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_pageOrigin, PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_xIncreasesLeft, and PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_yIncreasesUp.
|
override |
Definition at line 82 of file panel_pcbnew_display_origin.cpp.
References loadSettings(), and m_cfg.
|
protectedinherited |
Definition at line 36 of file panel_pcbnew_display_origin_base.h.
Referenced by PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
private |
Definition at line 46 of file panel_pcbnew_display_origin.h.
Referenced by TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 35 of file panel_pcbnew_display_origin_base.h.
Referenced by PANEL_PCBNEW_DISPLAY_ORIGIN(), and PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
protectedinherited |
Definition at line 39 of file panel_pcbnew_display_origin_base.h.
Referenced by loadSettings(), and PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
private |
Definition at line 47 of file panel_pcbnew_display_origin.h.
Referenced by loadSettings(), PANEL_PCBNEW_DISPLAY_ORIGIN(), ResetPanel(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 40 of file panel_pcbnew_display_origin_base.h.
Referenced by loadSettings(), PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 38 of file panel_pcbnew_display_origin_base.h.
Referenced by loadSettings(), PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 37 of file panel_pcbnew_display_origin_base.h.
Referenced by PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
protectedinherited |
Definition at line 42 of file panel_pcbnew_display_origin_base.h.
Referenced by PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
protectedinherited |
Definition at line 46 of file panel_pcbnew_display_origin_base.h.
Referenced by PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
protectedinherited |
Definition at line 44 of file panel_pcbnew_display_origin_base.h.
Referenced by loadSettings(), PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 43 of file panel_pcbnew_display_origin_base.h.
Referenced by loadSettings(), and PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
protectedinherited |
Definition at line 48 of file panel_pcbnew_display_origin_base.h.
Referenced by loadSettings(), and PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
protectedinherited |
Definition at line 47 of file panel_pcbnew_display_origin_base.h.
Referenced by loadSettings(), PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 41 of file panel_pcbnew_display_origin_base.h.
Referenced by PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().
|
protectedinherited |
Definition at line 45 of file panel_pcbnew_display_origin_base.h.
Referenced by PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::PANEL_PCBNEW_DISPLAY_ORIGIN_BASE().