31 m_currentScrollMod( {} )
34 for( wxSizerItem* child : m_zoomSizer->GetChildren() )
36 if( child->GetWindow() == m_zoomSpeed )
37 child->SetBorder( 14 );
40 for( wxSizerItem* child : m_panSizer->GetChildren() )
42 if( child->GetWindow() == m_autoPanSpeed )
43 child->SetBorder( 14 );
46 m_lblCtrl->SetLabel(
_(
"Cmd" ) );
47 m_lblAlt->SetLabel(
_(
"Option" ) );
51 m_scrollWarning->Hide();
53 m_checkAutoZoomSpeed->Bind( wxEVT_COMMAND_CHECKBOX_CLICKED,
54 [&]( wxCommandEvent& aEvt )
56 m_zoomSpeed->Enable( !m_checkAutoZoomSpeed->GetValue() );
85 "vertical scroll setting" ),
168 case MOUSE_DRAG_ACTION::SELECT:
break;
177 case MOUSE_DRAG_ACTION::SELECT:
break;
193 wxRadioButton* btn =
dynamic_cast<wxRadioButton*
>(
event.GetEventObject() );
211 ret.
zoom = WXK_SHIFT;
213 ret.
zoom = WXK_CONTROL;
218 ret.
panh = WXK_SHIFT;
220 ret.
panh = WXK_CONTROL;
225 ret.
panv = WXK_SHIFT;
227 ret.
panv = WXK_CONTROL;
243 auto set_wheel_buttons =
244 [](
int aModifier, wxRadioButton* aNoneBtn, wxRadioButton* aCtrlBtn,
245 wxRadioButton* aShiftBtn, wxRadioButton* aAltBtn )
249 case 0: aNoneBtn->SetValue(
true );
break;
250 case WXK_CONTROL: aCtrlBtn->SetValue(
true );
break;
251 case WXK_SHIFT: aShiftBtn->SetValue(
true );
break;
252 case WXK_ALT: aAltBtn->SetValue(
true );
break;
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap)
void ResetToDefaults()
Resets all parameters to default values.
static PAGED_DIALOG * GetDialog(wxWindow *aWindow)
void SetError(const wxString &aMessage, const wxString &aPageName, int aCtrlId, int aRow=-1, int aCol=-1)
Class PANEL_MOUSE_SETTINGS_BASE.
wxSlider * m_autoPanSpeed
wxChoice * m_choiceLeftButtonDrag
wxRadioButton * m_rbPanVAlt
wxCheckBox * m_checkZoomAcceleration
wxCheckBox * m_checkZoomCenter
wxRadioButton * m_rbPanHNone
wxRadioButton * m_rbPanVCtrl
wxRadioButton * m_rbPanHAlt
wxCheckBox * m_checkAutoPan
wxChoice * m_choiceMiddleButtonDrag
wxCheckBox * m_checkZoomReverse
wxChoice * m_choiceRightButtonDrag
wxCheckBox * m_checkAutoZoomSpeed
wxRadioButton * m_rbZoomShift
wxRadioButton * m_rbPanVNone
wxRadioButton * m_rbZoomAlt
wxRadioButton * m_rbZoomNone
wxRadioButton * m_rbPanHShift
wxRadioButton * m_rbZoomCtrl
wxStaticBitmap * m_scrollWarning
wxRadioButton * m_rbPanHCtrl
wxCheckBox * m_checkPanHReverse
wxCheckBox * m_checkEnablePanH
wxRadioButton * m_rbPanVShift
void onMouseDefaults(wxCommandEvent &event) override
bool TransferDataFromWindow() override
void ResetPanel() override
Reset the contents of this panel.
void applySettingsToPanel(const COMMON_SETTINGS &aSettings)
SCROLL_MOD_SET getScrollModSet()
SCROLL_MOD_SET m_currentScrollMod
bool isScrollModSetValid(const SCROLL_MOD_SET &aSet)
bool TransferDataToWindow() override
void onTrackpadDefaults(wxCommandEvent &event) override
void OnScrollRadioButton(wxCommandEvent &event) override
PANEL_MOUSE_SETTINGS(wxWindow *aParent)
void updateScrollModButtons()
virtual COMMON_SETTINGS * GetCommonSettings() const
PGM_BASE & Pgm()
The global Program "get" accessor.