KiCad PCB EDA Suite
|
#include <gal_options_panel.h>
Public Member Functions | |
GAL_OPTIONS_PANEL (wxWindow *aParent, APP_SETTINGS_BASE *aAppSettings) | |
bool | TransferDataToWindow () override |
Load the panel controls from the given opt. More... | |
bool | TransferDataFromWindow () override |
Read the options set in the UI into the given options object. More... | |
bool | ResetPanel (APP_SETTINGS_BASE *aAppSettings) |
Private Attributes | |
wxBoxSizer * | m_mainSizer |
wxRadioBox * | m_renderingEngine |
wxRadioBox * | m_gridStyle |
wxStaticText * | l_gridLineWidth |
wxSpinCtrlDouble * | m_gridLineWidth |
wxStaticText * | l_gridLineWidthUnits |
wxStaticText * | l_gridMinSpacing |
wxSpinCtrlDouble * | m_gridMinSpacing |
wxStaticText * | l_gridMinSpacingUnits |
wxStaticText * | l_gridSnapOptions |
wxChoice * | m_gridSnapOptions |
wxStaticText * | l_gridSnapSpace |
wxRadioBox * | m_cursorShape |
wxCheckBox * | m_forceCursorDisplay |
APP_SETTINGS_BASE * | m_cfg |
Definition at line 40 of file gal_options_panel.h.
GAL_OPTIONS_PANEL::GAL_OPTIONS_PANEL | ( | wxWindow * | aParent, |
APP_SETTINGS_BASE * | aAppSettings | ||
) |
Definition at line 70 of file gal_options_panel.cpp.
References _, gridMinSpacingMax, gridMinSpacingMin, gridMinSpacingStep, gridThicknessMax, gridThicknessMin, gridThicknessStep, l_gridLineWidth, l_gridLineWidthUnits, l_gridMinSpacing, l_gridMinSpacingUnits, l_gridSnapOptions, l_gridSnapSpace, m_cursorShape, m_forceCursorDisplay, m_gridLineWidth, m_gridMinSpacing, m_gridSnapOptions, m_gridStyle, m_mainSizer, and m_renderingEngine.
bool GAL_OPTIONS_PANEL::ResetPanel | ( | APP_SETTINGS_BASE * | aAppSettings | ) |
Definition at line 264 of file gal_options_panel.cpp.
References m_cfg, and TransferDataToWindow().
Referenced by PANEL_EESCHEMA_DISPLAY_OPTIONS::ResetPanel(), PANEL_SYM_DISPLAY_OPTIONS::ResetPanel(), PANEL_GERBVIEW_DISPLAY_OPTIONS::ResetPanel(), PANEL_PL_EDITOR_DISPLAY_OPTIONS::ResetPanel(), and PANEL_DISPLAY_OPTIONS::ResetPanel().
|
override |
Read the options set in the UI into the given options object.
Definition at line 244 of file gal_options_panel.cpp.
References CURSOR_SETTINGS::always_show_cursor, APP_SETTINGS_BASE::GRAPHICS::canvas_type, WINDOW_SETTINGS::cursor, CURSOR_SETTINGS::fullscreen_cursor, EDA_DRAW_PANEL_GAL::GAL_TYPE_CAIRO, EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL, WINDOW_SETTINGS::grid, GRID_SETTINGS::line_width, m_cfg, m_cursorShape, m_forceCursorDisplay, APP_SETTINGS_BASE::m_Graphics, m_gridLineWidth, m_gridMinSpacing, m_gridSnapOptions, m_gridStyle, m_renderingEngine, APP_SETTINGS_BASE::m_Window, GRID_SETTINGS::min_spacing, GRID_SETTINGS::snap, and GRID_SETTINGS::style.
Referenced by PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow(), PANEL_SYM_DISPLAY_OPTIONS::TransferDataFromWindow(), PANEL_GERBVIEW_DISPLAY_OPTIONS::TransferDataFromWindow(), PANEL_GAL_DISPLAY_OPTIONS::TransferDataFromWindow(), PANEL_PL_EDITOR_DISPLAY_OPTIONS::TransferDataFromWindow(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
override |
Load the panel controls from the given opt.
Definition at line 221 of file gal_options_panel.cpp.
References CURSOR_SETTINGS::always_show_cursor, APP_SETTINGS_BASE::GRAPHICS::canvas_type, WINDOW_SETTINGS::cursor, CURSOR_SETTINGS::fullscreen_cursor, EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL, WINDOW_SETTINGS::grid, GRID_SETTINGS::line_width, m_cfg, m_cursorShape, m_forceCursorDisplay, APP_SETTINGS_BASE::m_Graphics, m_gridLineWidth, m_gridMinSpacing, m_gridSnapOptions, m_gridStyle, m_renderingEngine, APP_SETTINGS_BASE::m_Window, GRID_SETTINGS::min_spacing, GRID_SETTINGS::snap, and GRID_SETTINGS::style.
Referenced by ResetPanel(), PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow(), PANEL_SYM_DISPLAY_OPTIONS::TransferDataToWindow(), PANEL_GERBVIEW_DISPLAY_OPTIONS::TransferDataToWindow(), PANEL_GAL_DISPLAY_OPTIONS::TransferDataToWindow(), PANEL_PL_EDITOR_DISPLAY_OPTIONS::TransferDataToWindow(), and PANEL_DISPLAY_OPTIONS::TransferDataToWindow().
|
private |
Definition at line 66 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL().
|
private |
Definition at line 68 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL().
|
private |
Definition at line 70 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL().
|
private |
Definition at line 72 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL().
|
private |
Definition at line 74 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL().
|
private |
Definition at line 76 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL().
|
private |
Definition at line 81 of file gal_options_panel.h.
Referenced by ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 78 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 79 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 67 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 71 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 75 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 65 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 59 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL().
|
private |
Definition at line 62 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), TransferDataFromWindow(), and TransferDataToWindow().