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

#include <panel_simulator_preferences.h>

Inheritance diagram for PANEL_SIMULATOR_PREFERENCES:
PANEL_SIMULATOR_PREFERENCES_BASE RESETTABLE_PANEL

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)
 

Detailed Description

Definition at line 27 of file panel_simulator_preferences.h.

Constructor & Destructor Documentation

◆ PANEL_SIMULATOR_PREFERENCES()

◆ ~PANEL_SIMULATOR_PREFERENCES()

PANEL_SIMULATOR_PREFERENCES::~PANEL_SIMULATOR_PREFERENCES ( )
default

Member Function Documentation

◆ actionToHorizontalScrollSelection()

int PANEL_SIMULATOR_PREFERENCES::actionToHorizontalScrollSelection ( SIM_MOUSE_WHEEL_ACTION  anAction)
staticprivate

Definition at line 139 of file panel_simulator_preferences.cpp.

Referenced by applyMouseScrollActionsToPanel().

◆ applyMouseScrollActionsToPanel()

◆ 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 RESETTABLE_PANEL::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 RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ horizontalScrollSelectionToAction()

SIM_MOUSE_WHEEL_ACTION PANEL_SIMULATOR_PREFERENCES::horizontalScrollSelectionToAction ( int  aSelection)
staticprivate

Definition at line 126 of file panel_simulator_preferences.cpp.

Referenced by TransferDataFromWindow().

◆ onMouseDefaults()

void PANEL_SIMULATOR_PREFERENCES::onMouseDefaults ( wxCommandEvent &  )
overrideprotectedvirtual

◆ onTrackpadDefaults()

void PANEL_SIMULATOR_PREFERENCES::onTrackpadDefaults ( wxCommandEvent &  )
overrideprotectedvirtual

◆ ResetPanel()

void PANEL_SIMULATOR_PREFERENCES::ResetPanel ( )
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().

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

Member Data Documentation

◆ m_btnMouseDefaults

wxButton* PANEL_SIMULATOR_PREFERENCES_BASE::m_btnMouseDefaults
protectedinherited

◆ m_btnTrackpadDefaults

wxButton* PANEL_SIMULATOR_PREFERENCES_BASE::m_btnTrackpadDefaults
protectedinherited

◆ m_choiceHScroll

wxChoice* PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceHScroll
protectedinherited

◆ m_choiceVScrollAlt

wxChoice* PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollAlt
protectedinherited

◆ m_choiceVScrollCtrl

wxChoice* PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollCtrl
protectedinherited

◆ m_choiceVScrollShift

wxChoice* PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollShift
protectedinherited

◆ m_choiceVScrollUnmodified

wxChoice* PANEL_SIMULATOR_PREFERENCES_BASE::m_choiceVScrollUnmodified
protectedinherited

◆ m_lblHScrollAction

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblHScrollAction
protectedinherited

◆ m_lblHScrollAny

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblHScrollAny
protectedinherited

◆ m_lblHScrollModifier

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblHScrollModifier
protectedinherited

◆ m_lblHScrollMovement

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblHScrollMovement
protectedinherited

◆ m_lblScrollHeading

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblScrollHeading
protectedinherited

◆ m_lblVScrollAction

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollAction
protectedinherited

◆ m_lblVScrollAlt

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollAlt
protectedinherited

◆ m_lblVScrollCtrl

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollCtrl
protectedinherited

◆ m_lblVScrollModifier

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollModifier
protectedinherited

◆ m_lblVScrollMovement

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollMovement
protectedinherited

◆ m_lblVScrollShift

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollShift
protectedinherited

◆ m_lblVScrollUnmodified

wxStaticText* PANEL_SIMULATOR_PREFERENCES_BASE::m_lblVScrollUnmodified
protectedinherited

◆ m_scrollLine

wxStaticLine* PANEL_SIMULATOR_PREFERENCES_BASE::m_scrollLine
protectedinherited

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