KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_MOUSE_SETTINGS Class Reference

#include <panel_mouse_settings.h>

Inheritance diagram for PANEL_MOUSE_SETTINGS:
PANEL_MOUSE_SETTINGS_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_MOUSE_SETTINGS (wxWindow *aParent)
 
 ~PANEL_MOUSE_SETTINGS ()
 
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 OnScrollRadioButton (wxCommandEvent &event) override
 
void onMouseDefaults (wxCommandEvent &event) override
 
void onTrackpadDefaults (wxCommandEvent &event) override
 

Protected Attributes

wxStaticText * m_panZoomLabel
 
wxStaticLine * m_staticline1
 
wxCheckBox * m_checkZoomCenter
 
wxCheckBox * m_checkAutoPan
 
wxCheckBox * m_checkZoomAcceleration
 
wxBoxSizer * m_zoomSizer
 
wxStaticText * m_staticText1
 
wxSlider * m_zoomSpeed
 
wxCheckBox * m_checkAutoZoomSpeed
 
wxBoxSizer * m_panSizer
 
wxStaticText * m_staticText22
 
wxSlider * m_autoPanSpeed
 
wxStaticText * m_dragLabel
 
wxStaticLine * m_staticline3
 
wxStaticText * m_leftButtonDragLabel
 
wxChoice * m_choiceLeftButtonDrag
 
wxStaticText * m_staticText3
 
wxChoice * m_choiceMiddleButtonDrag
 
wxStaticText * m_staticText31
 
wxChoice * m_choiceRightButtonDrag
 
wxStaticText * m_panMoveKeyLabel
 
wxChoice * m_choicePanMoveKey
 
wxStaticText * m_scrollLabel
 
wxStaticLine * m_staticline2
 
wxStaticText * m_staticText21
 
wxStaticBitmap * m_scrollWarning
 
wxStaticText * m_staticText19
 
wxStaticText * m_staticText17
 
wxStaticText * m_lblCtrl
 
wxStaticText * m_staticText8
 
wxStaticText * m_lblAlt
 
wxStaticText * m_staticText18
 
wxStaticText * m_staticText10
 
wxRadioButton * m_rbZoomNone
 
wxRadioButton * m_rbZoomCtrl
 
wxRadioButton * m_rbZoomShift
 
wxRadioButton * m_rbZoomAlt
 
wxCheckBox * m_checkZoomReverse
 
wxStaticText * m_staticText11
 
wxRadioButton * m_rbPanVNone
 
wxRadioButton * m_rbPanVCtrl
 
wxRadioButton * m_rbPanVShift
 
wxRadioButton * m_rbPanVAlt
 
wxStaticText * m_staticText211
 
wxStaticText * m_staticText20
 
wxRadioButton * m_rbPanHNone
 
wxRadioButton * m_rbPanHCtrl
 
wxRadioButton * m_rbPanHShift
 
wxRadioButton * m_rbPanHAlt
 
wxCheckBox * m_checkPanHReverse
 
wxCheckBox * m_checkEnablePanH
 
wxButton * m_mouseDefaults
 
wxButton * m_trackpadDefaults
 

Private Member Functions

void applySettingsToPanel (const COMMON_SETTINGS &aSettings)
 
SCROLL_MOD_SET getScrollModSet ()
 
void updateScrollModButtons ()
 
bool isScrollModSetValid (const SCROLL_MOD_SET &aSet)
 

Private Attributes

SCROLL_MOD_SET m_currentScrollMod
 

Detailed Description

Definition at line 41 of file panel_mouse_settings.h.

Constructor & Destructor Documentation

◆ PANEL_MOUSE_SETTINGS()

PANEL_MOUSE_SETTINGS::PANEL_MOUSE_SETTINGS ( wxWindow * aParent)

◆ ~PANEL_MOUSE_SETTINGS()

PANEL_MOUSE_SETTINGS::~PANEL_MOUSE_SETTINGS ( )

Definition at line 61 of file panel_mouse_settings.cpp.

Member Function Documentation

◆ applySettingsToPanel()

void PANEL_MOUSE_SETTINGS::applySettingsToPanel ( const COMMON_SETTINGS & aSettings)
private

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint & aPt,
wxHelpEvent::Origin aOrigin ) const
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 GetResetTooltip().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

References _.

Referenced by GetHelpTextAtPoint().

◆ getScrollModSet()

