36 m_frameType( aFrameType )
102 if(
PCBNEW_SETTINGS* cfg = GetAppSettings<PCBNEW_SETTINGS>(
"pcbnew" ) )
105 cfg->m_Display.m_DisplayOrigin = PCB_DISPLAY_ORIGIN::PCB_ORIGIN_PAGE;
107 cfg->m_Display.m_DisplayOrigin = PCB_DISPLAY_ORIGIN::PCB_ORIGIN_GRID;
109 cfg->m_Display.m_DisplayOrigin = PCB_DISPLAY_ORIGIN::PCB_ORIGIN_AUX;
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
virtual void Load()
Updates the parameters of this object based on the current JSON document contents.
Class PANEL_PCBNEW_DISPLAY_ORIGIN_BASE.
wxRadioButton * m_xIncreasesRight
wxRadioButton * m_xIncreasesLeft
wxRadioButton * m_gridOrigin
wxRadioButton * m_drillPlaceOrigin
wxRadioButton * m_yIncreasesUp
wxRadioButton * m_yIncreasesDown
wxBoxSizer * m_displayOrigin
wxRadioButton * m_pageOrigin
APP_SETTINGS_BASE * m_cfg
void ResetPanel() override
Reset the contents of this panel.
PANEL_PCBNEW_DISPLAY_ORIGIN(wxWindow *aParent, APP_SETTINGS_BASE *aCfg, FRAME_T aFrameType)
void loadSettings(APP_SETTINGS_BASE *aCfg)
bool TransferDataToWindow() override
bool TransferDataFromWindow() override
DISPLAY_OPTIONS m_Display
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
bool m_DisplayInvertYAxis
bool m_DisplayInvertXAxis
PCB_DISPLAY_ORIGIN m_DisplayOrigin