72 if(
m_cfg->m_Window.grid.line_width == size )
87 if(
m_cfg->m_Window.grid.style == 0 )
89 else if(
m_cfg->m_Window.grid.style == 1 )
114 m_cfg->m_Window.grid.style = 0;
116 m_cfg->m_Window.grid.style = 1;
118 m_cfg->m_Window.grid.style = 2;
141 m_cfg = aAppSettings;
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
wxChoice * m_gridLineWidth
PANEL_GAL_OPTIONS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxRadioButton * m_rbSmallCrosshairs
wxRadioButton * m_rbFullWindowCrosshairs
wxRadioButton * m_rbLines
wxRadioButton * m_rbCrosses
wxCheckBox * m_forceCursorDisplay
wxRadioButton * m_rb45DegreeCrosshairs
wxSpinCtrl * m_gridMinSpacing
wxChoice * m_gridSnapOptions
bool TransferDataFromWindow() override
Read the options set in the UI into the given options object.
bool ResetPanel(APP_SETTINGS_BASE *aAppSettings)
std::vector< double > m_gridThicknessList
APP_SETTINGS_BASE * m_cfg
PANEL_GAL_OPTIONS(wxWindow *aParent, APP_SETTINGS_BASE *aAppSettings)
bool TransferDataToWindow() override
Load the panel controls from the given opt.
@ SMALL_CROSS
Use small cross instead of dots for the grid.
@ DOTS
Use dots for the grid.
@ LINES
Use lines for the grid.
std::vector< std::pair< T, long > > CFG_MAP
A config value table is a list of native values (usually enums) to a different set of values,...
static const int gridMinSpacingStep
static const UTIL::CFG_MAP< KIGFX::GRID_STYLE > gridStyleSelectMap
TODO: These are duplicated in gal_display_options - Unify!
static const UTIL::CFG_MAP< KIGFX::GRID_SNAPPING > gridSnapConfigVals
static const double gridThicknessStep
static const int gridMinSpacingMin
static const double gridThicknessMax
static const double gridThicknessMin
static const int gridMinSpacingMax