◆ isScrollModSetValid()

bool PANEL_MOUSE_SETTINGS::isScrollModSetValid ( const SCROLL_MOD_SET & aSet)
private

◆ onMouseDefaults()

void PANEL_MOUSE_SETTINGS::onMouseDefaults ( wxCommandEvent & event)
overrideprotectedvirtual

◆ OnScrollRadioButton()

◆ onTrackpadDefaults()

void PANEL_MOUSE_SETTINGS::onTrackpadDefaults ( wxCommandEvent & event)
overrideprotectedvirtual

◆ ResetPanel()

void PANEL_MOUSE_SETTINGS::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 141 of file panel_mouse_settings.cpp.

References applySettingsToPanel(), and JSON_SETTINGS::ResetToDefaults().

◆ TransferDataFromWindow()

bool PANEL_MOUSE_SETTINGS::TransferDataFromWindow ( )
overrideprotected

Definition at line 76 of file panel_mouse_settings.cpp.

References _, COMMON_SETTINGS::INPUT::auto_pan, COMMON_SETTINGS::INPUT::auto_pan_acceleration, COMMON_SETTINGS::INPUT::center_on_zoom, DRAG_ANY, COMMON_SETTINGS::INPUT::drag_left, COMMON_SETTINGS::INPUT::drag_middle, COMMON_SETTINGS::INPUT::drag_right, DRAG_SELECTED, PGM_BASE::GetCommonSettings(), PAGED_DIALOG::GetDialog(), getScrollModSet(), COMMON_SETTINGS::INPUT::horizontal_pan, isScrollModSetValid(), PANEL_MOUSE_SETTINGS_BASE::m_autoPanSpeed, PANEL_MOUSE_SETTINGS_BASE::m_checkAutoPan, PANEL_MOUSE_SETTINGS_BASE::m_checkAutoZoomSpeed, PANEL_MOUSE_SETTINGS_BASE::m_checkEnablePanH, PANEL_MOUSE_SETTINGS_BASE::m_checkPanHReverse, PANEL_MOUSE_SETTINGS_BASE::m_checkZoomAcceleration, PANEL_MOUSE_SETTINGS_BASE::m_checkZoomCenter, PANEL_MOUSE_SETTINGS_BASE::m_checkZoomReverse, PANEL_MOUSE_SETTINGS_BASE::m_choiceLeftButtonDrag, PANEL_MOUSE_SETTINGS_BASE::m_choiceMiddleButtonDrag, PANEL_MOUSE_SETTINGS_BASE::m_choicePanMoveKey, PANEL_MOUSE_SETTINGS_BASE::m_choiceRightButtonDrag, m_currentScrollMod, COMMON_SETTINGS::m_Input, PANEL_MOUSE_SETTINGS_BASE::m_zoomSpeed, COMMON_SETTINGS::INPUT::motion_pan_modifier, NONE, PAN, Pgm(), COMMON_SETTINGS::INPUT::reverse_scroll_pan_h, COMMON_SETTINGS::INPUT::reverse_scroll_zoom, COMMON_SETTINGS::INPUT::scroll_modifier_pan_h, COMMON_SETTINGS::INPUT::scroll_modifier_pan_v, COMMON_SETTINGS::INPUT::scroll_modifier_zoom, SELECT, PAGED_DIALOG::SetError(), ZOOM, COMMON_SETTINGS::INPUT::zoom_acceleration, COMMON_SETTINGS::INPUT::zoom_speed, and COMMON_SETTINGS::INPUT::zoom_speed_auto.

◆ TransferDataToWindow()

bool PANEL_MOUSE_SETTINGS::TransferDataToWindow ( )
overrideprotected

◆ updateScrollModButtons()

Member Data Documentation

◆ m_autoPanSpeed

wxSlider* PANEL_MOUSE_SETTINGS_BASE::m_autoPanSpeed
protectedinherited

◆ m_checkAutoPan

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkAutoPan
protectedinherited

◆ m_checkAutoZoomSpeed

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkAutoZoomSpeed
protectedinherited

◆ m_checkEnablePanH

◆ m_checkPanHReverse

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkPanHReverse
protectedinherited

◆ m_checkZoomAcceleration

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkZoomAcceleration
protectedinherited

◆ m_checkZoomCenter

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkZoomCenter
protectedinherited

◆ m_checkZoomReverse

