73 loadSettings( GetAppSettings<GERBVIEW_SETTINGS>(
"gerbview" ) );
91 if(
m_pageSizeA4->GetValue() ) cfg->m_Appearance.page_type = wxT(
"A4" );
92 else if(
m_pageSizeA3->GetValue() ) cfg->m_Appearance.page_type = wxT(
"A3" );
93 else if(
m_pageSizeA2->GetValue() ) cfg->m_Appearance.page_type = wxT(
"A2" );
94 else if(
m_pageSizeA->GetValue() ) cfg->m_Appearance.page_type = wxT(
"A" );
95 else if(
m_pageSizeB->GetValue() ) cfg->m_Appearance.page_type = wxT(
"B" );
96 else if(
m_pageSizeC->GetValue() ) cfg->m_Appearance.page_type = wxT(
"C" );
97 else cfg->m_Appearance.page_type = wxT(
"GERBER" );
bool ResetPanel(APP_SETTINGS_BASE *aAppSettings)
bool TransferDataToWindow() override
Load the panel controls from the given opt.
bool TransferDataFromWindow() override
Read the options set in the UI into the given options object.
bool m_DisplayFlashedItemsFill
Option to draw flashed items (filled/sketch)
double m_OpacityModeAlphaValue
the alpha channel (opacity) value in opacity forced mode
bool m_DisplayPolygonsFill
Option to draw polygons (filled/sketch)
bool m_DisplayLinesFill
Option to draw line items (filled/sketch)
GBR_DISPLAY_OPTIONS m_Display
virtual void Load()
Updates the parameters of this object based on the current JSON document contents.
Class PANEL_GERBVIEW_DISPLAY_OPTIONS_BASE.
wxSpinCtrlDouble * m_spOpacityCtrl
wxCheckBox * m_OptDisplayPolygons
wxRadioButton * m_pageSizeFull
wxRadioButton * m_pageSizeA3
wxCheckBox * m_OptDisplayDCodes
wxCheckBox * m_OptDisplayLines
wxBoxSizer * m_galOptionsSizer
wxCheckBox * m_OptDisplayFlashedItems
wxCheckBox * m_ShowPageLimitsOpt
wxRadioButton * m_pageSizeA2
wxRadioButton * m_pageSizeC
wxRadioButton * m_pageSizeA
wxRadioButton * m_pageSizeB
wxRadioButton * m_pageSizeA4
void ResetPanel() override
Reset the contents of this panel.
GAL_OPTIONS_PANEL * m_galOptsPanel
void loadSettings(GERBVIEW_SETTINGS *aCfg)
bool TransferDataToWindow() override
bool TransferDataFromWindow() override
PANEL_GERBVIEW_DISPLAY_OPTIONS(wxWindow *aParent)