KiCad PCB EDA Suite
|
#include <panel_simulator_preferences.h>
Public Member Functions | |
PANEL_SIMULATOR_PREFERENCES (wxWindow *aParent) | |
~PANEL_SIMULATOR_PREFERENCES () | |
void | ResetPanel () override |
Reset the contents of this panel. | |
virtual wxString | GetResetTooltip () const |
Get the tooltip the reset button should display when showing this panel. | |
wxString | GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. | |
Protected Member Functions | |
bool | TransferDataFromWindow () override |
bool | TransferDataToWindow () override |
void | onMouseDefaults (wxCommandEvent &) override |
void | onTrackpadDefaults (wxCommandEvent &) override |
Protected Attributes | |
wxStaticText * | m_lblScrollHeading |
wxStaticLine * | m_scrollLine |
wxStaticText * | m_lblVScrollMovement |
wxStaticText * | m_lblVScrollModifier |
wxStaticText * | m_lblVScrollAction |
wxStaticText * | m_lblVScrollUnmodified |
wxChoice * | m_choiceVScrollUnmodified |
wxStaticText * | m_lblVScrollCtrl |
wxChoice * | m_choiceVScrollCtrl |
wxStaticText * | m_lblVScrollShift |
wxChoice * | m_choiceVScrollShift |
wxStaticText * | m_lblVScrollAlt |
wxChoice * | m_choiceVScrollAlt |
wxStaticText * | m_lblHScrollMovement |
wxStaticText * | m_lblHScrollModifier |
wxStaticText * | m_lblHScrollAction |
wxStaticText * | m_lblHScrollAny |
wxChoice * | m_choiceHScroll |
wxButton * | m_btnMouseDefaults |
wxButton * | m_btnTrackpadDefaults |
Private Member Functions | |
void | applyMouseScrollActionsToPanel (const SIM_MOUSE_WHEEL_ACTION_SET &anActionSet) |
Static Private Member Functions | |
static SIM_MOUSE_WHEEL_ACTION | horizontalScrollSelectionToAction (int aSelection) |
static int | actionToHorizontalScrollSelection (SIM_MOUSE_WHEEL_ACTION anAction) |
Definition at line 27 of file panel_simulator_preferences.h.
PANEL_SIMULATOR_PREFERENCES::PANEL_SIMULATOR_PREFERENCES | ( | wxWindow * | aParent | ) |
Definition at line 28 of file panel_simulator_preferences.cpp.
References _, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceHScroll, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollAlt, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollCtrl, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollShift, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollUnmodified, PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollAlt, and PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollCtrl.
|
default |
|
staticprivate |
Definition at line 140 of file panel_simulator_preferences.cpp.
Referenced by applyMouseScrollActionsToPanel().
|
private |
Definition at line 154 of file panel_simulator_preferences.cpp.
References actionToHorizontalScrollSelection(), SIM_MOUSE_WHEEL_ACTION_SET::horizontal, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceHScroll, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollAlt, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollCtrl, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollShift, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollUnmodified, SIM_MOUSE_WHEEL_ACTION_SET::vertical_unmodified, SIM_MOUSE_WHEEL_ACTION_SET::vertical_with_alt, SIM_MOUSE_WHEEL_ACTION_SET::vertical_with_ctrl, and SIM_MOUSE_WHEEL_ACTION_SET::vertical_with_shift.
Referenced by onMouseDefaults(), onTrackpadDefaults(), ResetPanel(), and TransferDataToWindow().
|
inlineoverrideinherited |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
Definition at line 72 of file resettable_panel.h.
References RESETTABLE_PANEL::GetResetTooltip().
|
inlinevirtualinherited |
Get the tooltip the reset button should display when showing this panel.
Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.
Definition at line 64 of file resettable_panel.h.
References _.
Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().
|
staticprivate |
Definition at line 127 of file panel_simulator_preferences.cpp.
Referenced by TransferDataFromWindow().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SIMULATOR_PREFERENCES_BASE.
Definition at line 114 of file panel_simulator_preferences.cpp.
References applyMouseScrollActionsToPanel(), and SIM_MOUSE_WHEEL_ACTION_SET::GetMouseDefaults().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SIMULATOR_PREFERENCES_BASE.
Definition at line 120 of file panel_simulator_preferences.cpp.
References applyMouseScrollActionsToPanel(), and SIM_MOUSE_WHEEL_ACTION_SET::GetTrackpadDefaults().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 75 of file panel_simulator_preferences.cpp.
References applyMouseScrollActionsToPanel(), and SIM_MOUSE_WHEEL_ACTION_SET::GetMouseDefaults().
|
overrideprotected |
Definition at line 81 of file panel_simulator_preferences.cpp.
References SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), horizontalScrollSelectionToAction(), PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceHScroll, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollAlt, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollCtrl, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollShift, PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollUnmodified, EESCHEMA_SETTINGS::m_Simulator, SIM_PREFERENCES::mouse_wheel_actions, Pgm(), EESCHEMA_SETTINGS::SIMULATOR::preferences, and SIM_MOUSE_WHEEL_ACTION_SET::vertical_unmodified.
|
overrideprotected |
Definition at line 104 of file panel_simulator_preferences.cpp.
References applyMouseScrollActionsToPanel(), SETTINGS_MANAGER::GetAppSettings(), PGM_BASE::GetSettingsManager(), EESCHEMA_SETTINGS::m_Simulator, SIM_PREFERENCES::mouse_wheel_actions, Pgm(), and EESCHEMA_SETTINGS::SIMULATOR::preferences.
|
protectedinherited |
Definition at line 57 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE(), and PANEL_SIMULATOR_PREFERENCES_BASE::~PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 58 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE(), and PANEL_SIMULATOR_PREFERENCES_BASE::~PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 56 of file panel_simulator_preferences_base.h.
Referenced by applyMouseScrollActionsToPanel(), PANEL_SIMULATOR_PREFERENCES(), PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 51 of file panel_simulator_preferences_base.h.
Referenced by applyMouseScrollActionsToPanel(), PANEL_SIMULATOR_PREFERENCES(), PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 47 of file panel_simulator_preferences_base.h.
Referenced by applyMouseScrollActionsToPanel(), PANEL_SIMULATOR_PREFERENCES(), PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 49 of file panel_simulator_preferences_base.h.
Referenced by applyMouseScrollActionsToPanel(), PANEL_SIMULATOR_PREFERENCES(), PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 45 of file panel_simulator_preferences_base.h.
Referenced by applyMouseScrollActionsToPanel(), PANEL_SIMULATOR_PREFERENCES(), PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 54 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 55 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 53 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 52 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 39 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 43 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 50 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES(), and PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 46 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES(), and PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 42 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 41 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 48 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 44 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().
|
protectedinherited |
Definition at line 40 of file panel_simulator_preferences_base.h.
Referenced by PANEL_SIMULATOR_PREFERENCES_BASE::PANEL_SIMULATOR_PREFERENCES_BASE().