wxCheckBox* PANEL_MOUSE_SETTINGS_BASE::m_checkZoomReverse
protectedinherited

◆ m_choiceLeftButtonDrag

wxChoice* PANEL_MOUSE_SETTINGS_BASE::m_choiceLeftButtonDrag
protectedinherited

◆ m_choiceMiddleButtonDrag

wxChoice* PANEL_MOUSE_SETTINGS_BASE::m_choiceMiddleButtonDrag
protectedinherited

◆ m_choicePanMoveKey

wxChoice* PANEL_MOUSE_SETTINGS_BASE::m_choicePanMoveKey
protectedinherited

◆ m_choiceRightButtonDrag

wxChoice* PANEL_MOUSE_SETTINGS_BASE::m_choiceRightButtonDrag
protectedinherited

◆ m_currentScrollMod

◆ m_dragLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_dragLabel
protectedinherited

Definition at line 56 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_lblAlt

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_lblAlt
protectedinherited

Definition at line 74 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_lblCtrl

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_lblCtrl
protectedinherited

Definition at line 72 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_leftButtonDragLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_leftButtonDragLabel
protectedinherited

Definition at line 58 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_mouseDefaults

wxButton* PANEL_MOUSE_SETTINGS_BASE::m_mouseDefaults
protectedinherited

◆ m_panMoveKeyLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_panMoveKeyLabel
protectedinherited

Definition at line 64 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_panSizer

wxBoxSizer* PANEL_MOUSE_SETTINGS_BASE::m_panSizer
protectedinherited

Definition at line 53 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_panZoomLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_panZoomLabel
protectedinherited

Definition at line 44 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_rbPanHAlt

◆ m_rbPanHCtrl

◆ m_rbPanHNone

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanHNone
protectedinherited

◆ m_rbPanHShift

◆ m_rbPanVAlt

◆ m_rbPanVCtrl

◆ m_rbPanVNone

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbPanVNone
protectedinherited

◆ m_rbPanVShift

◆ m_rbZoomAlt

◆ m_rbZoomCtrl

◆ m_rbZoomNone

wxRadioButton* PANEL_MOUSE_SETTINGS_BASE::m_rbZoomNone
protectedinherited

◆ m_rbZoomShift

◆ m_scrollLabel

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_scrollLabel
protectedinherited

Definition at line 66 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_scrollWarning

wxStaticBitmap* PANEL_MOUSE_SETTINGS_BASE::m_scrollWarning
protectedinherited

◆ m_staticline1

wxStaticLine* PANEL_MOUSE_SETTINGS_BASE::m_staticline1
protectedinherited

Definition at line 45 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticline2

wxStaticLine* PANEL_MOUSE_SETTINGS_BASE::m_staticline2
protectedinherited

Definition at line 67 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticline3

wxStaticLine* PANEL_MOUSE_SETTINGS_BASE::m_staticline3
protectedinherited

Definition at line 57 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText1

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText1
protectedinherited

Definition at line 50 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText10

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText10
protectedinherited

Definition at line 76 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText11

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText11
protectedinherited

Definition at line 82 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText17

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText17
protectedinherited

Definition at line 71 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText18

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText18
protectedinherited

Definition at line 75 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText19

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText19
protectedinherited

Definition at line 70 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText20

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText20
protectedinherited

Definition at line 88 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText21

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText21
protectedinherited

Definition at line 68 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText211

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText211
protectedinherited

Definition at line 87 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText22

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText22
protectedinherited

Definition at line 54 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText3

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText3
protectedinherited

Definition at line 60 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText31

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText31
protectedinherited

Definition at line 62 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_staticText8

wxStaticText* PANEL_MOUSE_SETTINGS_BASE::m_staticText8
protectedinherited

Definition at line 73 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_trackpadDefaults

wxButton* PANEL_MOUSE_SETTINGS_BASE::m_trackpadDefaults
protectedinherited

◆ m_zoomSizer

wxBoxSizer* PANEL_MOUSE_SETTINGS_BASE::m_zoomSizer
protectedinherited

Definition at line 49 of file panel_mouse_settings_base.h.

Referenced by PANEL_MOUSE_SETTINGS_BASE().

◆ m_zoomSpeed

wxSlider* PANEL_MOUSE_SETTINGS_BASE::m_zoomSpeed
protectedinherited

The documentation for this class was generated from the following files: