1 /* 2 * Copyright 2019, Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 * 5 * Author: 6 * Preetpal Kaur <preetpalok123@gmail.com> 7 */ 8 9 10 #ifndef SETTINGS_VIEW_H 11 #define SETTINGS_VIEW_H 12 13 14 #include <Box.h> 15 #include <CheckBox.h> 16 #include <OptionPopUp.h> 17 #include <Slider.h> 18 19 20 class MouseSettings; 21 class MouseView; 22 23 24 class SettingsView : public BBox { 25 public: 26 SettingsView(MouseSettings &settings); 27 virtual ~SettingsView(); 28 29 virtual void AttachedToWindow(); 30 31 void SetMouseType(int32 type); 32 void MouseMapUpdated(); 33 void UpdateFromSettings(); 34 35 public: 36 // FIXME use proper getters/setters for this? 37 BCheckBox* fAcceptFirstClickBox; 38 39 private: 40 typedef BBox inherited; 41 42 const MouseSettings& fSettings; 43 44 BOptionPopUp* fTypeMenu; 45 BOptionPopUp* fFocusMenu; 46 MouseView* fMouseView; 47 BSlider* fClickSpeedSlider; 48 BSlider* fMouseSpeedSlider; 49 BSlider* fAccelerationSlider; 50 }; 51 52 #endif /* SETTINGS_VIEW_H */ 53