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. | |
bool | TransferDataFromWindow () override |
Read the options set in the UI into the given options object. | |
bool | ResetPanel (APP_SETTINGS_BASE *aAppSettings) |
Protected Attributes | |
wxBoxSizer * | m_renderingSizer |
wxStaticText * | m_staticText9 |
wxStaticLine * | m_staticline3 |
wxRadioButton * | m_rbAccelerated |
wxRadioButton * | m_rbFallback |
wxStaticText * | m_staticText1 |
wxStaticLine * | m_staticline1 |
wxStaticText * | m_gridStyleLabel |
wxRadioButton * | m_rbDots |
wxRadioButton * | m_rbLines |
wxRadioButton * | m_rbCrosses |
wxStaticText * | l_gridLineWidth |
wxChoice * | m_gridLineWidth |
wxStaticText * | l_gridLineWidthUnits |
wxStaticText * | l_gridMinSpacing |
wxSpinCtrl * | m_gridMinSpacing |
wxStaticText * | l_gridMinSpacingUnits |
wxStaticText * | l_gridSnapOptions |
wxChoice * | m_gridSnapOptions |
wxStaticText * | m_stGridLabel |
wxStaticLine * | m_staticline2 |
wxRadioButton * | m_rbSmallCrosshairs |
wxRadioButton * | m_rbFullWindowCrosshairs |
wxCheckBox * | m_forceCursorDisplay |
Private Attributes | |
std::vector< double > | m_gridThicknessList |
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 59 of file gal_options_panel.cpp.
References WINDOW_SETTINGS::grid, gridMinSpacingMax, gridMinSpacingMin, gridMinSpacingStep, gridThicknessMax, gridThicknessMin, gridThicknessStep, GRID_SETTINGS::line_width, m_cfg, GAL_OPTIONS_PANEL_BASE::m_gridLineWidth, GAL_OPTIONS_PANEL_BASE::m_gridMinSpacing, m_gridThicknessList, GAL_OPTIONS_PANEL_BASE::m_renderingSizer, and APP_SETTINGS_BASE::m_Window.
bool GAL_OPTIONS_PANEL::ResetPanel | ( | APP_SETTINGS_BASE * | aAppSettings | ) |
Definition at line 149 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_PCB_DISPLAY_OPTIONS::ResetPanel().
|
override |
Read the options set in the UI into the given options object.
Definition at line 120 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, GAL_OPTIONS_PANEL_BASE::m_forceCursorDisplay, APP_SETTINGS_BASE::m_Graphics, GAL_OPTIONS_PANEL_BASE::m_gridLineWidth, GAL_OPTIONS_PANEL_BASE::m_gridMinSpacing, GAL_OPTIONS_PANEL_BASE::m_gridSnapOptions, m_gridThicknessList, GAL_OPTIONS_PANEL_BASE::m_rbAccelerated, GAL_OPTIONS_PANEL_BASE::m_rbDots, GAL_OPTIONS_PANEL_BASE::m_rbFullWindowCrosshairs, GAL_OPTIONS_PANEL_BASE::m_rbLines, 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_PCB_DISPLAY_OPTIONS::TransferDataFromWindow().
|
override |
Load the panel controls from the given opt.
Definition at line 87 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, m_cfg, GAL_OPTIONS_PANEL_BASE::m_forceCursorDisplay, APP_SETTINGS_BASE::m_Graphics, GAL_OPTIONS_PANEL_BASE::m_gridMinSpacing, GAL_OPTIONS_PANEL_BASE::m_gridSnapOptions, GAL_OPTIONS_PANEL_BASE::m_rbAccelerated, GAL_OPTIONS_PANEL_BASE::m_rbCrosses, GAL_OPTIONS_PANEL_BASE::m_rbDots, GAL_OPTIONS_PANEL_BASE::m_rbFallback, GAL_OPTIONS_PANEL_BASE::m_rbFullWindowCrosshairs, GAL_OPTIONS_PANEL_BASE::m_rbLines, GAL_OPTIONS_PANEL_BASE::m_rbSmallCrosshairs, 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_PCB_DISPLAY_OPTIONS::TransferDataToWindow().
|
protectedinherited |
Definition at line 50 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 52 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 53 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 55 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 56 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
private |
Definition at line 60 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 62 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 51 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL(), GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 54 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL(), GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 57 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 46 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
private |
Definition at line 59 of file gal_options_panel.h.
Referenced by GAL_OPTIONS_PANEL(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 42 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 49 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 47 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 43 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 61 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 48 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 60 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 39 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL(), and GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 45 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 59 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 41 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 44 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 40 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().
|
protectedinherited |
Definition at line 58 of file gal_options_panel_base.h.
Referenced by GAL_OPTIONS_PANEL_BASE::GAL_OPTIONS_PANEL_BASE().