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 INPUT_MOUSE_H 11 #define INPUT_MOUSE_H 12 13 14 #include <Box.h> 15 #include <Bitmap.h> 16 #include <Button.h> 17 #include <CheckBox.h> 18 #include <Slider.h> 19 #include <PopUpMenu.h> 20 #include <MenuField.h> 21 #include <ListView.h> 22 #include <TabView.h> 23 #include <View.h> 24 25 #include "InputDeviceView.h" 26 #include "MouseSettings.h" 27 #include "MouseView.h" 28 #include "SettingsView.h" 29 30 #define MOUSE_SETTINGS 'Mss' 31 32 class DeviceListView; 33 34 35 class InputMouse : public BView { 36 public: 37 InputMouse(BInputDevice* dev); 38 virtual ~InputMouse(); 39 void SetMouseType(int32 type); 40 void MessageReceived(BMessage* message); 41 private: 42 43 typedef BBox inherited; 44 45 SettingsView* fSettingsView; 46 MouseView* fMouseView; 47 BButton* fDefaultsButton; 48 BButton* fRevertButton; 49 MouseSettings fSettings; 50 51 mouse_settings fMouseSettings, fOriginalSettings; 52 }; 53 54 #endif /* INPUT_MOUSE_H */