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 <Bitmap.h> 16 #include <Button.h> 17 #include <CheckBox.h> 18 #include <PopUpMenu.h> 19 #include <Slider.h> 20 21 22 class MouseSettings; 23 class MouseView; 24 25 26 class SettingsView : public BBox { 27 public: 28 SettingsView(MouseSettings &settings); 29 virtual ~SettingsView(); 30 31 virtual void AttachedToWindow(); 32 33 void SetMouseType(int32 type); 34 void MouseMapUpdated(); 35 void UpdateFromSettings(); 36 37 BPopUpMenu* fFocusFollowsMouseMenu; 38 BCheckBox* fAcceptFirstClickBox; 39 40 private: 41 42 typedef BBox inherited; 43 44 const MouseSettings &fSettings; 45 46 BPopUpMenu* fTypeMenu; 47 BPopUpMenu* fFocusMenu; 48 MouseView* fMouseView; 49 BSlider* fClickSpeedSlider; 50 BSlider* fMouseSpeedSlider; 51 BSlider* fAccelerationSlider; 52 }; 53 54 #endif /* SETTINGS_VIEW_H */ 55